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

namespace Google\Cloud\Dataplex\V1\DataScan;

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

/**
 * Status of the data scan execution.
 *
 * Generated from protobuf message <code>google.cloud.dataplex.v1.DataScan.ExecutionStatus</code>
 */
class ExecutionStatus extends \Google\Protobuf\Internal\Message
{
    /**
     * The time when the latest DataScanJob started.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp latest_job_start_time = 4;</code>
     */
    private $latest_job_start_time = null;
    /**
     * The time when the latest DataScanJob ended.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp latest_job_end_time = 5;</code>
     */
    private $latest_job_end_time = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Protobuf\Timestamp $latest_job_start_time
     *           The time when the latest DataScanJob started.
     *     @type \Google\Protobuf\Timestamp $latest_job_end_time
     *           The time when the latest DataScanJob ended.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce();
        parent::__construct($data);
    }

    /**
     * The time when the latest DataScanJob started.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp latest_job_start_time = 4;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getLatestJobStartTime()
    {
        return $this->latest_job_start_time;
    }

    public function hasLatestJobStartTime()
    {
        return isset($this->latest_job_start_time);
    }

    public function clearLatestJobStartTime()
    {
        unset($this->latest_job_start_time);
    }

    /**
     * The time when the latest DataScanJob started.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp latest_job_start_time = 4;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setLatestJobStartTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->latest_job_start_time = $var;

        return $this;
    }

    /**
     * The time when the latest DataScanJob ended.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp latest_job_end_time = 5;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getLatestJobEndTime()
    {
        return $this->latest_job_end_time;
    }

    public function hasLatestJobEndTime()
    {
        return isset($this->latest_job_end_time);
    }

    public function clearLatestJobEndTime()
    {
        unset($this->latest_job_end_time);
    }

    /**
     * The time when the latest DataScanJob ended.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp latest_job_end_time = 5;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setLatestJobEndTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->latest_job_end_time = $var;

        return $this;
    }

}


