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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Trigger.Builder> implements TriggerOrBuilder
A representation of the trigger resource.
Protobuf typegoogle.cloud.eventarc.v1.Trigger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Trigger.BuilderaddAllEventFilters(Iterable<? extends EventFilter> values)Required.Trigger.BuilderaddEventFilters(int index, EventFilter value)Required.Trigger.BuilderaddEventFilters(int index, EventFilter.Builder builderForValue)Required.Trigger.BuilderaddEventFilters(EventFilter value)Required.Trigger.BuilderaddEventFilters(EventFilter.Builder builderForValue)Required.EventFilter.BuilderaddEventFiltersBuilder()Required.EventFilter.BuilderaddEventFiltersBuilder(int index)Required.Trigger.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Triggerbuild()TriggerbuildPartial()Trigger.Builderclear()Trigger.BuilderclearChannel()Optional.Trigger.BuilderclearConditions()Trigger.BuilderclearCreateTime()Output only.Trigger.BuilderclearDestination()Required.Trigger.BuilderclearEtag()Output only.Trigger.BuilderclearEventFilters()Required.Trigger.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Trigger.BuilderclearLabels()Trigger.BuilderclearName()Required.Trigger.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Trigger.BuilderclearServiceAccount()Optional.Trigger.BuilderclearTransport()Optional.Trigger.BuilderclearUid()Output only.Trigger.BuilderclearUpdateTime()Output only.Trigger.Builderclone()booleancontainsConditions(String key)Output only.booleancontainsLabels(String key)Optional.StringgetChannel()Optional.com.google.protobuf.ByteStringgetChannelBytes()Optional.Map<String,StateCondition>getConditions()Deprecated.intgetConditionsCount()Output only.Map<String,StateCondition>getConditionsMap()Output only.StateConditiongetConditionsOrDefault(String key, StateCondition defaultValue)Output only.StateConditiongetConditionsOrThrow(String key)Output only.com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.Timestamp.BuildergetCreateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.TriggergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()DestinationgetDestination()Required.Destination.BuildergetDestinationBuilder()Required.DestinationOrBuildergetDestinationOrBuilder()Required.StringgetEtag()Output only.com.google.protobuf.ByteStringgetEtagBytes()Output only.EventFiltergetEventFilters(int index)Required.EventFilter.BuildergetEventFiltersBuilder(int index)Required.List<EventFilter.Builder>getEventFiltersBuilderList()Required.intgetEventFiltersCount()Required.List<EventFilter>getEventFiltersList()Required.EventFilterOrBuildergetEventFiltersOrBuilder(int index)Required.List<? extends EventFilterOrBuilder>getEventFiltersOrBuilderList()Required.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Optional.Map<String,String>getLabelsMap()Optional.StringgetLabelsOrDefault(String key, String defaultValue)Optional.StringgetLabelsOrThrow(String key)Optional.Map<String,StateCondition>getMutableConditions()Deprecated.Map<String,String>getMutableLabels()Deprecated.StringgetName()Required.com.google.protobuf.ByteStringgetNameBytes()Required.StringgetServiceAccount()Optional.com.google.protobuf.ByteStringgetServiceAccountBytes()Optional.TransportgetTransport()Optional.Transport.BuildergetTransportBuilder()Optional.TransportOrBuildergetTransportOrBuilder()Optional.StringgetUid()Output only.com.google.protobuf.ByteStringgetUidBytes()Output only.com.google.protobuf.TimestampgetUpdateTime()Output only.com.google.protobuf.Timestamp.BuildergetUpdateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()Output only.booleanhasCreateTime()Output only.booleanhasDestination()Required.booleanhasTransport()Optional.booleanhasUpdateTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()Trigger.BuildermergeCreateTime(com.google.protobuf.Timestamp value)Output only.Trigger.BuildermergeDestination(Destination value)Required.Trigger.BuildermergeFrom(Trigger other)Trigger.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Trigger.BuildermergeFrom(com.google.protobuf.Message other)Trigger.BuildermergeTransport(Transport value)Optional.Trigger.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Trigger.BuildermergeUpdateTime(com.google.protobuf.Timestamp value)Output only.Trigger.BuilderputAllConditions(Map<String,StateCondition> values)Output only.Trigger.BuilderputAllLabels(Map<String,String> values)Optional.Trigger.BuilderputConditions(String key, StateCondition value)Output only.Trigger.BuilderputLabels(String key, String value)Optional.Trigger.BuilderremoveConditions(String key)Output only.Trigger.BuilderremoveEventFilters(int index)Required.Trigger.BuilderremoveLabels(String key)Optional.Trigger.BuildersetChannel(String value)Optional.Trigger.BuildersetChannelBytes(com.google.protobuf.ByteString value)Optional.Trigger.BuildersetCreateTime(com.google.protobuf.Timestamp value)Output only.Trigger.BuildersetCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.Trigger.BuildersetDestination(Destination value)Required.Trigger.BuildersetDestination(Destination.Builder builderForValue)Required.Trigger.BuildersetEtag(String value)Output only.Trigger.BuildersetEtagBytes(com.google.protobuf.ByteString value)Output only.Trigger.BuildersetEventFilters(int index, EventFilter value)Required.Trigger.BuildersetEventFilters(int index, EventFilter.Builder builderForValue)Required.Trigger.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Trigger.BuildersetName(String value)Required.Trigger.BuildersetNameBytes(com.google.protobuf.ByteString value)Required.Trigger.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Trigger.BuildersetServiceAccount(String value)Optional.Trigger.BuildersetServiceAccountBytes(com.google.protobuf.ByteString value)Optional.Trigger.BuildersetTransport(Transport value)Optional.Trigger.BuildersetTransport(Transport.Builder builderForValue)Optional.Trigger.BuildersetUid(String value)Output only.Trigger.BuildersetUidBytes(com.google.protobuf.ByteString value)Output only.Trigger.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Trigger.BuildersetUpdateTime(com.google.protobuf.Timestamp value)Output only.Trigger.BuildersetUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Trigger.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Trigger.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Trigger.Builder>
-
clear
public Trigger.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Trigger.Builder>
-
getDefaultInstanceForType
public Trigger getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Trigger build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Trigger buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Trigger.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Trigger.Builder>
-
setField
public Trigger.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Trigger.Builder>
-
clearField
public Trigger.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Trigger.Builder>
-
clearOneof
public Trigger.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Trigger.Builder>
-
setRepeatedField
public Trigger.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Trigger.Builder>
-
addRepeatedField
public Trigger.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Trigger.Builder>
-
mergeFrom
public Trigger.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Trigger.Builder>
-
mergeFrom
public Trigger.Builder mergeFrom(Trigger other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
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];- 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
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
public Trigger.Builder setNameBytes(com.google.protobuf.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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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];- 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
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];- Parameters:
value- The uid to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setUidBytes
public Trigger.Builder setUidBytes(com.google.protobuf.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];- 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
public Trigger.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The creation time.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public Trigger.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The creation time.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public Trigger.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The creation time.
.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearCreateTime
public Trigger.Builder 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
public Trigger.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setUpdateTime
public Trigger.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeUpdateTime
public Trigger.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearUpdateTime
public Trigger.Builder 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
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];- 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
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];- Specified by:
getEventFiltersin interfaceTriggerOrBuilder
-
setEventFilters
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];
-
setEventFilters
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];
-
addEventFilters
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];
-
addEventFilters
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];
-
addEventFilters
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];
-
addEventFilters
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];
-
addAllEventFilters
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];
-
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];
-
removeEventFilters
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];
-
getEventFiltersBuilder
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];
-
getEventFiltersOrBuilder
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];- Specified by:
getEventFiltersOrBuilderin interfaceTriggerOrBuilder
-
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];- Specified by:
getEventFiltersOrBuilderListin interfaceTriggerOrBuilder
-
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];
-
addEventFiltersBuilder
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];
-
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];
-
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) = { ... }- 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 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) = { ... }- Specified by:
getServiceAccountBytesin interfaceTriggerOrBuilder- Returns:
- The bytes for serviceAccount.
-
setServiceAccount
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) = { ... }- Parameters:
value- The serviceAccount to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setServiceAccountBytes
public Trigger.Builder setServiceAccountBytes(com.google.protobuf.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) = { ... }- 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
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];- Specified by:
getDestinationin interfaceTriggerOrBuilder- Returns:
- The destination.
-
setDestination
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];
-
setDestination
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];
-
mergeDestination
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];
-
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];
-
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];
-
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];- Specified by:
getDestinationOrBuilderin interfaceTriggerOrBuilder
-
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];- Specified by:
hasTransportin interfaceTriggerOrBuilder- Returns:
- Whether the transport field is set.
-
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];- Specified by:
getTransportin interfaceTriggerOrBuilder- Returns:
- The transport.
-
setTransport
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];
-
setTransport
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];
-
mergeTransport
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];
-
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];
-
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];
-
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];- 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
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];- Specified by:
containsLabelsin interfaceTriggerOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceTriggerOrBuilder
-
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];- Specified by:
getLabelsMapin interfaceTriggerOrBuilder
-
getLabelsOrDefault
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];- Specified by:
getLabelsOrDefaultin interfaceTriggerOrBuilder
-
getLabelsOrThrow
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];- Specified by:
getLabelsOrThrowin interfaceTriggerOrBuilder
-
clearLabels
public Trigger.Builder clearLabels()
-
removeLabels
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];
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
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];
-
putAllLabels
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];
-
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];- 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
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];- Parameters:
value- The channel to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setChannelBytes
public Trigger.Builder setChannelBytes(com.google.protobuf.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];- 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
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];- Specified by:
containsConditionsin interfaceTriggerOrBuilder
-
getConditions
@Deprecated public Map<String,StateCondition> getConditions()
Deprecated.UsegetConditionsMap()instead.- Specified by:
getConditionsin interfaceTriggerOrBuilder
-
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];- Specified by:
getConditionsMapin interfaceTriggerOrBuilder
-
getConditionsOrDefault
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];- Specified by:
getConditionsOrDefaultin interfaceTriggerOrBuilder
-
getConditionsOrThrow
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];- Specified by:
getConditionsOrThrowin interfaceTriggerOrBuilder
-
clearConditions
public Trigger.Builder clearConditions()
-
removeConditions
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];
-
getMutableConditions
@Deprecated public Map<String,StateCondition> getMutableConditions()
Deprecated.Use alternate mutation accessors instead.
-
putConditions
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];
-
putAllConditions
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];
-
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];- 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
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];- Parameters:
value- The etag to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setEtagBytes
public Trigger.Builder setEtagBytes(com.google.protobuf.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];- Parameters:
value- The bytes for etag to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Trigger.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Trigger.Builder>
-
mergeUnknownFields
public final Trigger.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Trigger.Builder>
-
-