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

namespace Google\Cloud\AIPlatform\V1\ModelDeploymentMonitoringJob;

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

/**
 * All metadata of most recent monitoring pipelines.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata</code>
 */
class LatestMonitoringPipelineMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * The time that most recent monitoring pipelines that is related to this
     * run.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp run_time = 1;</code>
     */
    protected $run_time = null;
    /**
     * The status of the most recent monitoring pipeline.
     *
     * Generated from protobuf field <code>.google.rpc.Status status = 2;</code>
     */
    protected $status = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Protobuf\Timestamp $run_time
     *           The time that most recent monitoring pipelines that is related to this
     *           run.
     *     @type \Google\Rpc\Status $status
     *           The status of the most recent monitoring pipeline.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\ModelDeploymentMonitoringJob::initOnce();
        parent::__construct($data);
    }

    /**
     * The time that most recent monitoring pipelines that is related to this
     * run.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp run_time = 1;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getRunTime()
    {
        return $this->run_time;
    }

    public function hasRunTime()
    {
        return isset($this->run_time);
    }

    public function clearRunTime()
    {
        unset($this->run_time);
    }

    /**
     * The time that most recent monitoring pipelines that is related to this
     * run.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp run_time = 1;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setRunTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->run_time = $var;

        return $this;
    }

    /**
     * The status of the most recent monitoring pipeline.
     *
     * Generated from protobuf field <code>.google.rpc.Status status = 2;</code>
     * @return \Google\Rpc\Status|null
     */
    public function getStatus()
    {
        return $this->status;
    }

    public function hasStatus()
    {
        return isset($this->status);
    }

    public function clearStatus()
    {
        unset($this->status);
    }

    /**
     * The status of the most recent monitoring pipeline.
     *
     * Generated from protobuf field <code>.google.rpc.Status status = 2;</code>
     * @param \Google\Rpc\Status $var
     * @return $this
     */
    public function setStatus($var)
    {
        GPBUtil::checkMessage($var, \Google\Rpc\Status::class);
        $this->status = $var;

        return $this;
    }

}


