Class Trigger.Builder (1.28.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.eventarc.v1.EventFilter>
Returns
TypeDescription
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
NameDescription
valueEventFilter
Returns
TypeDescription
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
NameDescription
builderForValueEventFilter.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueEventFilter
Returns
TypeDescription
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
NameDescription
indexint
builderForValueEventFilter.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
EventFilter.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Trigger.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Trigger.Builder
Overrides

build()

public Trigger build()
Returns
TypeDescription
Trigger

buildPartial()

public Trigger buildPartial()
Returns
TypeDescription
Trigger

clear()

public Trigger.Builder clear()
Returns
TypeDescription
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
TypeDescription
Trigger.Builder

This builder for chaining.

clearConditions()

public Trigger.Builder clearConditions()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Trigger.Builder

clearField(Descriptors.FieldDescriptor field)

public Trigger.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Trigger.Builder
Overrides

clearLabels()

public Trigger.Builder clearLabels()
Returns
TypeDescription
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
TypeDescription
Trigger.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Trigger.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Trigger.Builder

clone()

public Trigger.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for channel.

getConditions()

public Map<String,StateCondition> getConditions()

Use #getConditionsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueStateCondition
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
StateCondition

getCreateTime()

public Timestamp getCreateTime()

Output only. The creation time.

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

Returns
TypeDescription
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
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation time.

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

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Trigger getDefaultInstanceForType()
Returns
TypeDescription
Trigger

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.eventarc.v1.EventFilterOrBuilder>

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

getMutableConditions()

public Map<String,StateCondition> getMutableConditions()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,StateCondition>

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last-modified time.

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

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The creation time.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueDestination
Returns
TypeDescription
Trigger.Builder

mergeFrom(Trigger other)

public Trigger.Builder mergeFrom(Trigger other)
Parameter
NameDescription
otherTrigger
Returns
TypeDescription
Trigger.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Trigger.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Trigger.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Trigger.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTransport
Returns
TypeDescription
Trigger.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Trigger.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valuesMap<String,StateCondition>
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueStateCondition
Returns
TypeDescription
Trigger.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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueString

The channel to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for channel to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueDestination
Returns
TypeDescription
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
NameDescription
builderForValueDestination.Builder
Returns
TypeDescription
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
NameDescription
valueString

The etag to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
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
NameDescription
indexint
valueEventFilter
Returns
TypeDescription
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
NameDescription
indexint
builderForValueEventFilter.Builder
Returns
TypeDescription
Trigger.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Trigger.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The serviceAccount to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for serviceAccount to set.

Returns
TypeDescription
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
NameDescription
valueTransport
Returns
TypeDescription
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
NameDescription
builderForValueTransport.Builder
Returns
TypeDescription
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
NameDescription
valueString

The uid to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
Trigger.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Trigger.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Trigger.Builder