Class Trigger.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Trigger.Builder>
com.google.cloud.eventarc.v1.Trigger.Builder
All Implemented Interfaces:
TriggerOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Trigger

public static final class Trigger.Builder extends com.google.protobuf.GeneratedMessage.Builder<Trigger.Builder> implements TriggerOrBuilder
 A representation of the trigger resource.
 
Protobuf type google.cloud.eventarc.v1.Trigger
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Trigger.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Trigger.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public Trigger.Builder mergeFrom(Trigger other)
    • isInitialized

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

      public Trigger.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      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 `iam.serviceAccounts.actAs` permission must be granted on the service
       account to allow a principal to impersonate the service account. For more
       information, see the
       [Roles and permissions](/eventarc/docs/all-roles-permissions) page specific
       to the trigger destination.
       
      string service_account = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      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 `iam.serviceAccounts.actAs` permission must be granted on the service
       account to allow a principal to impersonate the service account. For more
       information, see the
       [Roles and permissions](/eventarc/docs/all-roles-permissions) page specific
       to the trigger destination.
       
      string service_account = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      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 `iam.serviceAccounts.actAs` permission must be granted on the service
       account to allow a principal to impersonate the service account. For more
       information, see the
       [Roles and permissions](/eventarc/docs/all-roles-permissions) page specific
       to the trigger destination.
       
      string service_account = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The serviceAccount to set.
      Returns:
      This builder for chaining.
    • clearServiceAccount

      public Trigger.Builder clearServiceAccount()
       Optional. The IAM service account email associated with the trigger. The
       service account represents the identity of the trigger.
      
       The `iam.serviceAccounts.actAs` permission must be granted on the service
       account to allow a principal to impersonate the service account. For more
       information, see the
       [Roles and permissions](/eventarc/docs/all-roles-permissions) page specific
       to the trigger destination.
       
      string service_account = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setServiceAccountBytes

      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 `iam.serviceAccounts.actAs` permission must be granted on the service
       account to allow a principal to impersonate the service account. For more
       information, see the
       [Roles and permissions](/eventarc/docs/all-roles-permissions) page specific
       to the trigger destination.
       
      string service_account = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for serviceAccount to set.
      Returns:
      This builder for chaining.
    • hasDestination

      public boolean hasDestination()
       Required. Destination specifies where the events should be sent to.
       
      .google.cloud.eventarc.v1.Destination destination = 10 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      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 Google Cloud
       products as a transport intermediary. This field contains a reference to
       that transport intermediary. This information can be used for debugging
       purposes.
       
      .google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasTransport in interface TriggerOrBuilder
      Returns:
      Whether the transport field is set.
    • getTransport

      public Transport getTransport()
       Optional. To deliver messages, Eventarc might use other Google Cloud
       products as a transport intermediary. This field contains a reference to
       that transport intermediary. This information can be used for debugging
       purposes.
       
      .google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTransport in interface TriggerOrBuilder
      Returns:
      The transport.
    • setTransport

      public Trigger.Builder setTransport(Transport value)
       Optional. To deliver messages, Eventarc might use other Google Cloud
       products as a transport intermediary. This field contains a reference to
       that transport intermediary. This information can be used for debugging
       purposes.
       
      .google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL];
    • setTransport

      public Trigger.Builder setTransport(Transport.Builder builderForValue)
       Optional. To deliver messages, Eventarc might use other Google Cloud
       products as a transport intermediary. This field contains a reference to
       that transport intermediary. This information can be used for debugging
       purposes.
       
      .google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL];
    • mergeTransport

      public Trigger.Builder mergeTransport(Transport value)
       Optional. To deliver messages, Eventarc might use other Google Cloud
       products as a transport intermediary. This field contains a reference to
       that transport intermediary. This information can be used for debugging
       purposes.
       
      .google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL];
    • clearTransport

      public Trigger.Builder clearTransport()
       Optional. To deliver messages, Eventarc might use other Google Cloud
       products as a transport intermediary. This field contains a reference to
       that transport intermediary. This information can be used for debugging
       purposes.
       
      .google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL];
    • getTransportBuilder

      public Transport.Builder getTransportBuilder()
       Optional. To deliver messages, Eventarc might use other Google Cloud
       products as a transport intermediary. This field contains a reference to
       that transport intermediary. This information can be used for debugging
       purposes.
       
      .google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL];
    • getTransportOrBuilder

      public TransportOrBuilder getTransportOrBuilder()
       Optional. To deliver messages, Eventarc might use other Google Cloud
       products as a transport intermediary. This field contains a reference to
       that transport intermediary. This information can be used for debugging
       purposes.
       
      .google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      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
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels 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
    • clearLabels

      public Trigger.Builder clearLabels()
    • removeLabels

      public Trigger.Builder removeLabels(String key)
       Optional. User labels attached to the triggers that can be used to group
       resources.
       
      map<string, string> labels = 12 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public Trigger.Builder putLabels(String key, String value)
       Optional. User labels attached to the triggers that can be used to group
       resources.
       
      map<string, string> labels = 12 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public Trigger.Builder putAllLabels(Map<String,String> values)
       Optional. User labels attached to the triggers that can be used to group
       resources.
       
      map<string, string> labels = 12 [(.google.api.field_behavior) = OPTIONAL];
    • getChannel

      public String getChannel()
       Optional. The name of the channel associated with the trigger in
       `projects/{project}/locations/{location}/channels/{channel}` format.
       You must provide a channel to receive events from Eventarc SaaS partners.
       
      string channel = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      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
    • getConditions

      @Deprecated public Map<String,StateCondition> getConditions()
      Deprecated.
      Use getConditionsMap() instead.
      Specified by:
      getConditions 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
    • clearConditions

      public Trigger.Builder clearConditions()
    • removeConditions

      public Trigger.Builder removeConditions(String key)
       Output only. The reason(s) why a trigger is in FAILED state.
       
      map<string, .google.cloud.eventarc.v1.StateCondition> conditions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getMutableConditions

      @Deprecated public Map<String,StateCondition> getMutableConditions()
      Deprecated.
      Use alternate mutation accessors instead.
    • putConditions

      public Trigger.Builder putConditions(String key, StateCondition value)
       Output only. The reason(s) why a trigger is in FAILED state.
       
      map<string, .google.cloud.eventarc.v1.StateCondition> conditions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • putAllConditions

      public Trigger.Builder putAllConditions(Map<String,StateCondition> values)
       Output only. The reason(s) why a trigger is in FAILED state.
       
      map<string, .google.cloud.eventarc.v1.StateCondition> conditions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • putConditionsBuilderIfAbsent

      public StateCondition.Builder putConditionsBuilderIfAbsent(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];
    • getEventDataContentType

      public String getEventDataContentType()
       Optional. EventDataContentType specifies the type of payload in MIME
       format that is expected from the CloudEvent data field. This is set to
       `application/json` if the value is not defined.
       
      string event_data_content_type = 16 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEventDataContentType in interface TriggerOrBuilder
      Returns:
      The eventDataContentType.
    • getEventDataContentTypeBytes

      public com.google.protobuf.ByteString getEventDataContentTypeBytes()
       Optional. EventDataContentType specifies the type of payload in MIME
       format that is expected from the CloudEvent data field. This is set to
       `application/json` if the value is not defined.
       
      string event_data_content_type = 16 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEventDataContentTypeBytes in interface TriggerOrBuilder
      Returns:
      The bytes for eventDataContentType.
    • setEventDataContentType

      public Trigger.Builder setEventDataContentType(String value)
       Optional. EventDataContentType specifies the type of payload in MIME
       format that is expected from the CloudEvent data field. This is set to
       `application/json` if the value is not defined.
       
      string event_data_content_type = 16 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The eventDataContentType to set.
      Returns:
      This builder for chaining.
    • clearEventDataContentType

      public Trigger.Builder clearEventDataContentType()
       Optional. EventDataContentType specifies the type of payload in MIME
       format that is expected from the CloudEvent data field. This is set to
       `application/json` if the value is not defined.
       
      string event_data_content_type = 16 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setEventDataContentTypeBytes

      public Trigger.Builder setEventDataContentTypeBytes(com.google.protobuf.ByteString value)
       Optional. EventDataContentType specifies the type of payload in MIME
       format that is expected from the CloudEvent data field. This is set to
       `application/json` if the value is not defined.
       
      string event_data_content_type = 16 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for eventDataContentType to set.
      Returns:
      This builder for chaining.
    • getSatisfiesPzs

      public boolean getSatisfiesPzs()
       Output only. Whether or not this Trigger satisfies the requirements of
       physical zone separation
       
      bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSatisfiesPzs in interface TriggerOrBuilder
      Returns:
      The satisfiesPzs.
    • setSatisfiesPzs

      public Trigger.Builder setSatisfiesPzs(boolean value)
       Output only. Whether or not this Trigger satisfies the requirements of
       physical zone separation
       
      bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The satisfiesPzs to set.
      Returns:
      This builder for chaining.
    • clearSatisfiesPzs

      public Trigger.Builder clearSatisfiesPzs()
       Output only. Whether or not this Trigger satisfies the requirements of
       physical zone separation
       
      bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasRetryPolicy

      public boolean hasRetryPolicy()
       Optional. The retry policy to use in the Trigger.
      
       If unset, event delivery will be retried for up to 24 hours by default:
       https://cloud.google.com/eventarc/docs/retry-events
       
      .google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRetryPolicy in interface TriggerOrBuilder
      Returns:
      Whether the retryPolicy field is set.
    • getRetryPolicy

      public Trigger.RetryPolicy getRetryPolicy()
       Optional. The retry policy to use in the Trigger.
      
       If unset, event delivery will be retried for up to 24 hours by default:
       https://cloud.google.com/eventarc/docs/retry-events
       
      .google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRetryPolicy in interface TriggerOrBuilder
      Returns:
      The retryPolicy.
    • setRetryPolicy

      public Trigger.Builder setRetryPolicy(Trigger.RetryPolicy value)
       Optional. The retry policy to use in the Trigger.
      
       If unset, event delivery will be retried for up to 24 hours by default:
       https://cloud.google.com/eventarc/docs/retry-events
       
      .google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL];
    • setRetryPolicy

      public Trigger.Builder setRetryPolicy(Trigger.RetryPolicy.Builder builderForValue)
       Optional. The retry policy to use in the Trigger.
      
       If unset, event delivery will be retried for up to 24 hours by default:
       https://cloud.google.com/eventarc/docs/retry-events
       
      .google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL];
    • mergeRetryPolicy

      public Trigger.Builder mergeRetryPolicy(Trigger.RetryPolicy value)
       Optional. The retry policy to use in the Trigger.
      
       If unset, event delivery will be retried for up to 24 hours by default:
       https://cloud.google.com/eventarc/docs/retry-events
       
      .google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL];
    • clearRetryPolicy

      public Trigger.Builder clearRetryPolicy()
       Optional. The retry policy to use in the Trigger.
      
       If unset, event delivery will be retried for up to 24 hours by default:
       https://cloud.google.com/eventarc/docs/retry-events
       
      .google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL];
    • getRetryPolicyBuilder

      public Trigger.RetryPolicy.Builder getRetryPolicyBuilder()
       Optional. The retry policy to use in the Trigger.
      
       If unset, event delivery will be retried for up to 24 hours by default:
       https://cloud.google.com/eventarc/docs/retry-events
       
      .google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL];
    • getRetryPolicyOrBuilder

      public Trigger.RetryPolicyOrBuilder getRetryPolicyOrBuilder()
       Optional. The retry policy to use in the Trigger.
      
       If unset, event delivery will be retried for up to 24 hours by default:
       https://cloud.google.com/eventarc/docs/retry-events
       
      .google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRetryPolicyOrBuilder in interface TriggerOrBuilder
    • 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.