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

namespace Temporal\Api\History\V1;

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

/**
 * Generated from protobuf message <code>temporal.api.history.v1.WorkflowExecutionUpdateCompletedEventAttributes</code>
 */
class WorkflowExecutionUpdateCompletedEventAttributes extends \Google\Protobuf\Internal\Message
{
    /**
     * The metadata about this update.
     *
     * Generated from protobuf field <code>.temporal.api.update.v1.Meta meta = 1;</code>
     */
    protected $meta = null;
    /**
     * The event ID indicating the acceptance of this update.
     *
     * Generated from protobuf field <code>int64 accepted_event_id = 3;</code>
     */
    protected $accepted_event_id = 0;
    /**
     * The outcome of executing the workflow update function.
     *
     * 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
     *           The metadata about this update.
     *     @type int|string $accepted_event_id
     *           The event ID indicating the acceptance of this update.
     *     @type \Temporal\Api\Update\V1\Outcome $outcome
     *           The outcome of executing the workflow update function.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
        parent::__construct($data);
    }

    /**
     * The metadata about this update.
     *
     * 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);
    }

    /**
     * The metadata about this update.
     *
     * 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;
    }

    /**
     * The event ID indicating the acceptance of this update.
     *
     * Generated from protobuf field <code>int64 accepted_event_id = 3;</code>
     * @return int|string
     */
    public function getAcceptedEventId()
    {
        return $this->accepted_event_id;
    }

    /**
     * The event ID indicating the acceptance of this update.
     *
     * Generated from protobuf field <code>int64 accepted_event_id = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setAcceptedEventId($var)
    {
        GPBUtil::checkInt64($var);
        $this->accepted_event_id = $var;

        return $this;
    }

    /**
     * The outcome of executing the workflow update function.
     *
     * 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);
    }

    /**
     * The outcome of executing the workflow update function.
     *
     * 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;
    }

}

