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: String

    The 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: String

    Short description of the rule-set.

  • $msg->source() / $msg->source($value)

    Type: String

    Source 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: String

    Short description of the rule and its context.

  • $msg->rule_id() / $msg->rule_id($value)

    Type: String

    ID 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: String

    Represents 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 => 0

  • ON_CREATE => 1

  • ON_UPDATE => 4

  • ON_CREATE_LINK => 7

  • ON_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

Google::Cloud::Contentwarehouse::V1::RuleEngine::AccessControlAction

Represents the action responsible for access control list management operations.

Inherits from Protobuf::Message.

Accessors

Enum: AccessControlAction::OperationType

  • UNKNOWN => 0

  • ADD_POLICY_BINDING => 1

  • REMOVE_POLICY_BINDING => 2

  • REPLACE_POLICY_BINDING => 3

Google::Cloud::Contentwarehouse::V1::RuleEngine::DataValidationAction

Represents the action responsible for data validation operations.

Inherits from Protobuf::Message.

Accessors

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: String

    Names 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: String

    Condition of the action to be executed.

  • $msg->folder() / $msg->folder($value)

    Type: String

    Name 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: String

    The topic id in the Pub/Sub service for which messages will be published to.

  • $msg->messages() / $msg->messages($value)

    Type: String

    Messages 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: Bool

    Boolean 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

Google::Cloud::Contentwarehouse::V1::RuleEngine::RuleEvaluatorOutput

Represents the output of the Rule Evaluator.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Contentwarehouse::V1::RuleEngine::InvalidRule

A triggered rule that failed the validation check(s) after parsing.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Contentwarehouse::V1::RuleEngine::ActionExecutorOutput

Represents the output of the Action Executor.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Contentwarehouse::V1::RuleEngine::RuleActionsPair

Represents a rule and outputs of associated actions.

Inherits from Protobuf::Message.

Accessors

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: String

    ID 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: String

    Action execution output message.

Enum: ActionOutput::State

  • UNKNOWN => 0

  • ACTION_SUCCEEDED => 1

  • ACTION_FAILED => 2

  • ACTION_TIMED_OUT => 3

  • ACTION_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.