Class 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 type google.cloud.eventarc.v1.Trigger
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Trigger.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Trigger.Builder>
      • internalGetFieldAccessorTable

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

        public Trigger.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<Trigger.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<Trigger.Builder>
      • getDefaultInstanceForType

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

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

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

        public Trigger.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<Trigger.Builder>
      • setField

        public Trigger.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<Trigger.Builder>
      • clearField

        public Trigger.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<Trigger.Builder>
      • clearOneof

        public Trigger.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<Trigger.Builder>
      • setRepeatedField

        public Trigger.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<Trigger.Builder>
      • addRepeatedField

        public Trigger.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<Trigger.Builder>
      • mergeFrom

        public Trigger.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<Trigger.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        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<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:
        getName in interface TriggerOrBuilder
        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:
        getNameBytes in interface TriggerOrBuilder
        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:
        getUid in interface TriggerOrBuilder
        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:
        getUidBytes in interface TriggerOrBuilder
        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:
        hasCreateTime in interface TriggerOrBuilder
        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:
        getCreateTime in interface TriggerOrBuilder
        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:
        getCreateTimeOrBuilder in interface TriggerOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The last-modified time.
         
        .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface TriggerOrBuilder
        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:
        getUpdateTime in interface TriggerOrBuilder
        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:
        getUpdateTimeOrBuilder in interface TriggerOrBuilder
      • 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:
        getEventFiltersList in interface TriggerOrBuilder
      • 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:
        getEventFiltersCount in interface TriggerOrBuilder
      • 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:
        getEventFilters in interface TriggerOrBuilder
      • 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:
        getEventFiltersOrBuilder in interface TriggerOrBuilder
      • 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:
        getEventFiltersOrBuilderList in interface TriggerOrBuilder
      • 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:
        getServiceAccount in interface TriggerOrBuilder
        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:
        getServiceAccountBytes in interface TriggerOrBuilder
        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:
        hasDestination in interface TriggerOrBuilder
        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:
        getDestination in interface TriggerOrBuilder
        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:
        getDestinationOrBuilder in interface TriggerOrBuilder
      • 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:
        hasTransport in interface TriggerOrBuilder
        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:
        getTransport in interface TriggerOrBuilder
        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:
        getTransportOrBuilder in interface TriggerOrBuilder
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: TriggerOrBuilder
         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:
        getLabelsCount in interface TriggerOrBuilder
      • 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:
        containsLabels in interface TriggerOrBuilder
      • 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:
        getLabelsMap in interface TriggerOrBuilder
      • 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:
        getLabelsOrDefault in interface TriggerOrBuilder
      • 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:
        getLabelsOrThrow in interface TriggerOrBuilder
      • 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:
        getChannel in interface TriggerOrBuilder
        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:
        getChannelBytes in interface TriggerOrBuilder
        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: TriggerOrBuilder
         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:
        getConditionsCount in interface TriggerOrBuilder
      • 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:
        containsConditions in interface TriggerOrBuilder
      • 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:
        getConditionsMap in interface TriggerOrBuilder
      • 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:
        getConditionsOrDefault in interface TriggerOrBuilder
      • 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:
        getConditionsOrThrow in interface TriggerOrBuilder
      • 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];
      • 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:
        getEtag in interface TriggerOrBuilder
        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:
        getEtagBytes in interface TriggerOrBuilder
        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:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Trigger.Builder>
      • mergeUnknownFields

        public final Trigger.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<Trigger.Builder>