Class Trigger.Builder (1.52.0)

public static final class Trigger.Builder extends GeneratedMessageV3.Builder<Trigger.Builder> implements TriggerOrBuilder

A representation of the trigger resource.

Protobuf type google.cloud.eventarc.v1.Trigger

Implements

TriggerOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllEventFilters(Iterable<? extends EventFilter> values)

public Trigger.Builder addAllEventFilters(Iterable<? extends EventFilter> values)

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.

repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.eventarc.v1.EventFilter>
Returns
Type Description
Trigger.Builder

addEventFilters(EventFilter value)

public Trigger.Builder addEventFilters(EventFilter value)

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.

repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value EventFilter
Returns
Type Description
Trigger.Builder

addEventFilters(EventFilter.Builder builderForValue)

public Trigger.Builder addEventFilters(EventFilter.Builder builderForValue)

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.

repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue EventFilter.Builder
Returns
Type Description
Trigger.Builder

addEventFilters(int index, EventFilter value)

public Trigger.Builder addEventFilters(int index, EventFilter value)

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.

repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value EventFilter
Returns
Type Description
Trigger.Builder

addEventFilters(int index, EventFilter.Builder builderForValue)

public Trigger.Builder addEventFilters(int index, EventFilter.Builder builderForValue)

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.

repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue EventFilter.Builder
Returns
Type Description
Trigger.Builder

addEventFiltersBuilder()

public EventFilter.Builder addEventFiltersBuilder()

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.

repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EventFilter.Builder

addEventFiltersBuilder(int index)

public EventFilter.Builder addEventFiltersBuilder(int index)

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.

repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
EventFilter.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Trigger.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Trigger.Builder
Overrides

build()

public Trigger build()
Returns
Type Description
Trigger

buildPartial()

public Trigger buildPartial()
Returns
Type Description
Trigger

clear()

public Trigger.Builder clear()
Returns
Type Description
Trigger.Builder
Overrides

clearChannel()

public Trigger.Builder clearChannel()

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 = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Trigger.Builder

This builder for chaining.

clearConditions()

public Trigger.Builder clearConditions()
Returns
Type Description
Trigger.Builder

clearCreateTime()

public Trigger.Builder clearCreateTime()

Output only. The creation time.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Trigger.Builder

clearDestination()

public Trigger.Builder clearDestination()

Required. Destination specifies where the events should be sent to.

.google.cloud.eventarc.v1.Destination destination = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Trigger.Builder

clearEtag()

public Trigger.Builder clearEtag()

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

string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Trigger.Builder

This builder for chaining.

clearEventFilters()

public Trigger.Builder clearEventFilters()

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.

repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Trigger.Builder

clearField(Descriptors.FieldDescriptor field)

public Trigger.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Trigger.Builder
Overrides

clearLabels()

public Trigger.Builder clearLabels()
Returns
Type Description
Trigger.Builder

clearName()

public Trigger.Builder clearName()

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

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Trigger.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Trigger.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Trigger.Builder
Overrides

clearServiceAccount()

public Trigger.Builder clearServiceAccount()

Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger.

The principal who calls this API must have the iam.serviceAccounts.actAs permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common for more information.

For Cloud Run destinations, this service account is used to generate identity tokens when invoking the service. See https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account for information on how to invoke authenticated Cloud Run services. To create Audit Log triggers, the service account should also have the roles/eventarc.eventReceiver IAM role.

string service_account = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
Trigger.Builder

This builder for chaining.

clearTransport()

public Trigger.Builder clearTransport()

Optional. To deliver messages, Eventarc might use other GCP products as a transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.

.google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Trigger.Builder

clearUid()

public Trigger.Builder clearUid()

Output only. Server-assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Trigger.Builder

This builder for chaining.

clearUpdateTime()

public Trigger.Builder clearUpdateTime()

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Trigger.Builder

clone()

public Trigger.Builder clone()
Returns
Type Description
Trigger.Builder
Overrides

containsConditions(String key)

public boolean containsConditions(String key)

Output only. The reason(s) why a trigger is in FAILED state.

