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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * TunedModel Reference for legacy model migration.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.TunedModelRef</code>
 */
class TunedModelRef extends \Google\Protobuf\Internal\Message
{
    protected $tuned_model_ref;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $tuned_model
     *           Support migration from model registry.
     *     @type string $tuning_job
     *           Support migration from tuning job list page, from gemini-1.0-pro-002
     *           to 1.5 and above.
     *     @type string $pipeline_job
     *           Support migration from tuning job list page, from bison model to gemini
     *           model.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\TuningJob::initOnce();
        parent::__construct($data);
    }

    /**
     * Support migration from model registry.
     *
     * Generated from protobuf field <code>string tuned_model = 1 [(.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getTunedModel()
    {
        return $this->readOneof(1);
    }

    public function hasTunedModel()
    {
        return $this->hasOneof(1);
    }

    /**
     * Support migration from model registry.
     *
     * Generated from protobuf field <code>string tuned_model = 1 [(.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setTunedModel($var)
    {
        GPBUtil::checkString($var, True);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * Support migration from tuning job list page, from gemini-1.0-pro-002
     * to 1.5 and above.
     *
     * Generated from protobuf field <code>string tuning_job = 2 [(.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getTuningJob()
    {
        return $this->readOneof(2);
    }

    public function hasTuningJob()
    {
        return $this->hasOneof(2);
    }

    /**
     * Support migration from tuning job list page, from gemini-1.0-pro-002
     * to 1.5 and above.
     *
     * Generated from protobuf field <code>string tuning_job = 2 [(.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setTuningJob($var)
    {
        GPBUtil::checkString($var, True);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * Support migration from tuning job list page, from bison model to gemini
     * model.
     *
     * Generated from protobuf field <code>string pipeline_job = 3 [(.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getPipelineJob()
    {
        return $this->readOneof(3);
    }

    public function hasPipelineJob()
    {
        return $this->hasOneof(3);
    }

    /**
     * Support migration from tuning job list page, from bison model to gemini
     * model.
     *
     * Generated from protobuf field <code>string pipeline_job = 3 [(.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setPipelineJob($var)
    {
        GPBUtil::checkString($var, True);
        $this->writeOneof(3, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getTunedModelRef()
    {
        return $this->whichOneof("tuned_model_ref");
    }

}

