<?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;

/**
 * The client request that triggers a Workflow Update.
 *
 * Generated from protobuf message <code>temporal.api.update.v1.Request</code>
 */
class Request extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.temporal.api.update.v1.Meta meta = 1;</code>
     */
    protected $meta = null;
    /**
     * Generated from protobuf field <code>.temporal.api.update.v1.Input input = 2;</code>
     */
    protected $input = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Temporal\Api\Update\V1\Meta $meta
     *     @type \Temporal\Api\Update\V1\Input $input
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Update\V1\Message::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.temporal.api.update.v1.Meta meta = 1;</code>
     * @return \Temporal\Api\Update\V1\Meta|null
     */
    public function getMeta()
    {
        return $this->meta;
    }

    public function hasMeta()
    {
        return isset($this->meta);
    }

    public function clearMeta()
    {
        unset($this->meta);
    }

    /**
     * Generated from protobuf field <code>.temporal.api.update.v1.Meta meta = 1;</code>
     * @param \Temporal\Api\Update\V1\Meta $var
     * @return $this
     */
    public function setMeta($var)
    {
        GPBUtil::checkMessage($var, \Temporal\Api\Update\V1\Meta::class);
        $this->meta = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.temporal.api.update.v1.Input input = 2;</code>
     * @return \Temporal\Api\Update\V1\Input|null
     */
    public function getInput()
    {
        return $this->input;
    }

    public function hasInput()
    {
        return isset($this->input);
    }

    public function clearInput()
    {
        unset($this->input);
    }

    /**
     * Generated from protobuf field <code>.temporal.api.update.v1.Input input = 2;</code>
     * @param \Temporal\Api\Update\V1\Input $var
     * @return $this
     */
    public function setInput($var)
    {
        GPBUtil::checkMessage($var, \Temporal\Api\Update\V1\Input::class);
        $this->input = $var;

        return $this;
    }

}

