Class 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.GeneratedMessageV3.Builder<EventTrigger.Builder>
    implements EventTriggerOrBuilder
     Describes EventTrigger, used to request events to be sent from another
     service.
     
    Protobuf type google.cloud.functions.v2beta.EventTrigger
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>
      • clear

        public EventTrigger.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>
      • getDefaultInstanceForType

        public EventTrigger getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public EventTrigger build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public EventTrigger buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public EventTrigger.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>
      • setField

        public EventTrigger.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>
      • clearField

        public EventTrigger.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>
      • clearOneof

        public EventTrigger.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>
      • setRepeatedField

        public EventTrigger.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     int index,
                                                     Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>
      • addRepeatedField

        public EventTrigger.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>
      • mergeFrom

        public EventTrigger.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EventTrigger.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>
      • mergeFrom

        public EventTrigger.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EventTrigger.Builder>
        Throws:
        IOException
      • getTrigger

        public String 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:
        getTrigger in interface EventTriggerOrBuilder
        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:
        getTriggerBytes in interface EventTriggerOrBuilder
        Returns:
        The bytes for trigger.
      • setTrigger

        public EventTrigger.Builder setTrigger​(String value)
         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

        public EventTrigger.Builder 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

        public EventTrigger.Builder setTriggerBytes​(com.google.protobuf.ByteString value)
         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

        public String 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:
        getTriggerRegion in interface EventTriggerOrBuilder
        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:
        getTriggerRegionBytes in interface EventTriggerOrBuilder
        Returns:
        The bytes for triggerRegion.
      • setTriggerRegion

        public EventTrigger.Builder setTriggerRegion​(String value)
         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

        public EventTrigger.Builder 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

        public EventTrigger.Builder setTriggerRegionBytes​(com.google.protobuf.ByteString value)
         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

        public String 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:
        getEventType in interface EventTriggerOrBuilder
        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:
        getEventTypeBytes in interface EventTriggerOrBuilder
        Returns:
        The bytes for eventType.
      • setEventType

        public EventTrigger.Builder setEventType​(String value)
         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

        public EventTrigger.Builder 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

        public EventTrigger.Builder setEventTypeBytes​(com.google.protobuf.ByteString value)
         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.
      • getEventFiltersCount

        public int getEventFiltersCount()
         Criteria used to filter events.
         
        repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4;
        Specified by:
        getEventFiltersCount in interface EventTriggerOrBuilder
      • getEventFilters

        public EventFilter getEventFilters​(int index)
         Criteria used to filter events.
         
        repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4;
        Specified by:
        getEventFilters in interface EventTriggerOrBuilder
      • setEventFilters

        public EventTrigger.Builder setEventFilters​(int index,
                                                    EventFilter value)
         Criteria used to filter events.
         
        repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4;
      • setEventFilters

        public EventTrigger.Builder setEventFilters​(int index,
                                                    EventFilter.Builder builderForValue)
         Criteria used to filter events.
         
        repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4;
      • addEventFilters

        public EventTrigger.Builder addEventFilters​(EventFilter value)
         Criteria used to filter events.
         
        repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4;
      • addEventFilters

        public EventTrigger.Builder addEventFilters​(int index,
                                                    EventFilter value)
         Criteria used to filter events.
         
        repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4;
      • addEventFilters

        public EventTrigger.Builder addEventFilters​(EventFilter.Builder builderForValue)
         Criteria used to filter events.
         
        repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4;
      • addEventFilters

        public EventTrigger.Builder addEventFilters​(int index,
                                                    EventFilter.Builder builderForValue)
         Criteria used to filter events.
         
        repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4;
      • addAllEventFilters

        public EventTrigger.Builder addAllEventFilters​(Iterable<? extends EventFilter> values)
         Criteria used to filter events.
         
        repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4;
      • clearEventFilters

        public EventTrigger.Builder clearEventFilters()
         Criteria used to filter events.
         
        repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4;
      • removeEventFilters

        public EventTrigger.Builder removeEventFilters​(int index)
         Criteria used to filter events.
         
        repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4;
      • getEventFiltersBuilder

        public EventFilter.Builder getEventFiltersBuilder​(int index)
         Criteria used to filter events.
         
        repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4;
      • addEventFiltersBuilder

        public EventFilter.Builder addEventFiltersBuilder()
         Criteria used to filter events.
         
        repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4;
      • addEventFiltersBuilder

        public EventFilter.Builder addEventFiltersBuilder​(int index)
         Criteria used to filter events.
         
        repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4;
      • getEventFiltersBuilderList

        public List<EventFilter.Builder> getEventFiltersBuilderList()
         Criteria used to filter events.
         
        repeated .google.cloud.functions.v2beta.EventFilter event_filters = 4;
      • getPubsubTopic

        public String 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:
        getPubsubTopic in interface EventTriggerOrBuilder
        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:
        getPubsubTopicBytes in interface EventTriggerOrBuilder
        Returns:
        The bytes for pubsubTopic.
      • setPubsubTopic

        public EventTrigger.Builder setPubsubTopic​(String value)
         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

        public EventTrigger.Builder 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

        public EventTrigger.Builder setPubsubTopicBytes​(com.google.protobuf.ByteString value)
         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

        public String 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:
        getServiceAccountEmail in interface EventTriggerOrBuilder
        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:
        getServiceAccountEmailBytes in interface EventTriggerOrBuilder
        Returns:
        The bytes for serviceAccountEmail.
      • setServiceAccountEmail

        public EventTrigger.Builder setServiceAccountEmail​(String value)
         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

        public EventTrigger.Builder 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

        public EventTrigger.Builder setServiceAccountEmailBytes​(com.google.protobuf.ByteString value)
         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.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRetryPolicyValue in interface EventTriggerOrBuilder
        Returns:
        The enum numeric value on the wire for retryPolicy.
      • setRetryPolicyValue

        public EventTrigger.Builder setRetryPolicyValue​(int value)
         Optional. If unset, then defaults to ignoring failures (i.e. not retrying
         them).
         
        .google.cloud.functions.v2beta.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

        public EventTrigger.RetryPolicy getRetryPolicy()
         Optional. If unset, then defaults to ignoring failures (i.e. not retrying
         them).
         
        .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRetryPolicy in interface EventTriggerOrBuilder
        Returns:
        The retryPolicy.
      • setRetryPolicy

        public EventTrigger.Builder setRetryPolicy​(EventTrigger.RetryPolicy value)
         Optional. If unset, then defaults to ignoring failures (i.e. not retrying
         them).
         
        .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The retryPolicy to set.
        Returns:
        This builder for chaining.
      • clearRetryPolicy

        public EventTrigger.Builder clearRetryPolicy()
         Optional. If unset, then defaults to ignoring failures (i.e. not retrying
         them).
         
        .google.cloud.functions.v2beta.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • 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 = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
        Specified by:
        getChannel in interface EventTriggerOrBuilder
        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:
        getChannelBytes in interface EventTriggerOrBuilder
        Returns:
        The bytes for channel.
      • setChannel

        public EventTrigger.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 = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The channel to set.
        Returns:
        This builder for chaining.
      • clearChannel

        public EventTrigger.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 = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setChannelBytes

        public EventTrigger.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 = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for channel to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final EventTrigger.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>
      • mergeUnknownFields

        public final EventTrigger.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EventTrigger.Builder>