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

namespace Google\Cloud\AIPlatform\V1\MigratableResource;

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

/**
 * Represents one model Version in ml.googleapis.com.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion</code>
 */
class MlEngineModelVersion extends \Google\Protobuf\Internal\Message
{
    /**
     * The ml.googleapis.com endpoint that this model Version currently lives
     * in.
     * Example values:
     * * ml.googleapis.com
     * * us-centrall-ml.googleapis.com
     * * europe-west4-ml.googleapis.com
     * * asia-east1-ml.googleapis.com
     *
     * Generated from protobuf field <code>string endpoint = 1;</code>
     */
    private $endpoint = '';
    /**
     * Full resource name of ml engine model Version.
     * Format: `projects/{project}/models/{model}/versions/{version}`.
     *
     * Generated from protobuf field <code>string version = 2 [(.google.api.resource_reference) = {</code>
     */
    private $version = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $endpoint
     *           The ml.googleapis.com endpoint that this model Version currently lives
     *           in.
     *           Example values:
     *           * ml.googleapis.com
     *           * us-centrall-ml.googleapis.com
     *           * europe-west4-ml.googleapis.com
     *           * asia-east1-ml.googleapis.com
     *     @type string $version
     *           Full resource name of ml engine model Version.
     *           Format: `projects/{project}/models/{model}/versions/{version}`.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\MigratableResource::initOnce();
        parent::__construct($data);
    }

    /**
     * The ml.googleapis.com endpoint that this model Version currently lives
     * in.
     * Example values:
     * * ml.googleapis.com
     * * us-centrall-ml.googleapis.com
     * * europe-west4-ml.googleapis.com
     * * asia-east1-ml.googleapis.com
     *
     * Generated from protobuf field <code>string endpoint = 1;</code>
     * @return string
     */
    public function getEndpoint()
    {
        return $this->endpoint;
    }

    /**
     * The ml.googleapis.com endpoint that this model Version currently lives
     * in.
     * Example values:
     * * ml.googleapis.com
     * * us-centrall-ml.googleapis.com
     * * europe-west4-ml.googleapis.com
     * * asia-east1-ml.googleapis.com
     *
     * Generated from protobuf field <code>string endpoint = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setEndpoint($var)
    {
        GPBUtil::checkString($var, True);
        $this->endpoint = $var;

        return $this;
    }

    /**
     * Full resource name of ml engine model Version.
     * Format: `projects/{project}/models/{model}/versions/{version}`.
     *
     * Generated from protobuf field <code>string version = 2 [(.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getVersion()
    {
        return $this->version;
    }

    /**
     * Full resource name of ml engine model Version.
     * Format: `projects/{project}/models/{model}/versions/{version}`.
     *
     * Generated from protobuf field <code>string version = 2 [(.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setVersion($var)
    {
        GPBUtil::checkString($var, True);
        $this->version = $var;

        return $this;
    }

}