map<string, .google.cloud.eventarc.v1.StateCondition> conditions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
boolean

containsLabels(String key)

public boolean containsLabels(String key)

Optional. User labels attached to the triggers that can be used to group resources.

map<string, string> labels = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getChannel()

public 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 = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The channel.

getChannelBytes()

public 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 = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for channel.

getConditions() (deprecated)

public Map<String,StateCondition> getConditions()

Use #getConditionsMap() instead.

Returns
Type Description
Map<String,StateCondition>

getConditionsCount()

public int getConditionsCount()

Output only. The reason(s) why a trigger is in FAILED state.

map<string, .google.cloud.eventarc.v1.StateCondition> conditions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getConditionsMap()

public Map<String,StateCondition> getConditionsMap()

Output only. The reason(s) why a trigger is in FAILED state.

map<string, .google.cloud.eventarc.v1.StateCondition> conditions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<String,StateCondition>

getConditionsOrDefault(String key, StateCondition defaultValue)

public StateCondition getConditionsOrDefault(String key, StateCondition defaultValue)

Output only. The reason(s) why a trigger is in FAILED state.

map<string, .google.cloud.eventarc.v1.StateCondition> conditions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
defaultValue StateCondition
Returns
Type Description
StateCondition

getConditionsOrThrow(String key)

public StateCondition getConditionsOrThrow(String key)

Output only. The reason(s) why a trigger is in FAILED state.

map<string, .google.cloud.eventarc.v1.StateCondition> conditions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
StateCondition

getCreateTime()

public Timestamp getCreateTime()

Output only. The creation time.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The creation time.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation time.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Trigger getDefaultInstanceForType()
Returns
Type Description
Trigger

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDestination()

public Destination getDestination()

Required. Destination specifies where the events should be sent to.

.google.cloud.eventarc.v1.Destination destination = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Destination

The destination.

getDestinationBuilder()

public Destination.Builder getDestinationBuilder()

Required. Destination specifies where the events should be sent to.

.google.cloud.eventarc.v1.Destination destination = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Destination.Builder

getDestinationOrBuilder()

public DestinationOrBuilder getDestinationOrBuilder()

Required. Destination specifies where the events should be sent to.

.google.cloud.eventarc.v1.Destination destination = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DestinationOrBuilder

getEtag()

public String getEtag()

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

string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

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

string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for etag.

getEventFilters(int index)

public EventFilter getEventFilters(int index)

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.

repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
EventFilter

getEventFiltersBuilder(int index)

public EventFilter.Builder getEventFiltersBuilder(int index)

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.

repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
EventFilter.Builder

getEventFiltersBuilderList()

public List<EventFilter.Builder> getEventFiltersBuilderList()

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.

repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getEventFiltersCount()

public int getEventFiltersCount()

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.

repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getEventFiltersList()

public List<EventFilter> getEventFiltersList()

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.

repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<EventFilter>

getEventFiltersOrBuilder(int index)

public EventFilterOrBuilder getEventFiltersOrBuilder(int index)

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.

repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
EventFilterOrBuilder

getEventFiltersOrBuilderList()

public List<? extends EventFilterOrBuilder> getEventFiltersOrBuilderList()

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.

repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.eventarc.v1.EventFilterOrBuilder>

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. User labels attached to the triggers that can be used to group resources.

map<string, string> labels = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. User labels attached to the triggers that can be used to group resources.

map<string, string> labels = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. User labels attached to the triggers that can be used to group resources.

map<string, string> labels = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. User labels attached to the triggers that can be used to group resources.

map<string, string> labels = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getMutableConditions() (deprecated)

public Map<String,StateCondition> getMutableConditions()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,StateCondition>

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

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

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getServiceAccount()

public String getServiceAccount()

Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger.

The principal who calls this API must have the iam.serviceAccounts.actAs permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common for more information.

For Cloud Run destinations, this service account is used to generate identity tokens when invoking the service. See https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account for information on how to invoke authenticated Cloud Run services. To create Audit Log triggers, the service account should also have the roles/eventarc.eventReceiver IAM role.

string service_account = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The serviceAccount.

