NAME
Google::Cloud::Eventarc::V1::Trigger - Compiled Protocol Buffers messages for google/cloud/eventarc/v1/trigger.proto
SYNOPSIS
use Google::Cloud::Eventarc::V1::Trigger;
my $msg = Google::Cloud::Eventarc::V1::Trigger::Trigger->new({
name => $name,
uid => $uid,
create_time => $create_time,
update_time => $update_time,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Eventarc::V1::Trigger::Trigger->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/eventarc/v1/trigger.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::Eventarc::V1::Trigger::Trigger
A representation of the trigger resource.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the trigger. Must be unique within the location of the project and must be in `projects/{project}/locations/{location}/triggers/{trigger}` format.
$msg->uid()/$msg->uid($value)Type:
StringOutput only. Server-assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The creation time.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The last-modified time.
$msg->event_filters()/$msg->event_filters($value)Type:
Message(Google::Cloud::Eventarc::V1::Trigger::EventFilter)Required. Unordered list. The list of filters that applies to event attributes. Only events that match all the provided filters are sent to the destination.
$msg->service_account()/$msg->service_account($value)Type:
StringOptional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger.
The `iam.serviceAccounts.actAs` permission must be granted on the service account to allow a principal to impersonate the service account. For more information, see the [Roles and permissions](/eventarc/docs/all-roles-permissions) page specific to the trigger destination.
$msg->destination()/$msg->destination($value)Type:
Message(Google::Cloud::Eventarc::V1::Trigger::Destination)Required. Destination specifies where the events should be sent to.
$msg->transport()/$msg->transport($value)Type:
Message(Google::Cloud::Eventarc::V1::Trigger::Transport)Optional. To deliver messages, Eventarc might use other Google Cloud products as a transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Eventarc::V1::Trigger::Trigger::LabelsEntry)Optional. User labels attached to the triggers that can be used to group resources.
$msg->channel()/$msg->channel($value)Type:
StringOptional. The name of the channel associated with the trigger in `projects/{project}/locations/{location}/channels/{channel}` format. You must provide a channel to receive events from Eventarc SaaS partners.
$msg->conditions()/$msg->conditions($value)Type:
Message(Google::Cloud::Eventarc::V1::Trigger::Trigger::ConditionsEntry)Output only. The reason(s) why a trigger is in FAILED state.
$msg->event_data_content_type()/$msg->event_data_content_type($value)Type:
StringOptional. EventDataContentType specifies the type of payload in MIME format that is expected from the CloudEvent data field. This is set to `application/json` if the value is not defined.
$msg->satisfies_pzs()/$msg->satisfies_pzs($value)Type:
BoolOutput only. Whether or not this Trigger satisfies the requirements of physical zone separation
$msg->retry_policy()/$msg->retry_policy($value)Type:
Message(Google::Cloud::Eventarc::V1::Trigger::Trigger::RetryPolicy)Optional. The retry policy to use in the Trigger.
If unset, event delivery will be retried for up to 24 hours by default: https://cloud.google.com/eventarc/docs/retry-events
$msg->etag()/$msg->etag($value)Type:
StringOutput only. This checksum is computed by the server based on the value of other fields, and might be sent only on create requests to ensure that the client has an up-to-date value before proceeding.
Google::Cloud::Eventarc::V1::Trigger::EventFilter
Filters events based on exact matches on the CloudEvents attributes.
Inherits from Protobuf::Message.
Accessors
$msg->attribute()/$msg->attribute($value)Type:
StringRequired. The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. You can [retrieve a specific provider's supported event types](/eventarc/docs/list-providers#describe-provider).
All triggers MUST provide a filter for the 'type' attribute.
$msg->value()/$msg->value($value)Type:
StringRequired. The value for the attribute.
$msg->operator()/$msg->operator($value)Type:
StringOptional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The allowed values are `path_pattern` and `match-path-pattern`. `path_pattern` is only allowed for GCFv1 triggers.
Google::Cloud::Eventarc::V1::Trigger::StateCondition
A condition that is part of the trigger state computation.
Inherits from Protobuf::Message.
Accessors
$msg->code()/$msg->code($value)Type:
Enum(Google::Rpc::Code)The canonical code of the condition.
$msg->message()/$msg->message($value)Type:
StringHuman-readable message.
Google::Cloud::Eventarc::V1::Trigger::Destination
Represents a target of an invocation over HTTP.
Inherits from Protobuf::Message.
Accessors
$msg->cloud_run()/$msg->cloud_run($value)Type:
Message(Google::Cloud::Eventarc::V1::Trigger::CloudRun)Cloud Run fully-managed resource that receives the events. The resource should be in the same project as the trigger.
$msg->cloud_function()/$msg->cloud_function($value)Type:
StringThe Cloud Function resource name. Cloud Functions V1 and V2 are supported. Format: `projects/{project}/locations/{location}/functions/{function}`
This is a read-only field. Creating Cloud Functions V1/V2 triggers is only supported via the Cloud Functions product. An error will be returned if the user sets this value.
$msg->gke()/$msg->gke($value)Type:
Message(Google::Cloud::Eventarc::V1::Trigger::GKE)A GKE service capable of receiving events. The service should be running in the same project as the trigger.
$msg->workflow()/$msg->workflow($value)Type:
StringThe resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the trigger. Format: `projects/{project}/locations/{location}/workflows/{workflow}`
$msg->http_endpoint()/$msg->http_endpoint($value)Type:
Message(Google::Cloud::Eventarc::V1::Trigger::HttpEndpoint)An HTTP endpoint destination described by an URI.
$msg->network_config()/$msg->network_config($value)Type:
Message(Google::Cloud::Eventarc::V1::NetworkConfig::NetworkConfig)Optional. Network config is used to configure how Eventarc resolves and connect to a destination. This should only be used with HttpEndpoint destination type.
Google::Cloud::Eventarc::V1::Trigger::Transport
Represents the transport intermediaries created for the trigger to deliver events.
Inherits from Protobuf::Message.
Accessors
$msg->pubsub()/$msg->pubsub($value)Type:
Message(Google::Cloud::Eventarc::V1::Trigger::Pubsub)The Pub/Sub topic and subscription used by Eventarc as a transport intermediary.
Google::Cloud::Eventarc::V1::Trigger::CloudRun
Represents a Cloud Run destination.
Inherits from Protobuf::Message.
Accessors
$msg->service()/$msg->service($value)Type:
StringRequired. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services.
Only services located in the same project as the trigger object can be addressed.
$msg->path()/$msg->path($value)Type:
StringOptional. The relative path on the Cloud Run service the events should be sent to.
The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".
$msg->region()/$msg->region($value)Type:
StringRequired. The region the Cloud Run service is deployed in.
Google::Cloud::Eventarc::V1::Trigger::GKE
Represents a GKE destination.
Inherits from Protobuf::Message.
Accessors
$msg->cluster()/$msg->cluster($value)Type:
StringRequired. The name of the cluster the GKE service is running in. The cluster must be running in the same project as the trigger being created.
$msg->location()/$msg->location($value)Type:
StringRequired. The name of the Google Compute Engine in which the cluster resides, which can either be compute zone (for example, us-central1-a) for the zonal clusters or region (for example, us-central1) for regional clusters.
$msg->namespace()/$msg->namespace($value)Type:
StringRequired. The namespace the GKE service is running in.
$msg->service()/$msg->service($value)Type:
StringRequired. Name of the GKE service.
$msg->path()/$msg->path($value)Type:
StringOptional. The relative path on the GKE service the events should be sent to.
The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".
Google::Cloud::Eventarc::V1::Trigger::Pubsub
Represents a Pub/Sub transport.
Inherits from Protobuf::Message.
Accessors
$msg->topic()/$msg->topic($value)Type:
StringOptional. The name of the Pub/Sub topic created and managed by Eventarc as a transport for the event delivery. Format: `projects/{PROJECT_ID}/topics/{TOPIC_NAME}`.
You can set an existing topic for triggers of the type `google.cloud.pubsub.topic.v1.messagePublished`. The topic you provide here is not deleted by Eventarc at trigger deletion.
$msg->subscription()/$msg->subscription($value)Type:
StringOutput only. The name of the Pub/Sub subscription created and managed by Eventarc as a transport for the event delivery. Format: `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`.
Google::Cloud::Eventarc::V1::Trigger::HttpEndpoint
Represents a HTTP endpoint destination.
Inherits from Protobuf::Message.
Accessors
$msg->uri()/$msg->uri($value)Type:
StringRequired. The URI of the HTTP endpoint.
The value must be a RFC2396 URI string. Examples: `http://10.10.10.8:80/route`, `http://svc.us-central1.p.local:8080/`. Only HTTP and HTTPS protocols are supported. The host can be either a static IP addressable from the VPC specified by the network config, or an internal DNS hostname of the service resolvable via Cloud DNS.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Eventarc::V1::Trigger::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.