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

/**
 * An Update protocol message indicating that a Workflow Update has
 * completed with the contained outcome.
 *
 * Generated from protobuf message <code>temporal.api.update.v1.Response</code>
 */
class Response 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.Outcome outcome = 2;</code>
     */
    protected $outcome = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Temporal\Api\Update\V1\Meta $meta
     *     @type \Temporal\Api\Update\V1\Outcome $outcome
     * }
     */
    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.Outcome outcome = 2;</code>
     * @return \Temporal\Api\Update\V1\Outcome|null
     */
    public function getOutcome()
    {
        return $this->outcome;
    }

    public function hasOutcome()
    {
        return isset($this->outcome);
    }

    public function clearOutcome()
    {
        unset($this->outcome);
    }

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

        return $this;
    }

}

