<?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\PendingActivityInfo\PauseInfo;

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

/**
 * Generated from protobuf message <code>temporal.api.workflow.v1.PendingActivityInfo.PauseInfo.Rule</code>
 */
class Rule extends \Google\Protobuf\Internal\Message
{
    /**
     * The rule that paused the activity.
     *
     * Generated from protobuf field <code>string rule_id = 1;</code>
     */
    protected $rule_id = '';
    /**
     * The identity of the actor that created the rule.
     *
     * Generated from protobuf field <code>string identity = 2;</code>
     */
    protected $identity = '';
    /**
     * Reason why rule was created. Populated from rule description.
     *
     * Generated from protobuf field <code>string reason = 3;</code>
     */
    protected $reason = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $rule_id
     *           The rule that paused the activity.
     *     @type string $identity
     *           The identity of the actor that created the rule.
     *     @type string $reason
     *           Reason why rule was created. Populated from rule description.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Workflow\V1\Message::initOnce();
        parent::__construct($data);
    }

    /**
     * The rule that paused the activity.
     *
     * Generated from protobuf field <code>string rule_id = 1;</code>
     * @return string
     */
    public function getRuleId()
    {
        return $this->rule_id;
    }

    /**
     * The rule that paused the activity.
     *
     * Generated from protobuf field <code>string rule_id = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setRuleId($var)
    {
        GPBUtil::checkString($var, True);
        $this->rule_id = $var;

        return $this;
    }

    /**
     * The identity of the actor that created the rule.
     *
     * Generated from protobuf field <code>string identity = 2;</code>
     * @return string
     */
    public function getIdentity()
    {
        return $this->identity;
    }

    /**
     * The identity of the actor that created the rule.
     *
     * Generated from protobuf field <code>string identity = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setIdentity($var)
    {
        GPBUtil::checkString($var, True);
        $this->identity = $var;

        return $this;
    }

    /**
     * Reason why rule was created. Populated from rule description.
     *
     * Generated from protobuf field <code>string reason = 3;</code>
     * @return string
     */
    public function getReason()
    {
        return $this->reason;
    }

    /**
     * Reason why rule was created. Populated from rule description.
     *
     * Generated from protobuf field <code>string reason = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setReason($var)
    {
        GPBUtil::checkString($var, True);
        $this->reason = $var;

        return $this;
    }

}

