<?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.DescribeWorkflowRuleResponse</code>
 */
class DescribeWorkflowRuleResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The rule that was read.
     *
     * Generated from protobuf field <code>.temporal.api.rules.v1.WorkflowRule rule = 1;</code>
     */
    protected $rule = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Temporal\Api\Rules\V1\WorkflowRule $rule
     *           The rule that was read.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
        parent::__construct($data);
    }

    /**
     * The rule that was read.
     *
     * Generated from protobuf field <code>.temporal.api.rules.v1.WorkflowRule rule = 1;</code>
     * @return \Temporal\Api\Rules\V1\WorkflowRule|null
     */
    public function getRule()
    {
        return $this->rule;
    }

    public function hasRule()
    {
        return isset($this->rule);
    }

    public function clearRule()
    {
        unset($this->rule);
    }

    /**
     * The rule that was read.
     *
     * Generated from protobuf field <code>.temporal.api.rules.v1.WorkflowRule rule = 1;</code>
     * @param \Temporal\Api\Rules\V1\WorkflowRule $var
     * @return $this
     */
    public function setRule($var)
    {
        GPBUtil::checkMessage($var, \Temporal\Api\Rules\V1\WorkflowRule::class);
        $this->rule = $var;

        return $this;
    }

}