getServiceAccountBytes()

public ByteString getServiceAccountBytes()

Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger.

The principal who calls this API must have the iam.serviceAccounts.actAs permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common for more information.

For Cloud Run destinations, this service account is used to generate identity tokens when invoking the service. See https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account for information on how to invoke authenticated Cloud Run services. To create Audit Log triggers, the service account should also have the roles/eventarc.eventReceiver IAM role.

string service_account = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for serviceAccount.

getTransport()

public Transport getTransport()

Optional. To deliver messages, Eventarc might use other GCP products as a transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.

.google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Transport

The transport.

getTransportBuilder()

public Transport.Builder getTransportBuilder()

Optional. To deliver messages, Eventarc might use other GCP products as a transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.

.google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Transport.Builder

getTransportOrBuilder()

public TransportOrBuilder getTransportOrBuilder()

Optional. To deliver messages, Eventarc might use other GCP products as a transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.

.google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TransportOrBuilder

getUid()

public String getUid()

Output only. Server-assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. Server-assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The creation time.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasDestination()

public boolean hasDestination()

Required. Destination specifies where the events should be sent to.

.google.cloud.eventarc.v1.Destination destination = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the destination field is set.

hasTransport()

public boolean hasTransport()

Optional. To deliver messages, Eventarc might use other GCP products as a transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.

.google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the transport field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Trigger.Builder mergeCreateTime(Timestamp value)

Output only. The creation time.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Trigger.Builder

mergeDestination(Destination value)

public Trigger.Builder mergeDestination(Destination value)

Required. Destination specifies where the events should be sent to.

.google.cloud.eventarc.v1.Destination destination = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Destination
Returns
Type Description
Trigger.Builder

mergeFrom(Trigger other)

public Trigger.Builder mergeFrom(Trigger other)
Parameter
Name Description
other Trigger
Returns
Type Description
Trigger.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Trigger.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Trigger.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Trigger.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Trigger.Builder
Overrides

mergeTransport(Transport value)

public Trigger.Builder mergeTransport(Transport value)

Optional. To deliver messages, Eventarc might use other GCP products as a transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.

.google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Transport
Returns
Type Description
Trigger.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Trigger.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Trigger.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Trigger.Builder mergeUpdateTime(Timestamp value)

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Trigger.Builder

putAllConditions(Map<String,StateCondition> values)

public Trigger.Builder putAllConditions(Map<String,StateCondition> values)

Output only. The reason(s) why a trigger is in FAILED state.

map<string, .google.cloud.eventarc.v1.StateCondition> conditions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Map<String,StateCondition>
Returns
Type Description
Trigger.Builder

putAllLabels(Map<String,String> values)

public Trigger.Builder putAllLabels(Map<String,String> values)

Optional. User labels attached to the triggers that can be used to group resources.

map<string, string> labels = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Trigger.Builder

putConditions(String key, StateCondition value)

public Trigger.Builder putConditions(String key, StateCondition value)

Output only. The reason(s) why a trigger is in FAILED state.

map<string, .google.cloud.eventarc.v1.StateCondition> conditions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
value StateCondition
Returns
Type Description
Trigger.Builder

putConditionsBuilderIfAbsent(String key)

public StateCondition.Builder putConditionsBuilderIfAbsent(String key)

Output only. The reason(s) why a trigger is in FAILED state.

map<string, .google.cloud.eventarc.v1.StateCondition> conditions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
StateCondition.Builder

putLabels(String key, String value)

public Trigger.Builder putLabels(String key, String value)

Optional. User labels attached to the triggers that can be used to group resources.

map<string, string> labels = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
Trigger.Builder

removeConditions(String key)

public Trigger.Builder removeConditions(String key)

Output only. The reason(s) why a trigger is in FAILED state.

map<string, .google.cloud.eventarc.v1.StateCondition> conditions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
Trigger.Builder

removeEventFilters(int index)

public Trigger.Builder removeEventFilters(int index)

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.

repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Trigger.Builder

removeLabels(String key)

public Trigger.Builder removeLabels(String key)

Optional. User labels attached to the triggers that can be used to group resources.

