<?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.TriggerWorkflowRuleResponse</code>
 */
class TriggerWorkflowRuleResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * True is the rule was applied, based on the rule conditions (predicate/visibility_query).
     *
     * Generated from protobuf field <code>bool applied = 1;</code>
     */
    protected $applied = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $applied
     *           True is the rule was applied, based on the rule conditions (predicate/visibility_query).
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
        parent::__construct($data);
    }

    /**
     * True is the rule was applied, based on the rule conditions (predicate/visibility_query).
     *
     * Generated from protobuf field <code>bool applied = 1;</code>
     * @return bool
     */
    public function getApplied()
    {
        return $this->applied;
    }

    /**
     * True is the rule was applied, based on the rule conditions (predicate/visibility_query).
     *
     * Generated from protobuf field <code>bool applied = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setApplied($var)
    {
        GPBUtil::checkBool($var);
        $this->applied = $var;

        return $this;
    }

}

