<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/dataflow/v1beta3/snapshots.proto

namespace Google\Cloud\Dataflow\V1beta3;

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

/**
 * Represents a Pubsub snapshot.
 *
 * Generated from protobuf message <code>google.dataflow.v1beta3.PubsubSnapshotMetadata</code>
 */
class PubsubSnapshotMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * The name of the Pubsub topic.
     *
     * Generated from protobuf field <code>string topic_name = 1;</code>
     */
    private $topic_name = '';
    /**
     * The name of the Pubsub snapshot.
     *
     * Generated from protobuf field <code>string snapshot_name = 2;</code>
     */
    private $snapshot_name = '';
    /**
     * The expire time of the Pubsub snapshot.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp expire_time = 3;</code>
     */
    private $expire_time = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $topic_name
     *           The name of the Pubsub topic.
     *     @type string $snapshot_name
     *           The name of the Pubsub snapshot.
     *     @type \Google\Protobuf\Timestamp $expire_time
     *           The expire time of the Pubsub snapshot.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Dataflow\V1Beta3\Snapshots::initOnce();
        parent::__construct($data);
    }

    /**
     * The name of the Pubsub topic.
     *
     * Generated from protobuf field <code>string topic_name = 1;</code>
     * @return string
     */
    public function getTopicName()
    {
        return $this->topic_name;
    }

    /**
     * The name of the Pubsub topic.
     *
     * Generated from protobuf field <code>string topic_name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setTopicName($var)
    {
        GPBUtil::checkString($var, True);
        $this->topic_name = $var;

        return $this;
    }

    /**
     * The name of the Pubsub snapshot.
     *
     * Generated from protobuf field <code>string snapshot_name = 2;</code>
     * @return string
     */
    public function getSnapshotName()
    {
        return $this->snapshot_name;
    }

    /**
     * The name of the Pubsub snapshot.
     *
     * Generated from protobuf field <code>string snapshot_name = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setSnapshotName($var)
    {
        GPBUtil::checkString($var, True);
        $this->snapshot_name = $var;

        return $this;
    }

    /**
     * The expire time of the Pubsub snapshot.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp expire_time = 3;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getExpireTime()
    {
        return $this->expire_time;
    }

    public function hasExpireTime()
    {
        return isset($this->expire_time);
    }

    public function clearExpireTime()
    {
        unset($this->expire_time);
    }

    /**
     * The expire time of the Pubsub snapshot.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp expire_time = 3;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setExpireTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->expire_time = $var;

        return $this;
    }

}

