NAME

Google::Cloud::Ces::V1beta::Guardrail - Compiled Protocol Buffers messages for google/cloud/ces/v1beta/guardrail.proto

SYNOPSIS

use Google::Cloud::Ces::V1beta::Guardrail;

my $msg = Google::Cloud::Ces::V1beta::Guardrail::Guardrail->new({
    content_filter => $content_filter,
    llm_prompt_security => $llm_prompt_security,
    llm_policy => $llm_policy,
    model_safety => $model_safety,
});

# Read or update a field
my $val = $msg->content_filter();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Ces::V1beta::Guardrail::Guardrail->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/ces/v1beta/guardrail.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::Ces::V1beta::Guardrail::Guardrail

Guardrail contains a list of checks and balances to keep the agents safe and secure.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Ces::V1beta::Guardrail::Guardrail::ContentFilter)

    Optional. Guardrail that bans certain content from being used in the conversation.

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

    Type: Message (Google::Cloud::Ces::V1beta::Guardrail::Guardrail::LlmPromptSecurity)

    Optional. Guardrail that blocks the conversation if the prompt is considered unsafe based on the LLM classification.

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

    Type: Message (Google::Cloud::Ces::V1beta::Guardrail::Guardrail::LlmPolicy)

    Optional. Guardrail that blocks the conversation if the LLM response is considered violating the policy based on the LLM classification.

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

    Type: Message (Google::Cloud::Ces::V1beta::Guardrail::Guardrail::ModelSafety)

    Optional. Guardrail that blocks the conversation if the LLM response is considered unsafe based on the model safety settings.

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

    Type: Message (Google::Cloud::Ces::V1beta::Guardrail::Guardrail::CodeCallback)

    Optional. Guardrail that potentially blocks the conversation based on the result of the callback execution.

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

    Type: Message (Google::Cloud::Ces::V1beta::Guardrail::Guardrail::Supervisor)

    Optional. Guardrail that runs supervisor intervention.

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

    Type: String

    Identifier. The unique identifier of the guardrail. Format: `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`

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

    Type: String

    Required. Display name of the guardrail.

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

    Type: String

    Optional. Description of the guardrail.

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

    Type: Bool

    Optional. Whether the guardrail is enabled.

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

    Type: Message (Google::Cloud::Ces::V1beta::Common::TriggerAction)

    Optional. Action to take when the guardrail is triggered.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Timestamp when the guardrail was created.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Timestamp when the guardrail was last updated.

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

    Type: String

    Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Ces::V1beta::Guardrail::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.