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

namespace Temporal\Api\Workflow\V1;

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

/**
 * Generated from protobuf message <code>temporal.api.workflow.v1.WorkflowExecutionOptions</code>
 */
class WorkflowExecutionOptions extends \Google\Protobuf\Internal\Message
{
    /**
     * If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
     *
     * Generated from protobuf field <code>.temporal.api.workflow.v1.VersioningOverride versioning_override = 1;</code>
     */
    protected $versioning_override = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Temporal\Api\Workflow\V1\VersioningOverride $versioning_override
     *           If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Workflow\V1\Message::initOnce();
        parent::__construct($data);
    }

    /**
     * If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
     *
     * Generated from protobuf field <code>.temporal.api.workflow.v1.VersioningOverride versioning_override = 1;</code>
     * @return \Temporal\Api\Workflow\V1\VersioningOverride|null
     */
    public function getVersioningOverride()
    {
        return $this->versioning_override;
    }

    public function hasVersioningOverride()
    {
        return isset($this->versioning_override);
    }

    public function clearVersioningOverride()
    {
        unset($this->versioning_override);
    }

    /**
     * If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
     *
     * Generated from protobuf field <code>.temporal.api.workflow.v1.VersioningOverride versioning_override = 1;</code>
     * @param \Temporal\Api\Workflow\V1\VersioningOverride $var
     * @return $this
     */
    public function setVersioningOverride($var)
    {
        GPBUtil::checkMessage($var, \Temporal\Api\Workflow\V1\VersioningOverride::class);
        $this->versioning_override = $var;

        return $this;
    }

}

