<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/aiplatform/v1/content.proto

namespace Google\Cloud\AIPlatform\V1\GenerationConfig\RoutingConfig;

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

/**
 * When manual routing is set, the specified model will be used directly.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingMode</code>
 */
class ManualRoutingMode extends \Google\Protobuf\Internal\Message
{
    /**
     * The model name to use. Only the public LLM models are accepted. e.g.
     * 'gemini-1.5-pro-001'.
     *
     * Generated from protobuf field <code>optional string model_name = 1;</code>
     */
    protected $model_name = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $model_name
     *           The model name to use. Only the public LLM models are accepted. e.g.
     *           'gemini-1.5-pro-001'.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\Content::initOnce();
        parent::__construct($data);
    }

    /**
     * The model name to use. Only the public LLM models are accepted. e.g.
     * 'gemini-1.5-pro-001'.
     *
     * Generated from protobuf field <code>optional string model_name = 1;</code>
     * @return string
     */
    public function getModelName()
    {
        return isset($this->model_name) ? $this->model_name : '';
    }

    public function hasModelName()
    {
        return isset($this->model_name);
    }

    public function clearModelName()
    {
        unset($this->model_name);
    }

    /**
     * The model name to use. Only the public LLM models are accepted. e.g.
     * 'gemini-1.5-pro-001'.
     *
     * Generated from protobuf field <code>optional string model_name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setModelName($var)
    {
        GPBUtil::checkString($var, True);
        $this->model_name = $var;

        return $this;
    }

}

