Interface EventTriggerOrBuilder (0.16.0)

public interface EventTriggerOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getChannel()

public abstract String getChannel()

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;

Returns
Type Description
String

The channel.

getChannelBytes()

public abstract ByteString getChannelBytes()

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;

Returns
Type Description
ByteString

The bytes for channel.

getEventFilters(int index)

public abstract EventFilter getEventFilters(int index)

Criteria used to filter events.

repeated .google.events.cloud.functions.v2.EventFilter event_filters = 4;

Parameter
Name Description
index int
Returns
Type Description
EventFilter

getEventFiltersCount()

public abstract int getEventFiltersCount()

Criteria used to filter events.

repeated .google.events.cloud.functions.v2.EventFilter event_filters = 4;

Returns
Type Description
int

getEventFiltersList()

public abstract List<EventFilter> getEventFiltersList()

Criteria used to filter events.

repeated .google.events.cloud.functions.v2.EventFilter event_filters = 4;

Returns
Type Description
List<EventFilter>

getEventFiltersOrBuilder(int index)

public abstract EventFilterOrBuilder getEventFiltersOrBuilder(int index)

Criteria used to filter events.

repeated .google.events.cloud.functions.v2.EventFilter event_filters = 4;

Parameter
Name Description
index int
Returns
Type Description
EventFilterOrBuilder

getEventFiltersOrBuilderList()

public abstract List<? extends EventFilterOrBuilder> getEventFiltersOrBuilderList()

Criteria used to filter events.

repeated .google.events.cloud.functions.v2.EventFilter event_filters = 4;

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

getEventType()

public abstract String getEventType()

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;

Returns
Type Description
String

The eventType.

getEventTypeBytes()

public abstract ByteString getEventTypeBytes()

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;

Returns
Type Description
ByteString

The bytes for eventType.

getPubsubTopic()

public abstract String getPubsubTopic()

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;

Returns
Type Description
String

The pubsubTopic.

getPubsubTopicBytes()

public abstract ByteString getPubsubTopicBytes()

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;

Returns
Type Description
ByteString

The bytes for pubsubTopic.

getRetryPolicy()

public abstract EventTrigger.RetryPolicy getRetryPolicy()

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

.google.events.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7;

Returns
Type Description
EventTrigger.RetryPolicy

The retryPolicy.

getRetryPolicyValue()

public abstract int getRetryPolicyValue()

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

.google.events.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7;

Returns
Type Description
int

The enum numeric value on the wire for retryPolicy.

getServiceAccountEmail()

public abstract String getServiceAccountEmail()

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;

Returns
Type Description
String

The serviceAccountEmail.

getServiceAccountEmailBytes()

public abstract ByteString getServiceAccountEmailBytes()

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;

Returns
Type Description
ByteString

The bytes for serviceAccountEmail.

getTrigger()

public abstract String getTrigger()

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

string trigger = 1;

Returns
Type Description
String

The trigger.

getTriggerBytes()

public abstract ByteString getTriggerBytes()

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

string trigger = 1;

Returns
Type Description
ByteString

The bytes for trigger.

getTriggerRegion()

public abstract String getTriggerRegion()

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()

public abstract ByteString getTriggerRegionBytes()

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.