<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: WAProto.proto

namespace PhpWA\Protocol\Proto;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * Generated from protobuf message <code>proto.BotModelMetadata</code>
 */
class BotModelMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.BotModelMetadata.ModelType modelType = 1;</code>
     */
    protected $modelType = null;
    /**
     * Generated from protobuf field <code>optional .proto.BotModelMetadata.PremiumModelStatus premiumModelStatus = 2;</code>
     */
    protected $premiumModelStatus = null;
    /**
     * Generated from protobuf field <code>optional string modelNameOverride = 3;</code>
     */
    protected $modelNameOverride = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $modelType
     *     @type int $premiumModelStatus
     *     @type string $modelNameOverride
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotModelMetadata.ModelType modelType = 1;</code>
     * @return int
     */
    public function getModelType()
    {
        return isset($this->modelType) ? $this->modelType : 0;
    }

    public function hasModelType()
    {
        return isset($this->modelType);
    }

    public function clearModelType()
    {
        unset($this->modelType);
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotModelMetadata.ModelType modelType = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setModelType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\BotModelMetadata\ModelType::class);
        $this->modelType = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotModelMetadata.PremiumModelStatus premiumModelStatus = 2;</code>
     * @return int
     */
    public function getPremiumModelStatus()
    {
        return isset($this->premiumModelStatus) ? $this->premiumModelStatus : 0;
    }

    public function hasPremiumModelStatus()
    {
        return isset($this->premiumModelStatus);
    }

    public function clearPremiumModelStatus()
    {
        unset($this->premiumModelStatus);
    }

    /**
     * Generated from protobuf field <code>optional .proto.BotModelMetadata.PremiumModelStatus premiumModelStatus = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setPremiumModelStatus($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\BotModelMetadata\PremiumModelStatus::class);
        $this->premiumModelStatus = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string modelNameOverride = 3;</code>
     * @return string
     */
    public function getModelNameOverride()
    {
        return isset($this->modelNameOverride) ? $this->modelNameOverride : '';
    }

    public function hasModelNameOverride()
    {
        return isset($this->modelNameOverride);
    }

    public function clearModelNameOverride()
    {
        unset($this->modelNameOverride);
    }

    /**
     * Generated from protobuf field <code>optional string modelNameOverride = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setModelNameOverride($var)
    {
        GPBUtil::checkString($var, True);
        $this->modelNameOverride = $var;

        return $this;
    }

}

