<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/bigtable/admin/v2/bigtable_instance_admin.proto

namespace Google\Cloud\Bigtable\Admin\V2;

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

/**
 * The metadata for the Operation returned by CreateMaterializedView.
 *
 * Generated from protobuf message <code>google.bigtable.admin.v2.CreateMaterializedViewMetadata</code>
 */
class CreateMaterializedViewMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * The request that prompted the initiation of this CreateMaterializedView
     * operation.
     *
     * Generated from protobuf field <code>.google.bigtable.admin.v2.CreateMaterializedViewRequest original_request = 1;</code>
     */
    protected $original_request = null;
    /**
     * The time at which this operation started.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp start_time = 2;</code>
     */
    protected $start_time = null;
    /**
     * If set, the time at which this operation finished or was canceled.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp end_time = 3;</code>
     */
    protected $end_time = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Bigtable\Admin\V2\CreateMaterializedViewRequest $original_request
     *           The request that prompted the initiation of this CreateMaterializedView
     *           operation.
     *     @type \Google\Protobuf\Timestamp $start_time
     *           The time at which this operation started.
     *     @type \Google\Protobuf\Timestamp $end_time
     *           If set, the time at which this operation finished or was canceled.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Bigtable\Admin\V2\BigtableInstanceAdmin::initOnce();
        parent::__construct($data);
    }

    /**
     * The request that prompted the initiation of this CreateMaterializedView
     * operation.
     *
     * Generated from protobuf field <code>.google.bigtable.admin.v2.CreateMaterializedViewRequest original_request = 1;</code>
     * @return \Google\Cloud\Bigtable\Admin\V2\CreateMaterializedViewRequest|null
     */
    public function getOriginalRequest()
    {
        return $this->original_request;
    }

    public function hasOriginalRequest()
    {
        return isset($this->original_request);
    }

    public function clearOriginalRequest()
    {
        unset($this->original_request);
    }

    /**
     * The request that prompted the initiation of this CreateMaterializedView
     * operation.
     *
     * Generated from protobuf field <code>.google.bigtable.admin.v2.CreateMaterializedViewRequest original_request = 1;</code>
     * @param \Google\Cloud\Bigtable\Admin\V2\CreateMaterializedViewRequest $var
     * @return $this
     */
    public function setOriginalRequest($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\CreateMaterializedViewRequest::class);
        $this->original_request = $var;

        return $this;
    }

    /**
     * The time at which this operation started.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp start_time = 2;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getStartTime()
    {
        return $this->start_time;
    }

    public function hasStartTime()
    {
        return isset($this->start_time);
    }

    public function clearStartTime()
    {
        unset($this->start_time);
    }

    /**
     * The time at which this operation started.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp start_time = 2;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setStartTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->start_time = $var;

        return $this;
    }

    /**
     * If set, the time at which this operation finished or was canceled.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp end_time = 3;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getEndTime()
    {
        return $this->end_time;
    }

    public function hasEndTime()
    {
        return isset($this->end_time);
    }

    public function clearEndTime()
    {
        unset($this->end_time);
    }

    /**
     * If set, the time at which this operation finished or was canceled.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp end_time = 3;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setEndTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->end_time = $var;

        return $this;
    }

}