map<string, string> labels = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
Trigger.Builder

setChannel(String value)

public Trigger.Builder setChannel(String value)

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 = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The channel to set.

Returns
Type Description
Trigger.Builder

This builder for chaining.

setChannelBytes(ByteString value)

public Trigger.Builder setChannelBytes(ByteString value)

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 = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for channel to set.

Returns
Type Description
Trigger.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public Trigger.Builder setCreateTime(Timestamp value)

Output only. The creation time.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Trigger.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Trigger.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The creation time.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Trigger.Builder

setDestination(Destination value)

public Trigger.Builder setDestination(Destination value)

Required. Destination specifies where the events should be sent to.

.google.cloud.eventarc.v1.Destination destination = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Destination
Returns
Type Description
Trigger.Builder

setDestination(Destination.Builder builderForValue)

public Trigger.Builder setDestination(Destination.Builder builderForValue)

Required. Destination specifies where the events should be sent to.

.google.cloud.eventarc.v1.Destination destination = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Destination.Builder
Returns
Type Description
Trigger.Builder

setEtag(String value)

public Trigger.Builder setEtag(String value)

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

string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
Trigger.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public Trigger.Builder setEtagBytes(ByteString value)

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

string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
Trigger.Builder

This builder for chaining.

setEventFilters(int index, EventFilter value)

public Trigger.Builder setEventFilters(int index, EventFilter value)

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.

repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value EventFilter
Returns
Type Description
Trigger.Builder

setEventFilters(int index, EventFilter.Builder builderForValue)

public Trigger.Builder setEventFilters(int index, EventFilter.Builder builderForValue)

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.

repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue EventFilter.Builder
Returns
Type Description
Trigger.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Trigger.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Trigger.Builder
Overrides

setName(String value)

public Trigger.Builder setName(String value)

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

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Trigger.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Trigger.Builder setNameBytes(ByteString value)

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

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Trigger.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Trigger.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Trigger.Builder
Overrides

setServiceAccount(String value)

public Trigger.Builder setServiceAccount(String value)

Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger.

The principal who calls this API must have the iam.serviceAccounts.actAs permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common for more information.

For Cloud Run destinations, this service account is used to generate identity tokens when invoking the service. See https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account for information on how to invoke authenticated Cloud Run services. To create Audit Log triggers, the service account should also have the roles/eventarc.eventReceiver IAM role.

string service_account = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The serviceAccount to set.

Returns
Type Description
Trigger.Builder

This builder for chaining.

setServiceAccountBytes(ByteString value)

public Trigger.Builder setServiceAccountBytes(ByteString value)

Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger.

The principal who calls this API must have the iam.serviceAccounts.actAs permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common for more information.

For Cloud Run destinations, this service account is used to generate identity tokens when invoking the service. See https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account for information on how to invoke authenticated Cloud Run services. To create Audit Log triggers, the service account should also have the roles/eventarc.eventReceiver IAM role.

string service_account = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for serviceAccount to set.

Returns
Type Description
Trigger.Builder

This builder for chaining.

setTransport(Transport value)

public Trigger.Builder setTransport(Transport value)

Optional. To deliver messages, Eventarc might use other GCP products as a transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.

.google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Transport
Returns
Type Description
Trigger.Builder

setTransport(Transport.Builder builderForValue)

public Trigger.Builder setTransport(Transport.Builder builderForValue)

Optional. To deliver messages, Eventarc might use other GCP products as a transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.

.google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Transport.Builder
Returns
Type Description
Trigger.Builder

setUid(String value)

public Trigger.Builder setUid(String value)

Output only. Server-assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The uid to set.

Returns
Type Description
Trigger.Builder

This builder for chaining.

setUidBytes(ByteString value)

public Trigger.Builder setUidBytes(ByteString value)

Output only. Server-assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for uid to set.

Returns
Type Description
Trigger.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Trigger.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Trigger.Builder
Overrides

setUpdateTime(Timestamp value)

public Trigger.Builder setUpdateTime(Timestamp value)

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Trigger.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Trigger.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The last-modified time.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Trigger.Builder