<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: temporal/api/version/v1/message.proto

namespace Temporal\Api\Version\V1;

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

/**
 * ReleaseInfo contains information about specific version of temporal.
 *
 * Generated from protobuf message <code>temporal.api.version.v1.ReleaseInfo</code>
 */
class ReleaseInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string version = 1;</code>
     */
    protected $version = '';
    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp release_time = 2;</code>
     */
    protected $release_time = null;
    /**
     * Generated from protobuf field <code>string notes = 3;</code>
     */
    protected $notes = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $version
     *     @type \Google\Protobuf\Timestamp $release_time
     *     @type string $notes
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Version\V1\Message::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string version = 1;</code>
     * @return string
     */
    public function getVersion()
    {
        return $this->version;
    }

    /**
     * Generated from protobuf field <code>string version = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setVersion($var)
    {
        GPBUtil::checkString($var, True);
        $this->version = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp release_time = 2;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getReleaseTime()
    {
        return $this->release_time;
    }

    public function hasReleaseTime()
    {
        return isset($this->release_time);
    }

    public function clearReleaseTime()
    {
        unset($this->release_time);
    }

    /**
     * Generated from protobuf field <code>.google.protobuf.Timestamp release_time = 2;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setReleaseTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->release_time = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string notes = 3;</code>
     * @return string
     */
    public function getNotes()
    {
        return $this->notes;
    }

    /**
     * Generated from protobuf field <code>string notes = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setNotes($var)
    {
        GPBUtil::checkString($var, True);
        $this->notes = $var;

        return $this;
    }

}

