Package com.google.cloud.functions.v2
Class EventTrigger.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<EventTrigger.Builder>
com.google.cloud.functions.v2.EventTrigger.Builder
- All Implemented Interfaces:
EventTriggerOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- EventTrigger
public static final class EventTrigger.Builder
extends com.google.protobuf.GeneratedMessage.Builder<EventTrigger.Builder>
implements EventTriggerOrBuilder
Describes EventTrigger, used to request events to be sent from another service.Protobuf type
google.cloud.functions.v2.EventTrigger-
Method Summary
Modifier and TypeMethodDescriptionaddAllEventFilters(Iterable<? extends EventFilter> values) Criteria used to filter events.addEventFilters(int index, EventFilter value) Criteria used to filter events.addEventFilters(int index, EventFilter.Builder builderForValue) Criteria used to filter events.addEventFilters(EventFilter value) Criteria used to filter events.addEventFilters(EventFilter.Builder builderForValue) Criteria used to filter events.Criteria used to filter events.addEventFiltersBuilder(int index) Criteria used to filter events.build()clear()Optional.Criteria used to filter events.Required.Optional.Optional.Optional.Optional.Output only.The region that the trigger will be in.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEventFilters(int index) Criteria used to filter events.getEventFiltersBuilder(int index) Criteria used to filter events.Criteria used to filter events.intCriteria used to filter events.Criteria used to filter events.getEventFiltersOrBuilder(int index) Criteria used to filter events.List<? extends EventFilterOrBuilder>Criteria used to filter events.Required.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.Optional.intOptional.Optional.Optional.com.google.protobuf.ByteStringOptional.com.google.protobuf.ByteStringOptional.Output only.com.google.protobuf.ByteStringOutput only.The region that the trigger will be in.com.google.protobuf.ByteStringThe region that the trigger will be in.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(EventTrigger other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeEventFilters(int index) Criteria used to filter events.setChannel(String value) Optional.setChannelBytes(com.google.protobuf.ByteString value) Optional.setEventFilters(int index, EventFilter value) Criteria used to filter events.setEventFilters(int index, EventFilter.Builder builderForValue) Criteria used to filter events.setEventType(String value) Required.setEventTypeBytes(com.google.protobuf.ByteString value) Required.setPubsubTopic(String value) Optional.setPubsubTopicBytes(com.google.protobuf.ByteString value) Optional.Optional.setRetryPolicyValue(int value) Optional.setService(String value) Optional.setServiceAccountEmail(String value) Optional.setServiceAccountEmailBytes(com.google.protobuf.ByteString value) Optional.setServiceBytes(com.google.protobuf.ByteString value) Optional.setTrigger(String value) Output only.setTriggerBytes(com.google.protobuf.ByteString value) Output only.setTriggerRegion(String value) The region that the trigger will be in.setTriggerRegionBytes(com.google.protobuf.ByteString value) The region that the trigger will be in.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<EventTrigger.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<EventTrigger.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<EventTrigger.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<EventTrigger.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<EventTrigger.Builder>
-
mergeFrom
public EventTrigger.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<EventTrigger.Builder>- Throws:
IOException
-
getTrigger
Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getTriggerin interfaceEventTriggerOrBuilder- Returns:
- The trigger.
-
getTriggerBytes
public com.google.protobuf.ByteString getTriggerBytes()Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getTriggerBytesin interfaceEventTriggerOrBuilder- Returns:
- The bytes for trigger.
-
setTrigger
Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The trigger to set.- Returns:
- This builder for chaining.
-
clearTrigger
Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setTriggerBytes
Output only. The resource name of the Eventarc trigger. The format of this field is `projects/{project}/locations/{region}/triggers/{trigger}`.string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for trigger to set.- Returns:
- This builder for chaining.
-
getTriggerRegion
The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
string trigger_region = 2;- Specified by:
getTriggerRegionin interfaceEventTriggerOrBuilder- Returns:
- The triggerRegion.
-
getTriggerRegionBytes
public com.google.protobuf.ByteString getTriggerRegionBytes()The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
string trigger_region = 2;- Specified by:
getTriggerRegionBytesin interfaceEventTriggerOrBuilder- Returns:
- The bytes for triggerRegion.
-
setTriggerRegion
The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
string trigger_region = 2;- Parameters:
value- The triggerRegion to set.- Returns:
- This builder for chaining.
-
clearTriggerRegion
The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
string trigger_region = 2;- Returns:
- This builder for chaining.
-
setTriggerRegionBytes
The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
string trigger_region = 2;- Parameters:
value- The bytes for triggerRegion to set.- Returns:
- This builder for chaining.
-
getEventType
Required. The type of event to observe. For example: `google.cloud.audit.log.v1.written` or `google.cloud.pubsub.topic.v1.messagePublished`.
string event_type = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEventTypein interfaceEventTriggerOrBuilder- Returns:
- The eventType.
-
getEventTypeBytes
public com.google.protobuf.ByteString getEventTypeBytes()Required. The type of event to observe. For example: `google.cloud.audit.log.v1.written` or `google.cloud.pubsub.topic.v1.messagePublished`.
string event_type = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEventTypeBytesin interfaceEventTriggerOrBuilder- Returns:
- The bytes for eventType.
-
setEventType
Required. The type of event to observe. For example: `google.cloud.audit.log.v1.written` or `google.cloud.pubsub.topic.v1.messagePublished`.
string event_type = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The eventType to set.- Returns:
- This builder for chaining.
-
clearEventType
Required. The type of event to observe. For example: `google.cloud.audit.log.v1.written` or `google.cloud.pubsub.topic.v1.messagePublished`.
string event_type = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setEventTypeBytes
Required. The type of event to observe. For example: `google.cloud.audit.log.v1.written` or `google.cloud.pubsub.topic.v1.messagePublished`.
string event_type = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for eventType to set.- Returns:
- This builder for chaining.
-
getEventFiltersList
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4;- Specified by:
getEventFiltersListin interfaceEventTriggerOrBuilder
-
getEventFiltersCount
public int getEventFiltersCount()Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4;- Specified by:
getEventFiltersCountin interfaceEventTriggerOrBuilder
-
getEventFilters
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4;- Specified by:
getEventFiltersin interfaceEventTriggerOrBuilder
-
setEventFilters
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4; -
setEventFilters
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4; -
addEventFilters
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4; -
addEventFilters
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4; -
addEventFilters
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4; -
addEventFilters
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4; -
addAllEventFilters
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4; -
clearEventFilters
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4; -
removeEventFilters
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4; -
getEventFiltersBuilder
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4; -
getEventFiltersOrBuilder
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4;- Specified by:
getEventFiltersOrBuilderin interfaceEventTriggerOrBuilder
-
getEventFiltersOrBuilderList
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4;- Specified by:
getEventFiltersOrBuilderListin interfaceEventTriggerOrBuilder
-
addEventFiltersBuilder
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4; -
addEventFiltersBuilder
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4; -
getEventFiltersBuilderList
Criteria used to filter events.
repeated .google.cloud.functions.v2.EventFilter event_filters = 4; -
getPubsubTopic
Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: `projects/{project}/topics/{topic}`. This is only valid for events of type `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here will not be deleted at function deletion.string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getPubsubTopicin interfaceEventTriggerOrBuilder- Returns:
- The pubsubTopic.
-
getPubsubTopicBytes
public com.google.protobuf.ByteString getPubsubTopicBytes()Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: `projects/{project}/topics/{topic}`. This is only valid for events of type `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here will not be deleted at function deletion.string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getPubsubTopicBytesin interfaceEventTriggerOrBuilder- Returns:
- The bytes for pubsubTopic.
-
setPubsubTopic
Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: `projects/{project}/topics/{topic}`. This is only valid for events of type `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here will not be deleted at function deletion.string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The pubsubTopic to set.- Returns:
- This builder for chaining.
-
clearPubsubTopic
Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: `projects/{project}/topics/{topic}`. This is only valid for events of type `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here will not be deleted at function deletion.string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setPubsubTopicBytes
Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: `projects/{project}/topics/{topic}`. This is only valid for events of type `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here will not be deleted at function deletion.string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for pubsubTopic to set.- Returns:
- This builder for chaining.
-
getServiceAccountEmail
Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}-compute@developer.gserviceaccount.com`.string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getServiceAccountEmailin interfaceEventTriggerOrBuilder- Returns:
- The serviceAccountEmail.
-
getServiceAccountEmailBytes
public com.google.protobuf.ByteString getServiceAccountEmailBytes()Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}-compute@developer.gserviceaccount.com`.string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getServiceAccountEmailBytesin interfaceEventTriggerOrBuilder- Returns:
- The bytes for serviceAccountEmail.
-
setServiceAccountEmail
Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}-compute@developer.gserviceaccount.com`.string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The serviceAccountEmail to set.- Returns:
- This builder for chaining.
-
clearServiceAccountEmail
Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}-compute@developer.gserviceaccount.com`.string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setServiceAccountEmailBytes
Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}-compute@developer.gserviceaccount.com`.string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for serviceAccountEmail to set.- Returns:
- This builder for chaining.
-
getRetryPolicyValue
public int getRetryPolicyValue()Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
.google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRetryPolicyValuein interfaceEventTriggerOrBuilder- Returns:
- The enum numeric value on the wire for retryPolicy.
-
setRetryPolicyValue
Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
.google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for retryPolicy to set.- Returns:
- This builder for chaining.
-
getRetryPolicy
Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
.google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRetryPolicyin interfaceEventTriggerOrBuilder- Returns:
- The retryPolicy.
-
setRetryPolicy
Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
.google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The retryPolicy to set.- Returns:
- This builder for chaining.
-
clearRetryPolicy
Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
.google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getChannel
Optional. The name of the channel associated with the trigger in `projects/{project}/locations/{location}/channels/{channel}` format. You must provide a channel to receive events from Eventarc SaaS partners.string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getChannelin interfaceEventTriggerOrBuilder- 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 = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getChannelBytesin interfaceEventTriggerOrBuilder- 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 = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- 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 = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- 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 = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for channel to set.- Returns:
- This builder for chaining.
-
getService
Optional. The hostname of the service that 1st Gen function should be observed. If no string is provided, the default service implementing the API will be used. For example, `storage.googleapis.com` is the default for all event types in the `google.storage` namespace. The field is only applicable to 1st Gen functions.
string service = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getServicein interfaceEventTriggerOrBuilder- Returns:
- The service.
-
getServiceBytes
public com.google.protobuf.ByteString getServiceBytes()Optional. The hostname of the service that 1st Gen function should be observed. If no string is provided, the default service implementing the API will be used. For example, `storage.googleapis.com` is the default for all event types in the `google.storage` namespace. The field is only applicable to 1st Gen functions.
string service = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getServiceBytesin interfaceEventTriggerOrBuilder- Returns:
- The bytes for service.
-
setService
Optional. The hostname of the service that 1st Gen function should be observed. If no string is provided, the default service implementing the API will be used. For example, `storage.googleapis.com` is the default for all event types in the `google.storage` namespace. The field is only applicable to 1st Gen functions.
string service = 9 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The service to set.- Returns:
- This builder for chaining.
-
clearService
Optional. The hostname of the service that 1st Gen function should be observed. If no string is provided, the default service implementing the API will be used. For example, `storage.googleapis.com` is the default for all event types in the `google.storage` namespace. The field is only applicable to 1st Gen functions.
string service = 9 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setServiceBytes
Optional. The hostname of the service that 1st Gen function should be observed. If no string is provided, the default service implementing the API will be used. For example, `storage.googleapis.com` is the default for all event types in the `google.storage` namespace. The field is only applicable to 1st Gen functions.
string service = 9 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for service to set.- Returns:
- This builder for chaining.
-