Package com.google.cloud.eventarc.v1
Class Trigger.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Trigger.Builder>
com.google.cloud.eventarc.v1.Trigger.Builder
- All Implemented Interfaces:
TriggerOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Trigger
public static final class Trigger.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Trigger.Builder>
implements TriggerOrBuilder
A representation of the trigger resource.Protobuf type
google.cloud.eventarc.v1.Trigger-
Method Summary
Modifier and TypeMethodDescriptionaddAllEventFilters(Iterable<? extends EventFilter> values) Required.addEventFilters(int index, EventFilter value) Required.addEventFilters(int index, EventFilter.Builder builderForValue) Required.addEventFilters(EventFilter value) Required.addEventFilters(EventFilter.Builder builderForValue) Required.Required.addEventFiltersBuilder(int index) Required.build()clear()Optional.Output only.Required.Output only.Optional.Required.Required.Optional.Output only.Optional.Optional.clearUid()Output only.Output only.booleancontainsConditions(String key) Output only.booleancontainsLabels(String key) Optional.Optional.com.google.protobuf.ByteStringOptional.Deprecated.intOutput only.Output only.getConditionsOrDefault(String key, StateCondition defaultValue) Output only.Output only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.Required.Required.getEtag()Output only.com.google.protobuf.ByteStringOutput only.Optional.com.google.protobuf.ByteStringOptional.getEventFilters(int index) Required.getEventFiltersBuilder(int index) Required.Required.intRequired.Required.getEventFiltersOrBuilder(int index) Required.List<? extends EventFilterOrBuilder>Required.Deprecated.intOptional.Optional.getLabelsOrDefault(String key, String defaultValue) Optional.getLabelsOrThrow(String key) Optional.Deprecated.Deprecated.getName()Required.com.google.protobuf.ByteStringRequired.Optional.Optional.Optional.booleanOutput only.Optional.com.google.protobuf.ByteStringOptional.Optional.Optional.Optional.getUid()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanRequired.booleanOptional.booleanOptional.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeDestination(Destination value) Required.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.mergeTransport(Transport value) Optional.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.putAllConditions(Map<String, StateCondition> values) Output only.putAllLabels(Map<String, String> values) Optional.putConditions(String key, StateCondition value) Output only.Output only.Optional.removeConditions(String key) Output only.removeEventFilters(int index) Required.removeLabels(String key) Optional.setChannel(String value) Optional.setChannelBytes(com.google.protobuf.ByteString value) Optional.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDestination(Destination value) Required.setDestination(Destination.Builder builderForValue) Required.Output only.setEtagBytes(com.google.protobuf.ByteString value) Output only.setEventDataContentType(String value) Optional.setEventDataContentTypeBytes(com.google.protobuf.ByteString value) Optional.setEventFilters(int index, EventFilter value) Required.setEventFilters(int index, EventFilter.Builder builderForValue) Required.Required.setNameBytes(com.google.protobuf.ByteString value) Required.Optional.setRetryPolicy(Trigger.RetryPolicy.Builder builderForValue) Optional.setSatisfiesPzs(boolean value) Output only.setServiceAccount(String value) Optional.setServiceAccountBytes(com.google.protobuf.ByteString value) Optional.setTransport(Transport value) Optional.setTransport(Transport.Builder builderForValue) Optional.Output only.setUidBytes(com.google.protobuf.ByteString value) Output only.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Trigger.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Trigger.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Trigger.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Trigger.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Trigger.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Trigger.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Trigger.Builder>
-
mergeFrom
public Trigger.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Trigger.Builder>- Throws:
IOException
-
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];- Specified by:
getNamein interfaceTriggerOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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];- Specified by:
getNameBytesin interfaceTriggerOrBuilder- Returns:
- The bytes for name.
-
setName
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getUidin interfaceTriggerOrBuilder- Returns:
- The uid.
-
getUidBytes
public com.google.protobuf.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];- Specified by:
getUidBytesin interfaceTriggerOrBuilder- Returns:
- The bytes for uid.
-
setUid
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];- Parameters:
value- The uid to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setUidBytes
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];- Parameters:
value- The bytes for uid to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Output only. The creation time.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceTriggerOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The creation time.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceTriggerOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The creation time.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. The creation time.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. The creation time.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. The creation time.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. The creation time.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The creation time.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceTriggerOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceTriggerOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceTriggerOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceTriggerOrBuilder
-
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];- Specified by:
getEventFiltersListin interfaceTriggerOrBuilder
-
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];- Specified by:
getEventFiltersCountin interfaceTriggerOrBuilder
-
getEventFilters
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];- Specified by:
getEventFiltersin interfaceTriggerOrBuilder
-
setEventFilters
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]; -
setEventFilters
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]; -
addEventFilters
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]; -
addEventFilters
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]; -
addEventFilters
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]; -
addEventFilters
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]; -
addAllEventFilters
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]; -
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]; -
removeEventFilters
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]; -
getEventFiltersBuilder
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]; -
getEventFiltersOrBuilder
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];- Specified by:
getEventFiltersOrBuilderin interfaceTriggerOrBuilder
-
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];- Specified by:
getEventFiltersOrBuilderListin interfaceTriggerOrBuilder
-
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]; -
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]; -
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]; -
getServiceAccount
Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The `iam.serviceAccounts.actAs` permission must be granted on the service account to allow a principal to impersonate the service account. For more information, see the [Roles and permissions](/eventarc/docs/all-roles-permissions) page specific to the trigger destination.
string service_account = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getServiceAccountin interfaceTriggerOrBuilder- Returns:
- The serviceAccount.
-
getServiceAccountBytes
public com.google.protobuf.ByteString getServiceAccountBytes()Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The `iam.serviceAccounts.actAs` permission must be granted on the service account to allow a principal to impersonate the service account. For more information, see the [Roles and permissions](/eventarc/docs/all-roles-permissions) page specific to the trigger destination.
string service_account = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getServiceAccountBytesin interfaceTriggerOrBuilder- Returns:
- The bytes for serviceAccount.
-
setServiceAccount
Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The `iam.serviceAccounts.actAs` permission must be granted on the service account to allow a principal to impersonate the service account. For more information, see the [Roles and permissions](/eventarc/docs/all-roles-permissions) page specific to the trigger destination.
string service_account = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The serviceAccount to set.- Returns:
- This builder for chaining.
-
clearServiceAccount
Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The `iam.serviceAccounts.actAs` permission must be granted on the service account to allow a principal to impersonate the service account. For more information, see the [Roles and permissions](/eventarc/docs/all-roles-permissions) page specific to the trigger destination.
string service_account = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setServiceAccountBytes
Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The `iam.serviceAccounts.actAs` permission must be granted on the service account to allow a principal to impersonate the service account. For more information, see the [Roles and permissions](/eventarc/docs/all-roles-permissions) page specific to the trigger destination.
string service_account = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for serviceAccount to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasDestinationin interfaceTriggerOrBuilder- Returns:
- Whether the destination field is set.
-
getDestination
Required. Destination specifies where the events should be sent to.
.google.cloud.eventarc.v1.Destination destination = 10 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDestinationin interfaceTriggerOrBuilder- Returns:
- The destination.
-
setDestination
Required. Destination specifies where the events should be sent to.
.google.cloud.eventarc.v1.Destination destination = 10 [(.google.api.field_behavior) = REQUIRED]; -
setDestination
Required. Destination specifies where the events should be sent to.
.google.cloud.eventarc.v1.Destination destination = 10 [(.google.api.field_behavior) = REQUIRED]; -
mergeDestination
Required. Destination specifies where the events should be sent to.
.google.cloud.eventarc.v1.Destination destination = 10 [(.google.api.field_behavior) = REQUIRED]; -
clearDestination
Required. Destination specifies where the events should be sent to.
.google.cloud.eventarc.v1.Destination destination = 10 [(.google.api.field_behavior) = REQUIRED]; -
getDestinationBuilder
Required. Destination specifies where the events should be sent to.
.google.cloud.eventarc.v1.Destination destination = 10 [(.google.api.field_behavior) = REQUIRED]; -
getDestinationOrBuilder
Required. Destination specifies where the events should be sent to.
.google.cloud.eventarc.v1.Destination destination = 10 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDestinationOrBuilderin interfaceTriggerOrBuilder
-
hasTransport
public boolean hasTransport()Optional. To deliver messages, Eventarc might use other Google Cloud products as a transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
.google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasTransportin interfaceTriggerOrBuilder- Returns:
- Whether the transport field is set.
-
getTransport
Optional. To deliver messages, Eventarc might use other Google Cloud products as a transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
.google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTransportin interfaceTriggerOrBuilder- Returns:
- The transport.
-
setTransport
Optional. To deliver messages, Eventarc might use other Google Cloud products as a transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
.google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL]; -
setTransport
Optional. To deliver messages, Eventarc might use other Google Cloud products as a transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
.google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL]; -
mergeTransport
Optional. To deliver messages, Eventarc might use other Google Cloud products as a transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
.google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL]; -
clearTransport
Optional. To deliver messages, Eventarc might use other Google Cloud products as a transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
.google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL]; -
getTransportBuilder
Optional. To deliver messages, Eventarc might use other Google Cloud products as a transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
.google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL]; -
getTransportOrBuilder
Optional. To deliver messages, Eventarc might use other Google Cloud products as a transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
.google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTransportOrBuilderin interfaceTriggerOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:TriggerOrBuilderOptional. User labels attached to the triggers that can be used to group resources.
map<string, string> labels = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsCountin interfaceTriggerOrBuilder
-
containsLabels
Optional. User labels attached to the triggers that can be used to group resources.
map<string, string> labels = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsLabelsin interfaceTriggerOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceTriggerOrBuilder
-
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];- Specified by:
getLabelsMapin interfaceTriggerOrBuilder
-
getLabelsOrDefault
Optional. User labels attached to the triggers that can be used to group resources.
map<string, string> labels = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrDefaultin interfaceTriggerOrBuilder
-
getLabelsOrThrow
Optional. User labels attached to the triggers that can be used to group resources.
map<string, string> labels = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrThrowin interfaceTriggerOrBuilder
-
clearLabels
-
removeLabels
Optional. User labels attached to the triggers that can be used to group resources.
map<string, string> labels = 12 [(.google.api.field_behavior) = OPTIONAL]; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Optional. User labels attached to the triggers that can be used to group resources.
map<string, string> labels = 12 [(.google.api.field_behavior) = OPTIONAL]; -
putAllLabels
Optional. User labels attached to the triggers that can be used to group resources.
map<string, string> labels = 12 [(.google.api.field_behavior) = OPTIONAL]; -
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];- Specified by:
getChannelin interfaceTriggerOrBuilder- Returns:
- The channel.
-
getChannelBytes
public com.google.protobuf.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];- Specified by:
getChannelBytesin interfaceTriggerOrBuilder- Returns:
- The bytes for channel.
-
setChannel
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];- Parameters:
value- The channel to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setChannelBytes
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];- Parameters:
value- The bytes for channel to set.- Returns:
- This builder for chaining.
-
getConditionsCount
public int getConditionsCount()Description copied from interface:TriggerOrBuilderOutput 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];- Specified by:
getConditionsCountin interfaceTriggerOrBuilder
-
containsConditions
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];- Specified by:
containsConditionsin interfaceTriggerOrBuilder
-
getConditions
Deprecated.UsegetConditionsMap()instead.- Specified by:
getConditionsin interfaceTriggerOrBuilder
-
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];- Specified by:
getConditionsMapin interfaceTriggerOrBuilder
-
getConditionsOrDefault
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];- Specified by:
getConditionsOrDefaultin interfaceTriggerOrBuilder
-
getConditionsOrThrow
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];- Specified by:
getConditionsOrThrowin interfaceTriggerOrBuilder
-
clearConditions
-
removeConditions
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]; -
getMutableConditions
Deprecated.Use alternate mutation accessors instead. -
putConditions
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]; -
putAllConditions
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]; -
putConditionsBuilderIfAbsent
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]; -
getEventDataContentType
Optional. EventDataContentType specifies the type of payload in MIME format that is expected from the CloudEvent data field. This is set to `application/json` if the value is not defined.
string event_data_content_type = 16 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventDataContentTypein interfaceTriggerOrBuilder- Returns:
- The eventDataContentType.
-
getEventDataContentTypeBytes
public com.google.protobuf.ByteString getEventDataContentTypeBytes()Optional. EventDataContentType specifies the type of payload in MIME format that is expected from the CloudEvent data field. This is set to `application/json` if the value is not defined.
string event_data_content_type = 16 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventDataContentTypeBytesin interfaceTriggerOrBuilder- Returns:
- The bytes for eventDataContentType.
-
setEventDataContentType
Optional. EventDataContentType specifies the type of payload in MIME format that is expected from the CloudEvent data field. This is set to `application/json` if the value is not defined.
string event_data_content_type = 16 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The eventDataContentType to set.- Returns:
- This builder for chaining.
-
clearEventDataContentType
Optional. EventDataContentType specifies the type of payload in MIME format that is expected from the CloudEvent data field. This is set to `application/json` if the value is not defined.
string event_data_content_type = 16 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setEventDataContentTypeBytes
Optional. EventDataContentType specifies the type of payload in MIME format that is expected from the CloudEvent data field. This is set to `application/json` if the value is not defined.
string event_data_content_type = 16 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for eventDataContentType to set.- Returns:
- This builder for chaining.
-
getSatisfiesPzs
public boolean getSatisfiesPzs()Output only. Whether or not this Trigger satisfies the requirements of physical zone separation
bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSatisfiesPzsin interfaceTriggerOrBuilder- Returns:
- The satisfiesPzs.
-
setSatisfiesPzs
Output only. Whether or not this Trigger satisfies the requirements of physical zone separation
bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The satisfiesPzs to set.- Returns:
- This builder for chaining.
-
clearSatisfiesPzs
Output only. Whether or not this Trigger satisfies the requirements of physical zone separation
bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasRetryPolicy
public boolean hasRetryPolicy()Optional. The retry policy to use in the Trigger. If unset, event delivery will be retried for up to 24 hours by default: https://cloud.google.com/eventarc/docs/retry-events
.google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasRetryPolicyin interfaceTriggerOrBuilder- Returns:
- Whether the retryPolicy field is set.
-
getRetryPolicy
Optional. The retry policy to use in the Trigger. If unset, event delivery will be retried for up to 24 hours by default: https://cloud.google.com/eventarc/docs/retry-events
.google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRetryPolicyin interfaceTriggerOrBuilder- Returns:
- The retryPolicy.
-
setRetryPolicy
Optional. The retry policy to use in the Trigger. If unset, event delivery will be retried for up to 24 hours by default: https://cloud.google.com/eventarc/docs/retry-events
.google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL]; -
setRetryPolicy
Optional. The retry policy to use in the Trigger. If unset, event delivery will be retried for up to 24 hours by default: https://cloud.google.com/eventarc/docs/retry-events
.google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL]; -
mergeRetryPolicy
Optional. The retry policy to use in the Trigger. If unset, event delivery will be retried for up to 24 hours by default: https://cloud.google.com/eventarc/docs/retry-events
.google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL]; -
clearRetryPolicy
Optional. The retry policy to use in the Trigger. If unset, event delivery will be retried for up to 24 hours by default: https://cloud.google.com/eventarc/docs/retry-events
.google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL]; -
getRetryPolicyBuilder
Optional. The retry policy to use in the Trigger. If unset, event delivery will be retried for up to 24 hours by default: https://cloud.google.com/eventarc/docs/retry-events
.google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL]; -
getRetryPolicyOrBuilder
Optional. The retry policy to use in the Trigger. If unset, event delivery will be retried for up to 24 hours by default: https://cloud.google.com/eventarc/docs/retry-events
.google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRetryPolicyOrBuilderin interfaceTriggerOrBuilder
-
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];- Specified by:
getEtagin interfaceTriggerOrBuilder- Returns:
- The etag.
-
getEtagBytes
public com.google.protobuf.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];- Specified by:
getEtagBytesin interfaceTriggerOrBuilder- Returns:
- The bytes for etag.
-
setEtag
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];- Parameters:
value- The etag to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setEtagBytes
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];- Parameters:
value- The bytes for etag to set.- Returns:
- This builder for chaining.
-