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

namespace Temporal\Api\Update\V1;

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

/**
 * Metadata about a Workflow Update.
 *
 * Generated from protobuf message <code>temporal.api.update.v1.Meta</code>
 */
class Meta extends \Google\Protobuf\Internal\Message
{
    /**
     * An ID with workflow-scoped uniqueness for this Update.
     *
     * Generated from protobuf field <code>string update_id = 1;</code>
     */
    protected $update_id = '';
    /**
     * A string identifying the agent that requested this Update.
     *
     * Generated from protobuf field <code>string identity = 2;</code>
     */
    protected $identity = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $update_id
     *           An ID with workflow-scoped uniqueness for this Update.
     *     @type string $identity
     *           A string identifying the agent that requested this Update.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Update\V1\Message::initOnce();
        parent::__construct($data);
    }

    /**
     * An ID with workflow-scoped uniqueness for this Update.
     *
     * Generated from protobuf field <code>string update_id = 1;</code>
     * @return string
     */
    public function getUpdateId()
    {
        return $this->update_id;
    }

    /**
     * An ID with workflow-scoped uniqueness for this Update.
     *
     * Generated from protobuf field <code>string update_id = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setUpdateId($var)
    {
        GPBUtil::checkString($var, True);
        $this->update_id = $var;

        return $this;
    }

    /**
     * A string identifying the agent that requested this Update.
     *
     * Generated from protobuf field <code>string identity = 2;</code>
     * @return string
     */
    public function getIdentity()
    {
        return $this->identity;
    }

    /**
     * A string identifying the agent that requested this Update.
     *
     * Generated from protobuf field <code>string identity = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setIdentity($var)
    {
        GPBUtil::checkString($var, True);
        $this->identity = $var;

        return $this;
    }

}

