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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Points to a DeployedModel.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.DeployedModelRef</code>
 */
class DeployedModelRef extends \Google\Protobuf\Internal\Message
{
    /**
     * Immutable. A resource name of an Endpoint.
     *
     * Generated from protobuf field <code>string endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = {</code>
     */
    private $endpoint = '';
    /**
     * Immutable. An ID of a DeployedModel in the above Endpoint.
     *
     * Generated from protobuf field <code>string deployed_model_id = 2 [(.google.api.field_behavior) = IMMUTABLE];</code>
     */
    private $deployed_model_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $endpoint
     *           Immutable. A resource name of an Endpoint.
     *     @type string $deployed_model_id
     *           Immutable. An ID of a DeployedModel in the above Endpoint.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\DeployedModelRef::initOnce();
        parent::__construct($data);
    }

    /**
     * Immutable. A resource name of an Endpoint.
     *
     * Generated from protobuf field <code>string endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getEndpoint()
    {
        return $this->endpoint;
    }

    /**
     * Immutable. A resource name of an Endpoint.
     *
     * Generated from protobuf field <code>string endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setEndpoint($var)
    {
        GPBUtil::checkString($var, True);
        $this->endpoint = $var;

        return $this;
    }

    /**
     * Immutable. An ID of a DeployedModel in the above Endpoint.
     *
     * Generated from protobuf field <code>string deployed_model_id = 2 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @return string
     */
    public function getDeployedModelId()
    {
        return $this->deployed_model_id;
    }

    /**
     * Immutable. An ID of a DeployedModel in the above Endpoint.
     *
     * Generated from protobuf field <code>string deployed_model_id = 2 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @param string $var
     * @return $this
     */
    public function setDeployedModelId($var)
    {
        GPBUtil::checkString($var, True);
        $this->deployed_model_id = $var;

        return $this;
    }

}

