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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Runtime operation information for
 * [EndpointService.CreateEndpoint][google.cloud.aiplatform.v1.EndpointService.CreateEndpoint].
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.CreateEndpointOperationMetadata</code>
 */
class CreateEndpointOperationMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * The operation generic information.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;</code>
     */
    protected $generic_metadata = null;
    /**
     * Output only. The deployment stage of the model. Only populated if this
     * CreateEndpoint request deploys a model at the same time.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.DeploymentStage deployment_stage = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $deployment_stage = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $generic_metadata
     *           The operation generic information.
     *     @type int $deployment_stage
     *           Output only. The deployment stage of the model. Only populated if this
     *           CreateEndpoint request deploys a model at the same time.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\EndpointService::initOnce();
        parent::__construct($data);
    }

    /**
     * The operation generic information.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;</code>
     * @return \Google\Cloud\AIPlatform\V1\GenericOperationMetadata|null
     */
    public function getGenericMetadata()
    {
        return $this->generic_metadata;
    }

    public function hasGenericMetadata()
    {
        return isset($this->generic_metadata);
    }

    public function clearGenericMetadata()
    {
        unset($this->generic_metadata);
    }

    /**
     * The operation generic information.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;</code>
     * @param \Google\Cloud\AIPlatform\V1\GenericOperationMetadata $var
     * @return $this
     */
    public function setGenericMetadata($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\GenericOperationMetadata::class);
        $this->generic_metadata = $var;

        return $this;
    }

    /**
     * Output only. The deployment stage of the model. Only populated if this
     * CreateEndpoint request deploys a model at the same time.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.DeploymentStage deployment_stage = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getDeploymentStage()
    {
        return $this->deployment_stage;
    }

    /**
     * Output only. The deployment stage of the model. Only populated if this
     * CreateEndpoint request deploys a model at the same time.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.DeploymentStage deployment_stage = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setDeploymentStage($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\AIPlatform\V1\DeploymentStage::class);
        $this->deployment_stage = $var;

        return $this;
    }

}

