<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/discoveryengine/v1beta/conversational_search_service.proto

namespace Google\Cloud\DiscoveryEngine\V1beta\AnswerQueryRequest\AnswerGenerationSpec;

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

/**
 * Answer Generation Model specification.
 *
 * Generated from protobuf message <code>google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec</code>
 */
class ModelSpec extends \Google\Protobuf\Internal\Message
{
    /**
     * Model version. If not set, it will use the default stable model.
     * Allowed values are: stable, preview.
     *
     * Generated from protobuf field <code>string model_version = 1;</code>
     */
    protected $model_version = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $model_version
     *           Model version. If not set, it will use the default stable model.
     *           Allowed values are: stable, preview.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Discoveryengine\V1Beta\ConversationalSearchService::initOnce();
        parent::__construct($data);
    }

    /**
     * Model version. If not set, it will use the default stable model.
     * Allowed values are: stable, preview.
     *
     * Generated from protobuf field <code>string model_version = 1;</code>
     * @return string
     */
    public function getModelVersion()
    {
        return $this->model_version;
    }

    /**
     * Model version. If not set, it will use the default stable model.
     * Allowed values are: stable, preview.
     *
     * Generated from protobuf field <code>string model_version = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setModelVersion($var)
    {
        GPBUtil::checkString($var, True);
        $this->model_version = $var;

        return $this;
    }

}


