NAME
Google::Cloud::Contentwarehouse::V1::RuleEngine - Compiled Protocol Buffers messages for google/cloud/contentwarehouse/v1/rule_engine.proto
SYNOPSIS
use Google::Cloud::Contentwarehouse::V1::RuleEngine;
my $msg = Google::Cloud::Contentwarehouse::V1::RuleEngine::RuleSet->new({
name => $name,
description => $description,
source => $source,
rules => $rules,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Contentwarehouse::V1::RuleEngine::RuleSet->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/contentwarehouse/v1/rule_engine.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Contentwarehouse::V1::RuleEngine::RuleSet
Represents a set of rules from a single customer.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe resource name of the rule set. Managed internally. Format: projects/{project_number}/locations/{location}/ruleSet/{rule_set_id}.
The name is ignored when creating a rule set.
$msg->description()/$msg->description($value)Type:
StringShort description of the rule-set.
$msg->source()/$msg->source($value)Type:
StringSource of the rules i.e., customer name.
$msg->rules()/$msg->rules($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::RuleEngine::Rule)List of rules given by the customer.
Google::Cloud::Contentwarehouse::V1::RuleEngine::Rule
Represents the rule for a content warehouse trigger.
Inherits from Protobuf::Message.
Accessors
$msg->description()/$msg->description($value)Type:
StringShort description of the rule and its context.
$msg->rule_id()/$msg->rule_id($value)Type:
StringID of the rule. It has to be unique across all the examples. This is managed internally.
$msg->trigger_type()/$msg->trigger_type($value)Type:
Enum(Google::Cloud::Contentwarehouse::V1::Rule::TriggerType)Identifies the trigger type for running the policy.
$msg->condition()/$msg->condition($value)Type:
StringRepresents the conditional expression to be evaluated. Expression should evaluate to a boolean result. When the condition is true actions are executed. Example: user_role = "hsbc_role_1" AND doc.salary > 20000
$msg->actions()/$msg->actions($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::RuleEngine::Action)List of actions that are executed when the rule is satisfied.
Enum: Rule::TriggerType
UNKNOWN=>0ON_CREATE=>1ON_UPDATE=>4ON_CREATE_LINK=>7ON_DELETE_LINK=>8
Google::Cloud::Contentwarehouse::V1::RuleEngine::Action
Represents the action triggered by Rule Engine when the rule is true.
Inherits from Protobuf::Message.
Accessors
$msg->action_id()/$msg->action_id($value)Type:
StringID of the action. Managed internally.
$msg->access_control()/$msg->access_control($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::RuleEngine::AccessControlAction)Action triggering access control operations.
$msg->data_validation()/$msg->data_validation($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::RuleEngine::DataValidationAction)Action triggering data validation operations.
$msg->data_update()/$msg->data_update($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::RuleEngine::DataUpdateAction)Action triggering data update operations.
$msg->add_to_folder()/$msg->add_to_folder($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::RuleEngine::AddToFolderAction)Action triggering create document link operation.
$msg->publish_to_pub_sub()/$msg->publish_to_pub_sub($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::RuleEngine::PublishAction)Action publish to Pub/Sub operation.
$msg->remove_from_folder_action()/$msg->remove_from_folder_action($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::RuleEngine::RemoveFromFolderAction)Action removing a document from a folder.
$msg->delete_document_action()/$msg->delete_document_action($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::RuleEngine::DeleteDocumentAction)Action deleting the document.
Google::Cloud::Contentwarehouse::V1::RuleEngine::AccessControlAction
Represents the action responsible for access control list management operations.
Inherits from Protobuf::Message.
Accessors
$msg->operation_type()/$msg->operation_type($value)Type:
Enum(Google::Cloud::Contentwarehouse::V1::AccessControlAction::OperationType)Identifies the type of operation.
$msg->policy()/$msg->policy($value)Type:
Message(Google::Iam::V1::Policy::Policy)Represents the new policy from which bindings are added, removed or replaced based on the type of the operation. the policy is limited to a few 10s of KB.
Enum: AccessControlAction::OperationType
UNKNOWN=>0ADD_POLICY_BINDING=>1REMOVE_POLICY_BINDING=>2REPLACE_POLICY_BINDING=>3
Google::Cloud::Contentwarehouse::V1::RuleEngine::DataValidationAction
Represents the action responsible for data validation operations.
Inherits from Protobuf::Message.
Accessors
$msg->conditions()/$msg->conditions($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::RuleEngine::DataValidationAction::ConditionsEntry)Map of (K, V) -> (field, string condition to be evaluated on the field) E.g., ("age", "age > 18 && age < 60") entry triggers validation of field age with the given condition. Map entries will be ANDed during validation.
Google::Cloud::Contentwarehouse::V1::RuleEngine::DataUpdateAction
Represents the action responsible for properties update operations.
Inherits from Protobuf::Message.
Accessors
$msg->entries()/$msg->entries($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::RuleEngine::DataUpdateAction::EntriesEntry)Map of (K, V) -> (valid name of the field, new value of the field) E.g., ("age", "60") entry triggers update of field age with a value of 60. If the field is not present then new entry is added. During update action execution, value strings will be casted to appropriate types.
Google::Cloud::Contentwarehouse::V1::RuleEngine::AddToFolderAction
Represents the action responsible for adding document under a folder.
Inherits from Protobuf::Message.
Accessors
$msg->folders()/$msg->folders($value)Type:
StringNames of the folder under which new document is to be added. Format: projects/{project_number}/locations/{location}/documents/{document_id}.
Google::Cloud::Contentwarehouse::V1::RuleEngine::RemoveFromFolderAction
Represents the action responsible for remove a document from a specific folder.
Inherits from Protobuf::Message.
Accessors
$msg->condition()/$msg->condition($value)Type:
StringCondition of the action to be executed.
$msg->folder()/$msg->folder($value)Type:
StringName of the folder under which new document is to be added. Format: projects/{project_number}/locations/{location}/documents/{document_id}.
Google::Cloud::Contentwarehouse::V1::RuleEngine::PublishAction
Represents the action responsible for publishing messages to a Pub/Sub topic.
Inherits from Protobuf::Message.
Accessors
$msg->topic_id()/$msg->topic_id($value)Type:
StringThe topic id in the Pub/Sub service for which messages will be published to.
$msg->messages()/$msg->messages($value)Type:
StringMessages to be published.
Google::Cloud::Contentwarehouse::V1::RuleEngine::DeleteDocumentAction
Represents the action responsible for deleting the document.
Inherits from Protobuf::Message.
Accessors
$msg->enable_hard_delete()/$msg->enable_hard_delete($value)Type:
BoolBoolean field to select between hard vs soft delete options. Set 'true' for 'hard delete' and 'false' for 'soft delete'.
Google::Cloud::Contentwarehouse::V1::RuleEngine::RuleEngineOutput
Records the output of Rule Engine including rule evaluation and actions result.
Inherits from Protobuf::Message.
Accessors
$msg->document_name()/$msg->document_name($value)Type:
StringName of the document against which the rules and actions were evaluated.
$msg->rule_evaluator_output()/$msg->rule_evaluator_output($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::RuleEngine::RuleEvaluatorOutput)Output from Rule Evaluator containing matched, unmatched and invalid rules.
$msg->action_executor_output()/$msg->action_executor_output($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::RuleEngine::ActionExecutorOutput)Output from Action Executor containing rule and corresponding actions execution result.
Google::Cloud::Contentwarehouse::V1::RuleEngine::RuleEvaluatorOutput
Represents the output of the Rule Evaluator.
Inherits from Protobuf::Message.
Accessors
$msg->triggered_rules()/$msg->triggered_rules($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::RuleEngine::Rule)List of rules fetched from database for the given request trigger type.
$msg->matched_rules()/$msg->matched_rules($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::RuleEngine::Rule)A subset of triggered rules that are evaluated true for a given request.
$msg->invalid_rules()/$msg->invalid_rules($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::RuleEngine::InvalidRule)A subset of triggered rules that failed the validation check(s) after parsing.
Google::Cloud::Contentwarehouse::V1::RuleEngine::InvalidRule
A triggered rule that failed the validation check(s) after parsing.
Inherits from Protobuf::Message.
Accessors
$msg->rule()/$msg->rule($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::RuleEngine::Rule)Triggered rule.
$msg->error()/$msg->error($value)Type:
StringValidation error on a parsed expression.
Google::Cloud::Contentwarehouse::V1::RuleEngine::ActionExecutorOutput
Represents the output of the Action Executor.
Inherits from Protobuf::Message.
Accessors
$msg->rule_actions_pairs()/$msg->rule_actions_pairs($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::RuleEngine::RuleActionsPair)List of rule and corresponding actions result.
Google::Cloud::Contentwarehouse::V1::RuleEngine::RuleActionsPair
Represents a rule and outputs of associated actions.
Inherits from Protobuf::Message.
Accessors
$msg->rule()/$msg->rule($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::RuleEngine::Rule)Represents the rule.
$msg->action_outputs()/$msg->action_outputs($value)Type:
Message(Google::Cloud::Contentwarehouse::V1::RuleEngine::ActionOutput)Outputs of executing the actions associated with the above rule.
Google::Cloud::Contentwarehouse::V1::RuleEngine::ActionOutput
Represents the result of executing an action.
Inherits from Protobuf::Message.
Accessors
$msg->action_id()/$msg->action_id($value)Type:
StringID of the action.
$msg->action_state()/$msg->action_state($value)Type:
Enum(Google::Cloud::Contentwarehouse::V1::ActionOutput::State)State of an action.
$msg->output_message()/$msg->output_message($value)Type:
StringAction execution output message.
Enum: ActionOutput::State
UNKNOWN=>0ACTION_SUCCEEDED=>1ACTION_FAILED=>2ACTION_TIMED_OUT=>3ACTION_PENDING=>4
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Contentwarehouse::V1::RuleEngine::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.