Class EventTrigger (2.43.0)

publicfinalclass EventTriggerextendsGeneratedMessageV3implementsEventTriggerOrBuilder

Describes EventTrigger, used to request events to be sent from another service.

Protobuf type google.cloud.functions.v2beta.EventTrigger

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

CHANNEL_FIELD_NUMBER

publicstaticfinalintCHANNEL_FIELD_NUMBER
Field Value
Type Description
int

EVENT_FILTERS_FIELD_NUMBER

publicstaticfinalintEVENT_FILTERS_FIELD_NUMBER
Field Value
Type Description
int

EVENT_TYPE_FIELD_NUMBER

publicstaticfinalintEVENT_TYPE_FIELD_NUMBER
Field Value
Type Description
int

PUBSUB_TOPIC_FIELD_NUMBER

publicstaticfinalintPUBSUB_TOPIC_FIELD_NUMBER
Field Value
Type Description
int

RETRY_POLICY_FIELD_NUMBER

publicstaticfinalintRETRY_POLICY_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER

publicstaticfinalintSERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
Field Value
Type Description
int

TRIGGER_FIELD_NUMBER

publicstaticfinalintTRIGGER_FIELD_NUMBER
Field Value
Type Description
int

TRIGGER_REGION_FIELD_NUMBER

publicstaticfinalintTRIGGER_REGION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticEventTriggergetDefaultInstance()
Returns
Type Description
EventTrigger

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticEventTrigger.BuildernewBuilder()
Returns
Type Description
EventTrigger.Builder

newBuilder(EventTrigger prototype)

publicstaticEventTrigger.BuildernewBuilder(EventTriggerprototype)
Parameter
Name Description
prototype EventTrigger
Returns
Type Description
EventTrigger.Builder

parseDelimitedFrom(InputStream input)

publicstaticEventTriggerparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
EventTrigger
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticEventTriggerparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventTrigger
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticEventTriggerparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
EventTrigger
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticEventTriggerparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventTrigger
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticEventTriggerparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
EventTrigger
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticEventTriggerparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventTrigger
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticEventTriggerparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
EventTrigger
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticEventTriggerparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventTrigger
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticEventTriggerparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
EventTrigger
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticEventTriggerparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventTrigger
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticEventTriggerparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
EventTrigger
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticEventTriggerparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventTrigger
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<EventTrigger>parser()
Returns
Type Description
Parser<EventTrigger>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getChannel()

publicStringgetChannel()

Optional. 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.

string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The channel.

getChannelBytes()

publicByteStringgetChannelBytes()

Optional. 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.

string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for channel.

getDefaultInstanceForType()

publicEventTriggergetDefaultInstanceForType()
Returns
Type Description
EventTrigger

getEventFilters(int index)

publicEventFiltergetEventFilters(intindex)

Criteria used to filter events.

repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4;

Parameter
Name Description
index int
Returns
Type Description
EventFilter

getEventFiltersCount()

publicintgetEventFiltersCount()

Criteria used to filter events.

repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4;

Returns
Type Description
int

getEventFiltersList()

publicList<EventFilter>getEventFiltersList()

Criteria used to filter events.

repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4;

Returns
Type Description
List<EventFilter>

getEventFiltersOrBuilder(int index)

publicEventFilterOrBuildergetEventFiltersOrBuilder(intindex)

Criteria used to filter events.

repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4;

Parameter
Name Description
index int
Returns
Type Description
EventFilterOrBuilder

getEventFiltersOrBuilderList()

publicList<?extendsEventFilterOrBuilder>getEventFiltersOrBuilderList()

Criteria used to filter events.

repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4;

Returns
Type Description
List<? extends com.google.cloud.functions.v2beta.EventFilterOrBuilder>

getEventType()

publicStringgetEventType()

Required. The type of event to observe. For example: google.cloud.audit.log.v1.written or google.cloud.pubsub.topic.v1.messagePublished.

string event_type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The eventType.

getEventTypeBytes()

publicByteStringgetEventTypeBytes()

Required. The type of event to observe. For example: google.cloud.audit.log.v1.written or google.cloud.pubsub.topic.v1.messagePublished.

string event_type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for eventType.

getParserForType()

publicParser<EventTrigger>getParserForType()
Returns
Type Description
Parser<EventTrigger>
Overrides

getPubsubTopic()

publicStringgetPubsubTopic()

Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: projects/{project}/topics/{topic}.

This is only valid for events of type google.cloud.pubsub.topic.v1.messagePublished. The topic provided here will not be deleted at function deletion.

string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The pubsubTopic.

getPubsubTopicBytes()

publicByteStringgetPubsubTopicBytes()

Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: projects/{project}/topics/{topic}.

This is only valid for events of type google.cloud.pubsub.topic.v1.messagePublished. The topic provided here will not be deleted at function deletion.

string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for pubsubTopic.

getRetryPolicy()

publicEventTrigger.RetryPolicygetRetryPolicy()

Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).

.google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EventTrigger.RetryPolicy

The retryPolicy.

getRetryPolicyValue()

publicintgetRetryPolicyValue()

Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).

.google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for retryPolicy.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getServiceAccountEmail()

publicStringgetServiceAccountEmail()

Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is run.routes.invoke. If empty, defaults to the Compute Engine default service account: {project_number}-compute@developer.gserviceaccount.com.

string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The serviceAccountEmail.

getServiceAccountEmailBytes()

publicByteStringgetServiceAccountEmailBytes()

Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is run.routes.invoke. If empty, defaults to the Compute Engine default service account: {project_number}-compute@developer.gserviceaccount.com.

string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for serviceAccountEmail.

getTrigger()

publicStringgetTrigger()

Output only. The resource name of the Eventarc trigger. The format of this field is projects/{project}/locations/{region}/triggers/{trigger}.

string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The trigger.

getTriggerBytes()

publicByteStringgetTriggerBytes()

Output only. The resource name of the Eventarc trigger. The format of this field is projects/{project}/locations/{region}/triggers/{trigger}.

string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for trigger.

getTriggerRegion()

publicStringgetTriggerRegion()

The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.

string trigger_region = 2;

Returns
Type Description
String

The triggerRegion.

getTriggerRegionBytes()

publicByteStringgetTriggerRegionBytes()

The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.

string trigger_region = 2;

Returns
Type Description
ByteString

The bytes for triggerRegion.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicEventTrigger.BuildernewBuilderForType()
Returns
Type Description
EventTrigger.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedEventTrigger.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
EventTrigger.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicEventTrigger.BuildertoBuilder()
Returns
Type Description
EventTrigger.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.