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

namespace Google\Cloud\Parallelstore\V1beta;

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

/**
 * Represents the metadata of the long-running operation.
 *
 * Generated from protobuf message <code>google.cloud.parallelstore.v1beta.TransferOperationMetadata</code>
 */
class TransferOperationMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. CCFE supplied fields BEGIN
     * The time the operation was created.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $create_time = null;
    /**
     * Output only. The time the operation finished running.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $end_time = null;
    /**
     * Information about the progress of the transfer operation.
     *
     * Generated from protobuf field <code>.google.cloud.parallelstore.v1beta.TransferCounters counters = 3;</code>
     */
    protected $counters = null;
    /**
     * Required. The origin of the data transfer.
     *
     * Generated from protobuf field <code>string source = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $source = '';
    /**
     * Required. The destination of the data transfer.
     *
     * Generated from protobuf field <code>string destination = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $destination = '';
    /**
     * The type of transfer occurring.
     *
     * Generated from protobuf field <code>.google.cloud.parallelstore.v1beta.TransferType transfer_type = 6;</code>
     */
    protected $transfer_type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Protobuf\Timestamp $create_time
     *           Output only. CCFE supplied fields BEGIN
     *           The time the operation was created.
     *     @type \Google\Protobuf\Timestamp $end_time
     *           Output only. The time the operation finished running.
     *     @type \Google\Cloud\Parallelstore\V1beta\TransferCounters $counters
     *           Information about the progress of the transfer operation.
     *     @type string $source
     *           Required. The origin of the data transfer.
     *     @type string $destination
     *           Required. The destination of the data transfer.
     *     @type int $transfer_type
     *           The type of transfer occurring.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Parallelstore\V1Beta\Parallelstore::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. CCFE supplied fields BEGIN
     * The time the operation was created.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getCreateTime()
    {
        return $this->create_time;
    }

    public function hasCreateTime()
    {
        return isset($this->create_time);
    }

    public function clearCreateTime()
    {
        unset($this->create_time);
    }

    /**
     * Output only. CCFE supplied fields BEGIN
     * The time the operation was created.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setCreateTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->create_time = $var;

        return $this;
    }

    /**
     * Output only. The time the operation finished running.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</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);
    }

    /**
     * Output only. The time the operation finished running.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</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;
    }

    /**
     * Information about the progress of the transfer operation.
     *
     * Generated from protobuf field <code>.google.cloud.parallelstore.v1beta.TransferCounters counters = 3;</code>
     * @return \Google\Cloud\Parallelstore\V1beta\TransferCounters|null
     */
    public function getCounters()
    {
        return $this->counters;
    }

    public function hasCounters()
    {
        return isset($this->counters);
    }

    public function clearCounters()
    {
        unset($this->counters);
    }

    /**
     * Information about the progress of the transfer operation.
     *
     * Generated from protobuf field <code>.google.cloud.parallelstore.v1beta.TransferCounters counters = 3;</code>
     * @param \Google\Cloud\Parallelstore\V1beta\TransferCounters $var
     * @return $this
     */
    public function setCounters($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Parallelstore\V1beta\TransferCounters::class);
        $this->counters = $var;

        return $this;
    }

    /**
     * Required. The origin of the data transfer.
     *
     * Generated from protobuf field <code>string source = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getSource()
    {
        return $this->source;
    }

    /**
     * Required. The origin of the data transfer.
     *
     * Generated from protobuf field <code>string source = 4 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setSource($var)
    {
        GPBUtil::checkString($var, True);
        $this->source = $var;

        return $this;
    }

    /**
     * Required. The destination of the data transfer.
     *
     * Generated from protobuf field <code>string destination = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getDestination()
    {
        return $this->destination;
    }

    /**
     * Required. The destination of the data transfer.
     *
     * Generated from protobuf field <code>string destination = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setDestination($var)
    {
        GPBUtil::checkString($var, True);
        $this->destination = $var;

        return $this;
    }

    /**
     * The type of transfer occurring.
     *
     * Generated from protobuf field <code>.google.cloud.parallelstore.v1beta.TransferType transfer_type = 6;</code>
     * @return int
     */
    public function getTransferType()
    {
        return $this->transfer_type;
    }

    /**
     * The type of transfer occurring.
     *
     * Generated from protobuf field <code>.google.cloud.parallelstore.v1beta.TransferType transfer_type = 6;</code>
     * @param int $var
     * @return $this
     */
    public function setTransferType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Parallelstore\V1beta\TransferType::class);
        $this->transfer_type = $var;

        return $this;
    }

}

