Class GoogleApiSource.Builder

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

public static final class GoogleApiSource.Builder extends com.google.protobuf.GeneratedMessage.Builder<GoogleApiSource.Builder> implements GoogleApiSourceOrBuilder
 A GoogleApiSource represents a subscription of 1P events from a MessageBus.
 
Protobuf type google.cloud.eventarc.v1.GoogleApiSource
  • 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<GoogleApiSource.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

      public GoogleApiSource.Builder mergeFrom(GoogleApiSource other)
    • isInitialized

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

      public GoogleApiSource.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<GoogleApiSource.Builder>
      Throws:
      IOException
    • getWideScopeSubscriptionCase

      public GoogleApiSource.WideScopeSubscriptionCase getWideScopeSubscriptionCase()
      Specified by:
      getWideScopeSubscriptionCase in interface GoogleApiSourceOrBuilder
    • clearWideScopeSubscription

      public GoogleApiSource.Builder clearWideScopeSubscription()
    • getName

      public String getName()
       Identifier. Resource name of the form
       projects/{project}/locations/{location}/googleApiSources/{google_api_source}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface GoogleApiSourceOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Resource name of the form
       projects/{project}/locations/{location}/googleApiSources/{google_api_source}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface GoogleApiSourceOrBuilder
      Returns:
      The bytes for name.
    • setName

      public GoogleApiSource.Builder setName(String value)
       Identifier. Resource name of the form
       projects/{project}/locations/{location}/googleApiSources/{google_api_source}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public GoogleApiSource.Builder clearName()
       Identifier. Resource name of the form
       projects/{project}/locations/{location}/googleApiSources/{google_api_source}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public GoogleApiSource.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. Resource name of the form
       projects/{project}/locations/{location}/googleApiSources/{google_api_source}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      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 channel. 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, (.google.api.field_info) = { ... }
      Specified by:
      getUid in interface GoogleApiSourceOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. Server assigned unique identifier for the channel. 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, (.google.api.field_info) = { ... }
      Specified by:
      getUidBytes in interface GoogleApiSourceOrBuilder
      Returns:
      The bytes for uid.
    • setUid

      public GoogleApiSource.Builder setUid(String value)
       Output only. Server assigned unique identifier for the channel. 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, (.google.api.field_info) = { ... }
      Parameters:
      value - The uid to set.
      Returns:
      This builder for chaining.
    • clearUid

      public GoogleApiSource.Builder clearUid()
       Output only. Server assigned unique identifier for the channel. 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, (.google.api.field_info) = { ... }
      Returns:
      This builder for chaining.
    • setUidBytes

      public GoogleApiSource.Builder setUidBytes(com.google.protobuf.ByteString value)
       Output only. Server assigned unique identifier for the channel. 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, (.google.api.field_info) = { ... }
      Parameters:
      value - The bytes for uid to set.
      Returns:
      This builder for chaining.
    • 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 update and delete requests to
       ensure that the client has an up-to-date value before proceeding.
       
      string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEtag in interface GoogleApiSourceOrBuilder
      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 update and delete requests to
       ensure that the client has an up-to-date value before proceeding.
       
      string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEtagBytes in interface GoogleApiSourceOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      public GoogleApiSource.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 update and delete requests to
       ensure that the client has an up-to-date value before proceeding.
       
      string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

      public GoogleApiSource.Builder clearEtag()
       Output only. This checksum is computed by the server based on the value of
       other fields, and might be sent only on update and delete requests to
       ensure that the client has an up-to-date value before proceeding.
       
      string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setEtagBytes

      public GoogleApiSource.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 update and delete requests to
       ensure that the client has an up-to-date value before proceeding.
       
      string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface GoogleApiSourceOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface GoogleApiSourceOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public GoogleApiSource.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public GoogleApiSource.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public GoogleApiSource.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public GoogleApiSource.Builder clearCreateTime()
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The creation time.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface GoogleApiSourceOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The last-modified time.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface GoogleApiSourceOrBuilder
      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 = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface GoogleApiSourceOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public GoogleApiSource.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The last-modified time.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public GoogleApiSource.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The last-modified time.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public GoogleApiSource.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The last-modified time.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public GoogleApiSource.Builder clearUpdateTime()
       Output only. The last-modified time.
       
      .google.protobuf.Timestamp update_time = 5 [(.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 = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The last-modified time.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface GoogleApiSourceOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: GoogleApiSourceOrBuilder
       Optional. Resource labels.
       
      map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface GoogleApiSourceOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Resource labels.
       
      map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface GoogleApiSourceOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface GoogleApiSourceOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. Resource labels.
       
      map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface GoogleApiSourceOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Resource labels.
       
      map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface GoogleApiSourceOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Resource labels.
       
      map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface GoogleApiSourceOrBuilder
    • clearLabels

      public GoogleApiSource.Builder clearLabels()
    • removeLabels

      public GoogleApiSource.Builder removeLabels(String key)
       Optional. Resource labels.
       
      map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

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

      public GoogleApiSource.Builder putLabels(String key, String value)
       Optional. Resource labels.
       
      map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public GoogleApiSource.Builder putAllLabels(Map<String,String> values)
       Optional. Resource labels.
       
      map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getAnnotationsCount

      public int getAnnotationsCount()
      Description copied from interface: GoogleApiSourceOrBuilder
       Optional. Resource annotations.
       
      map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsCount in interface GoogleApiSourceOrBuilder
    • containsAnnotations

      public boolean containsAnnotations(String key)
       Optional. Resource annotations.
       
      map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsAnnotations in interface GoogleApiSourceOrBuilder
    • getAnnotations

      @Deprecated public Map<String,String> getAnnotations()
      Deprecated.
      Use getAnnotationsMap() instead.
      Specified by:
      getAnnotations in interface GoogleApiSourceOrBuilder
    • getAnnotationsMap

      public Map<String,String> getAnnotationsMap()
       Optional. Resource annotations.
       
      map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsMap in interface GoogleApiSourceOrBuilder
    • getAnnotationsOrDefault

      public String getAnnotationsOrDefault(String key, String defaultValue)
       Optional. Resource annotations.
       
      map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsOrDefault in interface GoogleApiSourceOrBuilder
    • getAnnotationsOrThrow

      public String getAnnotationsOrThrow(String key)
       Optional. Resource annotations.
       
      map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAnnotationsOrThrow in interface GoogleApiSourceOrBuilder
    • clearAnnotations

      public GoogleApiSource.Builder clearAnnotations()
    • removeAnnotations

      public GoogleApiSource.Builder removeAnnotations(String key)
       Optional. Resource annotations.
       
      map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableAnnotations

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

      public GoogleApiSource.Builder putAnnotations(String key, String value)
       Optional. Resource annotations.
       
      map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];
    • putAllAnnotations

      public GoogleApiSource.Builder putAllAnnotations(Map<String,String> values)
       Optional. Resource annotations.
       
      map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getDisplayName

      public String getDisplayName()
       Optional. Resource display name.
       
      string display_name = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayName in interface GoogleApiSourceOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Optional. Resource display name.
       
      string display_name = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayNameBytes in interface GoogleApiSourceOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public GoogleApiSource.Builder setDisplayName(String value)
       Optional. Resource display name.
       
      string display_name = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public GoogleApiSource.Builder clearDisplayName()
       Optional. Resource display name.
       
      string display_name = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public GoogleApiSource.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Optional. Resource display name.
       
      string display_name = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getDestination

      public String getDestination()
       Required. Destination is the message bus that the GoogleApiSource is
       delivering to. It must be point to the full resource name of a MessageBus.
       Format:
       "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)
       
      string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getDestination in interface GoogleApiSourceOrBuilder
      Returns:
      The destination.
    • getDestinationBytes

      public com.google.protobuf.ByteString getDestinationBytes()
       Required. Destination is the message bus that the GoogleApiSource is
       delivering to. It must be point to the full resource name of a MessageBus.
       Format:
       "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)
       
      string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getDestinationBytes in interface GoogleApiSourceOrBuilder
      Returns:
      The bytes for destination.
    • setDestination

      public GoogleApiSource.Builder setDestination(String value)
       Required. Destination is the message bus that the GoogleApiSource is
       delivering to. It must be point to the full resource name of a MessageBus.
       Format:
       "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)
       
      string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The destination to set.
      Returns:
      This builder for chaining.
    • clearDestination

      public GoogleApiSource.Builder clearDestination()
       Required. Destination is the message bus that the GoogleApiSource is
       delivering to. It must be point to the full resource name of a MessageBus.
       Format:
       "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)
       
      string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setDestinationBytes

      public GoogleApiSource.Builder setDestinationBytes(com.google.protobuf.ByteString value)
       Required. Destination is the message bus that the GoogleApiSource is
       delivering to. It must be point to the full resource name of a MessageBus.
       Format:
       "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)
       
      string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for destination to set.
      Returns:
      This builder for chaining.
    • getCryptoKeyName

      public String getCryptoKeyName()
       Optional. Resource name of a KMS crypto key (managed by the user) used to
       encrypt/decrypt their event data.
      
       It must match the pattern
       `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
       
      string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getCryptoKeyName in interface GoogleApiSourceOrBuilder
      Returns:
      The cryptoKeyName.
    • getCryptoKeyNameBytes

      public com.google.protobuf.ByteString getCryptoKeyNameBytes()
       Optional. Resource name of a KMS crypto key (managed by the user) used to
       encrypt/decrypt their event data.
      
       It must match the pattern
       `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
       
      string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getCryptoKeyNameBytes in interface GoogleApiSourceOrBuilder
      Returns:
      The bytes for cryptoKeyName.
    • setCryptoKeyName

      public GoogleApiSource.Builder setCryptoKeyName(String value)
       Optional. Resource name of a KMS crypto key (managed by the user) used to
       encrypt/decrypt their event data.
      
       It must match the pattern
       `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
       
      string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The cryptoKeyName to set.
      Returns:
      This builder for chaining.
    • clearCryptoKeyName

      public GoogleApiSource.Builder clearCryptoKeyName()
       Optional. Resource name of a KMS crypto key (managed by the user) used to
       encrypt/decrypt their event data.
      
       It must match the pattern
       `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
       
      string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setCryptoKeyNameBytes

      public GoogleApiSource.Builder setCryptoKeyNameBytes(com.google.protobuf.ByteString value)
       Optional. Resource name of a KMS crypto key (managed by the user) used to
       encrypt/decrypt their event data.
      
       It must match the pattern
       `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
       
      string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for cryptoKeyName to set.
      Returns:
      This builder for chaining.
    • hasLoggingConfig

      public boolean hasLoggingConfig()
       Optional. Config to control Platform logging for the GoogleApiSource.
       
      .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasLoggingConfig in interface GoogleApiSourceOrBuilder
      Returns:
      Whether the loggingConfig field is set.
    • getLoggingConfig

      public LoggingConfig getLoggingConfig()
       Optional. Config to control Platform logging for the GoogleApiSource.
       
      .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLoggingConfig in interface GoogleApiSourceOrBuilder
      Returns:
      The loggingConfig.
    • setLoggingConfig

      public GoogleApiSource.Builder setLoggingConfig(LoggingConfig value)
       Optional. Config to control Platform logging for the GoogleApiSource.
       
      .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL];
    • setLoggingConfig

      public GoogleApiSource.Builder setLoggingConfig(LoggingConfig.Builder builderForValue)
       Optional. Config to control Platform logging for the GoogleApiSource.
       
      .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL];
    • mergeLoggingConfig

      public GoogleApiSource.Builder mergeLoggingConfig(LoggingConfig value)
       Optional. Config to control Platform logging for the GoogleApiSource.
       
      .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL];
    • clearLoggingConfig

      public GoogleApiSource.Builder clearLoggingConfig()
       Optional. Config to control Platform logging for the GoogleApiSource.
       
      .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL];
    • getLoggingConfigBuilder

      public LoggingConfig.Builder getLoggingConfigBuilder()
       Optional. Config to control Platform logging for the GoogleApiSource.
       
      .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL];
    • getLoggingConfigOrBuilder

      public LoggingConfigOrBuilder getLoggingConfigOrBuilder()
       Optional. Config to control Platform logging for the GoogleApiSource.
       
      .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLoggingConfigOrBuilder in interface GoogleApiSourceOrBuilder
    • hasOrganizationSubscription

      public boolean hasOrganizationSubscription()
       Optional. Config to enable subscribing to events from all projects in the
       GoogleApiSource's org.
       
      .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasOrganizationSubscription in interface GoogleApiSourceOrBuilder
      Returns:
      Whether the organizationSubscription field is set.
    • getOrganizationSubscription

      public GoogleApiSource.OrganizationSubscription getOrganizationSubscription()
       Optional. Config to enable subscribing to events from all projects in the
       GoogleApiSource's org.
       
      .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOrganizationSubscription in interface GoogleApiSourceOrBuilder
      Returns:
      The organizationSubscription.
    • setOrganizationSubscription

      public GoogleApiSource.Builder setOrganizationSubscription(GoogleApiSource.OrganizationSubscription value)
       Optional. Config to enable subscribing to events from all projects in the
       GoogleApiSource's org.
       
      .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL];
    • setOrganizationSubscription

      public GoogleApiSource.Builder setOrganizationSubscription(GoogleApiSource.OrganizationSubscription.Builder builderForValue)
       Optional. Config to enable subscribing to events from all projects in the
       GoogleApiSource's org.
       
      .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL];
    • mergeOrganizationSubscription

      public GoogleApiSource.Builder mergeOrganizationSubscription(GoogleApiSource.OrganizationSubscription value)
       Optional. Config to enable subscribing to events from all projects in the
       GoogleApiSource's org.
       
      .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL];
    • clearOrganizationSubscription

      public GoogleApiSource.Builder clearOrganizationSubscription()
       Optional. Config to enable subscribing to events from all projects in the
       GoogleApiSource's org.
       
      .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL];
    • getOrganizationSubscriptionBuilder

      public GoogleApiSource.OrganizationSubscription.Builder getOrganizationSubscriptionBuilder()
       Optional. Config to enable subscribing to events from all projects in the
       GoogleApiSource's org.
       
      .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL];
    • getOrganizationSubscriptionOrBuilder

      public GoogleApiSource.OrganizationSubscriptionOrBuilder getOrganizationSubscriptionOrBuilder()
       Optional. Config to enable subscribing to events from all projects in the
       GoogleApiSource's org.
       
      .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOrganizationSubscriptionOrBuilder in interface GoogleApiSourceOrBuilder
    • hasProjectSubscriptions

      public boolean hasProjectSubscriptions()
       Optional. Config to enable subscribing to all events from a list of
       projects.
      
       All the projects must be in the same org as the GoogleApiSource.
       
      .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasProjectSubscriptions in interface GoogleApiSourceOrBuilder
      Returns:
      Whether the projectSubscriptions field is set.
    • getProjectSubscriptions

      public GoogleApiSource.ProjectSubscriptions getProjectSubscriptions()
       Optional. Config to enable subscribing to all events from a list of
       projects.
      
       All the projects must be in the same org as the GoogleApiSource.
       
      .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getProjectSubscriptions in interface GoogleApiSourceOrBuilder
      Returns:
      The projectSubscriptions.
    • setProjectSubscriptions

      public GoogleApiSource.Builder setProjectSubscriptions(GoogleApiSource.ProjectSubscriptions value)
       Optional. Config to enable subscribing to all events from a list of
       projects.
      
       All the projects must be in the same org as the GoogleApiSource.
       
      .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL];
    • setProjectSubscriptions

      public GoogleApiSource.Builder setProjectSubscriptions(GoogleApiSource.ProjectSubscriptions.Builder builderForValue)
       Optional. Config to enable subscribing to all events from a list of
       projects.
      
       All the projects must be in the same org as the GoogleApiSource.
       
      .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL];
    • mergeProjectSubscriptions

      public GoogleApiSource.Builder mergeProjectSubscriptions(GoogleApiSource.ProjectSubscriptions value)
       Optional. Config to enable subscribing to all events from a list of
       projects.
      
       All the projects must be in the same org as the GoogleApiSource.
       
      .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL];
    • clearProjectSubscriptions

      public GoogleApiSource.Builder clearProjectSubscriptions()
       Optional. Config to enable subscribing to all events from a list of
       projects.
      
       All the projects must be in the same org as the GoogleApiSource.
       
      .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL];
    • getProjectSubscriptionsBuilder

      public GoogleApiSource.ProjectSubscriptions.Builder getProjectSubscriptionsBuilder()
       Optional. Config to enable subscribing to all events from a list of
       projects.
      
       All the projects must be in the same org as the GoogleApiSource.
       
      .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL];
    • getProjectSubscriptionsOrBuilder

      public GoogleApiSource.ProjectSubscriptionsOrBuilder getProjectSubscriptionsOrBuilder()
       Optional. Config to enable subscribing to all events from a list of
       projects.
      
       All the projects must be in the same org as the GoogleApiSource.
       
      .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getProjectSubscriptionsOrBuilder in interface GoogleApiSourceOrBuilder