Class ApiHubInstance.Config.Builder

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

public static final class ApiHubInstance.Config.Builder extends com.google.protobuf.GeneratedMessage.Builder<ApiHubInstance.Config.Builder> implements ApiHubInstance.ConfigOrBuilder
 Available configurations to provision an ApiHub Instance.
 
Protobuf type google.cloud.apihub.v1.ApiHubInstance.Config
  • Method Details

    • getDescriptor

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

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

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

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

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

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

    • isInitialized

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

      public ApiHubInstance.Config.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<ApiHubInstance.Config.Builder>
      Throws:
      IOException
    • getCmekKeyName

      public String getCmekKeyName()
       Optional. The Customer Managed Encryption Key (CMEK) used for data
       encryption. The CMEK name should follow the format of
       `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`,
       where the location must match the instance location.
       If the CMEK is not provided, a GMEK will be created for the instance.
       
      string cmek_key_name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCmekKeyName in interface ApiHubInstance.ConfigOrBuilder
      Returns:
      The cmekKeyName.
    • getCmekKeyNameBytes

      public com.google.protobuf.ByteString getCmekKeyNameBytes()
       Optional. The Customer Managed Encryption Key (CMEK) used for data
       encryption. The CMEK name should follow the format of
       `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`,
       where the location must match the instance location.
       If the CMEK is not provided, a GMEK will be created for the instance.
       
      string cmek_key_name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCmekKeyNameBytes in interface ApiHubInstance.ConfigOrBuilder
      Returns:
      The bytes for cmekKeyName.
    • setCmekKeyName

      public ApiHubInstance.Config.Builder setCmekKeyName(String value)
       Optional. The Customer Managed Encryption Key (CMEK) used for data
       encryption. The CMEK name should follow the format of
       `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`,
       where the location must match the instance location.
       If the CMEK is not provided, a GMEK will be created for the instance.
       
      string cmek_key_name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The cmekKeyName to set.
      Returns:
      This builder for chaining.
    • clearCmekKeyName

      public ApiHubInstance.Config.Builder clearCmekKeyName()
       Optional. The Customer Managed Encryption Key (CMEK) used for data
       encryption. The CMEK name should follow the format of
       `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`,
       where the location must match the instance location.
       If the CMEK is not provided, a GMEK will be created for the instance.
       
      string cmek_key_name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setCmekKeyNameBytes

      public ApiHubInstance.Config.Builder setCmekKeyNameBytes(com.google.protobuf.ByteString value)
       Optional. The Customer Managed Encryption Key (CMEK) used for data
       encryption. The CMEK name should follow the format of
       `projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`,
       where the location must match the instance location.
       If the CMEK is not provided, a GMEK will be created for the instance.
       
      string cmek_key_name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for cmekKeyName to set.
      Returns:
      This builder for chaining.
    • getDisableSearch

      public boolean getDisableSearch()
       Optional. If true, the search will be disabled for the instance. The
       default value is false.
       
      bool disable_search = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisableSearch in interface ApiHubInstance.ConfigOrBuilder
      Returns:
      The disableSearch.
    • setDisableSearch

      public ApiHubInstance.Config.Builder setDisableSearch(boolean value)
       Optional. If true, the search will be disabled for the instance. The
       default value is false.
       
      bool disable_search = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The disableSearch to set.
      Returns:
      This builder for chaining.
    • clearDisableSearch

      public ApiHubInstance.Config.Builder clearDisableSearch()
       Optional. If true, the search will be disabled for the instance. The
       default value is false.
       
      bool disable_search = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getVertexLocation

      public String getVertexLocation()
       Optional. The name of the Vertex AI location where the data store is
       stored.
       
      string vertex_location = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVertexLocation in interface ApiHubInstance.ConfigOrBuilder
      Returns:
      The vertexLocation.
    • getVertexLocationBytes

      public com.google.protobuf.ByteString getVertexLocationBytes()
       Optional. The name of the Vertex AI location where the data store is
       stored.
       
      string vertex_location = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVertexLocationBytes in interface ApiHubInstance.ConfigOrBuilder
      Returns:
      The bytes for vertexLocation.
    • setVertexLocation

      public ApiHubInstance.Config.Builder setVertexLocation(String value)
       Optional. The name of the Vertex AI location where the data store is
       stored.
       
      string vertex_location = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The vertexLocation to set.
      Returns:
      This builder for chaining.
    • clearVertexLocation

      public ApiHubInstance.Config.Builder clearVertexLocation()
       Optional. The name of the Vertex AI location where the data store is
       stored.
       
      string vertex_location = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setVertexLocationBytes

      public ApiHubInstance.Config.Builder setVertexLocationBytes(com.google.protobuf.ByteString value)
       Optional. The name of the Vertex AI location where the data store is
       stored.
       
      string vertex_location = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for vertexLocation to set.
      Returns:
      This builder for chaining.
    • getEncryptionTypeValue

      public int getEncryptionTypeValue()
       Optional. Encryption type for the region. If the encryption type is CMEK,
       the cmek_key_name must be provided. If no encryption type is provided,
       GMEK will be used.
       
      .google.cloud.apihub.v1.ApiHubInstance.Config.EncryptionType encryption_type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEncryptionTypeValue in interface ApiHubInstance.ConfigOrBuilder
      Returns:
      The enum numeric value on the wire for encryptionType.
    • setEncryptionTypeValue

      public ApiHubInstance.Config.Builder setEncryptionTypeValue(int value)
       Optional. Encryption type for the region. If the encryption type is CMEK,
       the cmek_key_name must be provided. If no encryption type is provided,
       GMEK will be used.
       
      .google.cloud.apihub.v1.ApiHubInstance.Config.EncryptionType encryption_type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for encryptionType to set.
      Returns:
      This builder for chaining.
    • getEncryptionType

      public ApiHubInstance.Config.EncryptionType getEncryptionType()
       Optional. Encryption type for the region. If the encryption type is CMEK,
       the cmek_key_name must be provided. If no encryption type is provided,
       GMEK will be used.
       
      .google.cloud.apihub.v1.ApiHubInstance.Config.EncryptionType encryption_type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEncryptionType in interface ApiHubInstance.ConfigOrBuilder
      Returns:
      The encryptionType.
    • setEncryptionType

       Optional. Encryption type for the region. If the encryption type is CMEK,
       the cmek_key_name must be provided. If no encryption type is provided,
       GMEK will be used.
       
      .google.cloud.apihub.v1.ApiHubInstance.Config.EncryptionType encryption_type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The encryptionType to set.
      Returns:
      This builder for chaining.
    • clearEncryptionType

      public ApiHubInstance.Config.Builder clearEncryptionType()
       Optional. Encryption type for the region. If the encryption type is CMEK,
       the cmek_key_name must be provided. If no encryption type is provided,
       GMEK will be used.
       
      .google.cloud.apihub.v1.ApiHubInstance.Config.EncryptionType encryption_type = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.