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

namespace Temporal\Api\Workflowservice\V1;

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

/**
 * Generated from protobuf message <code>temporal.api.workflowservice.v1.DescribeWorkflowExecutionResponse</code>
 */
class DescribeWorkflowExecutionResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.temporal.api.workflow.v1.WorkflowExecutionConfig execution_config = 1;</code>
     */
    protected $execution_config = null;
    /**
     * Generated from protobuf field <code>.temporal.api.workflow.v1.WorkflowExecutionInfo workflow_execution_info = 2;</code>
     */
    protected $workflow_execution_info = null;
    /**
     * Generated from protobuf field <code>repeated .temporal.api.workflow.v1.PendingActivityInfo pending_activities = 3;</code>
     */
    private $pending_activities;
    /**
     * Generated from protobuf field <code>repeated .temporal.api.workflow.v1.PendingChildExecutionInfo pending_children = 4;</code>
     */
    private $pending_children;
    /**
     * Generated from protobuf field <code>.temporal.api.workflow.v1.PendingWorkflowTaskInfo pending_workflow_task = 5;</code>
     */
    protected $pending_workflow_task = null;
    /**
     * Generated from protobuf field <code>repeated .temporal.api.workflow.v1.CallbackInfo callbacks = 6;</code>
     */
    private $callbacks;
    /**
     * Generated from protobuf field <code>repeated .temporal.api.workflow.v1.PendingNexusOperationInfo pending_nexus_operations = 7;</code>
     */
    private $pending_nexus_operations;
    /**
     * Generated from protobuf field <code>.temporal.api.workflow.v1.WorkflowExecutionExtendedInfo workflow_extended_info = 8;</code>
     */
    protected $workflow_extended_info = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Temporal\Api\Workflow\V1\WorkflowExecutionConfig $execution_config
     *     @type \Temporal\Api\Workflow\V1\WorkflowExecutionInfo $workflow_execution_info
     *     @type \Temporal\Api\Workflow\V1\PendingActivityInfo[] $pending_activities
     *     @type \Temporal\Api\Workflow\V1\PendingChildExecutionInfo[] $pending_children
     *     @type \Temporal\Api\Workflow\V1\PendingWorkflowTaskInfo $pending_workflow_task
     *     @type \Temporal\Api\Workflow\V1\CallbackInfo[] $callbacks
     *     @type \Temporal\Api\Workflow\V1\PendingNexusOperationInfo[] $pending_nexus_operations
     *     @type \Temporal\Api\Workflow\V1\WorkflowExecutionExtendedInfo $workflow_extended_info
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.temporal.api.workflow.v1.WorkflowExecutionConfig execution_config = 1;</code>
     * @return \Temporal\Api\Workflow\V1\WorkflowExecutionConfig|null
     */
    public function getExecutionConfig()
    {
        return $this->execution_config;
    }

    public function hasExecutionConfig()
    {
        return isset($this->execution_config);
    }

    public function clearExecutionConfig()
    {
        unset($this->execution_config);
    }

    /**
     * Generated from protobuf field <code>.temporal.api.workflow.v1.WorkflowExecutionConfig execution_config = 1;</code>
     * @param \Temporal\Api\Workflow\V1\WorkflowExecutionConfig $var
     * @return $this
     */
    public function setExecutionConfig($var)
    {
        GPBUtil::checkMessage($var, \Temporal\Api\Workflow\V1\WorkflowExecutionConfig::class);
        $this->execution_config = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.temporal.api.workflow.v1.WorkflowExecutionInfo workflow_execution_info = 2;</code>
     * @return \Temporal\Api\Workflow\V1\WorkflowExecutionInfo|null
     */
    public function getWorkflowExecutionInfo()
    {
        return $this->workflow_execution_info;
    }

    public function hasWorkflowExecutionInfo()
    {
        return isset($this->workflow_execution_info);
    }

    public function clearWorkflowExecutionInfo()
    {
        unset($this->workflow_execution_info);
    }

    /**
     * Generated from protobuf field <code>.temporal.api.workflow.v1.WorkflowExecutionInfo workflow_execution_info = 2;</code>
     * @param \Temporal\Api\Workflow\V1\WorkflowExecutionInfo $var
     * @return $this
     */
    public function setWorkflowExecutionInfo($var)
    {
        GPBUtil::checkMessage($var, \Temporal\Api\Workflow\V1\WorkflowExecutionInfo::class);
        $this->workflow_execution_info = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .temporal.api.workflow.v1.PendingActivityInfo pending_activities = 3;</code>
     * @return RepeatedField<\Temporal\Api\Workflow\V1\PendingActivityInfo>
     */
    public function getPendingActivities()
    {
        return $this->pending_activities;
    }

    /**
     * Generated from protobuf field <code>repeated .temporal.api.workflow.v1.PendingActivityInfo pending_activities = 3;</code>
     * @param \Temporal\Api\Workflow\V1\PendingActivityInfo[] $var
     * @return $this
     */
    public function setPendingActivities($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Workflow\V1\PendingActivityInfo::class);
        $this->pending_activities = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .temporal.api.workflow.v1.PendingChildExecutionInfo pending_children = 4;</code>
     * @return RepeatedField<\Temporal\Api\Workflow\V1\PendingChildExecutionInfo>
     */
    public function getPendingChildren()
    {
        return $this->pending_children;
    }

    /**
     * Generated from protobuf field <code>repeated .temporal.api.workflow.v1.PendingChildExecutionInfo pending_children = 4;</code>
     * @param \Temporal\Api\Workflow\V1\PendingChildExecutionInfo[] $var
     * @return $this
     */
    public function setPendingChildren($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Workflow\V1\PendingChildExecutionInfo::class);
        $this->pending_children = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.temporal.api.workflow.v1.PendingWorkflowTaskInfo pending_workflow_task = 5;</code>
     * @return \Temporal\Api\Workflow\V1\PendingWorkflowTaskInfo|null
     */
    public function getPendingWorkflowTask()
    {
        return $this->pending_workflow_task;
    }

    public function hasPendingWorkflowTask()
    {
        return isset($this->pending_workflow_task);
    }

    public function clearPendingWorkflowTask()
    {
        unset($this->pending_workflow_task);
    }

    /**
     * Generated from protobuf field <code>.temporal.api.workflow.v1.PendingWorkflowTaskInfo pending_workflow_task = 5;</code>
     * @param \Temporal\Api\Workflow\V1\PendingWorkflowTaskInfo $var
     * @return $this
     */
    public function setPendingWorkflowTask($var)
    {
        GPBUtil::checkMessage($var, \Temporal\Api\Workflow\V1\PendingWorkflowTaskInfo::class);
        $this->pending_workflow_task = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .temporal.api.workflow.v1.CallbackInfo callbacks = 6;</code>
     * @return RepeatedField<\Temporal\Api\Workflow\V1\CallbackInfo>
     */
    public function getCallbacks()
    {
        return $this->callbacks;
    }

    /**
     * Generated from protobuf field <code>repeated .temporal.api.workflow.v1.CallbackInfo callbacks = 6;</code>
     * @param \Temporal\Api\Workflow\V1\CallbackInfo[] $var
     * @return $this
     */
    public function setCallbacks($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Workflow\V1\CallbackInfo::class);
        $this->callbacks = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .temporal.api.workflow.v1.PendingNexusOperationInfo pending_nexus_operations = 7;</code>
     * @return RepeatedField<\Temporal\Api\Workflow\V1\PendingNexusOperationInfo>
     */
    public function getPendingNexusOperations()
    {
        return $this->pending_nexus_operations;
    }

    /**
     * Generated from protobuf field <code>repeated .temporal.api.workflow.v1.PendingNexusOperationInfo pending_nexus_operations = 7;</code>
     * @param \Temporal\Api\Workflow\V1\PendingNexusOperationInfo[] $var
     * @return $this
     */
    public function setPendingNexusOperations($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Workflow\V1\PendingNexusOperationInfo::class);
        $this->pending_nexus_operations = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.temporal.api.workflow.v1.WorkflowExecutionExtendedInfo workflow_extended_info = 8;</code>
     * @return \Temporal\Api\Workflow\V1\WorkflowExecutionExtendedInfo|null
     */
    public function getWorkflowExtendedInfo()
    {
        return $this->workflow_extended_info;
    }

    public function hasWorkflowExtendedInfo()
    {
        return isset($this->workflow_extended_info);
    }

    public function clearWorkflowExtendedInfo()
    {
        unset($this->workflow_extended_info);
    }

    /**
     * Generated from protobuf field <code>.temporal.api.workflow.v1.WorkflowExecutionExtendedInfo workflow_extended_info = 8;</code>
     * @param \Temporal\Api\Workflow\V1\WorkflowExecutionExtendedInfo $var
     * @return $this
     */
    public function setWorkflowExtendedInfo($var)
    {
        GPBUtil::checkMessage($var, \Temporal\Api\Workflow\V1\WorkflowExecutionExtendedInfo::class);
        $this->workflow_extended_info = $var;

        return $this;
    }

}

