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

namespace Google\Cloud\AIPlatform\V1\DeployedModel;

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

/**
 * Runtime status of the deployed model.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.DeployedModel.Status</code>
 */
class Status extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The latest deployed model's status message (if any).
     *
     * Generated from protobuf field <code>string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $message = '';
    /**
     * Output only. The time at which the status was last updated.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $last_update_time = null;
    /**
     * Output only. The number of available replicas of the deployed model.
     *
     * Generated from protobuf field <code>int32 available_replica_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $available_replica_count = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $message
     *           Output only. The latest deployed model's status message (if any).
     *     @type \Google\Protobuf\Timestamp $last_update_time
     *           Output only. The time at which the status was last updated.
     *     @type int $available_replica_count
     *           Output only. The number of available replicas of the deployed model.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\Endpoint::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The latest deployed model's status message (if any).
     *
     * Generated from protobuf field <code>string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getMessage()
    {
        return $this->message;
    }

    /**
     * Output only. The latest deployed model's status message (if any).
     *
     * Generated from protobuf field <code>string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setMessage($var)
    {
        GPBUtil::checkString($var, True);
        $this->message = $var;

        return $this;
    }

    /**
     * Output only. The time at which the status was last updated.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getLastUpdateTime()
    {
        return $this->last_update_time;
    }

    public function hasLastUpdateTime()
    {
        return isset($this->last_update_time);
    }

    public function clearLastUpdateTime()
    {
        unset($this->last_update_time);
    }

    /**
     * Output only. The time at which the status was last updated.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setLastUpdateTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->last_update_time = $var;

        return $this;
    }

    /**
     * Output only. The number of available replicas of the deployed model.
     *
     * Generated from protobuf field <code>int32 available_replica_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getAvailableReplicaCount()
    {
        return $this->available_replica_count;
    }

    /**
     * Output only. The number of available replicas of the deployed model.
     *
     * Generated from protobuf field <code>int32 available_replica_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setAvailableReplicaCount($var)
    {
        GPBUtil::checkInt32($var);
        $this->available_replica_count = $var;

        return $this;
    }

}


