Class IcebergCatalog.Builder

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

public static final class IcebergCatalog.Builder extends com.google.protobuf.GeneratedMessage.Builder<IcebergCatalog.Builder> implements IcebergCatalogOrBuilder
 The Iceberg REST Catalog information.
 
Protobuf type google.cloud.biglake.v1.IcebergCatalog
  • 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<IcebergCatalog.Builder>
    • clear

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

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

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

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

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

      public IcebergCatalog.Builder mergeFrom(IcebergCatalog other)
    • isInitialized

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

      public IcebergCatalog.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<IcebergCatalog.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. The catalog name, `projects/my-project/catalogs/my-catalog`.
       This field is immutable.
       This field is ignored for CreateIcebergCatalog.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface IcebergCatalogOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The catalog name, `projects/my-project/catalogs/my-catalog`.
       This field is immutable.
       This field is ignored for CreateIcebergCatalog.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface IcebergCatalogOrBuilder
      Returns:
      The bytes for name.
    • setName

      public IcebergCatalog.Builder setName(String value)
       Identifier. The catalog name, `projects/my-project/catalogs/my-catalog`.
       This field is immutable.
       This field is ignored for CreateIcebergCatalog.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public IcebergCatalog.Builder clearName()
       Identifier. The catalog name, `projects/my-project/catalogs/my-catalog`.
       This field is immutable.
       This field is ignored for CreateIcebergCatalog.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public IcebergCatalog.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The catalog name, `projects/my-project/catalogs/my-catalog`.
       This field is immutable.
       This field is ignored for CreateIcebergCatalog.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getCredentialModeValue

      public int getCredentialModeValue()
       Optional. The credential mode for the catalog.
       
      .google.cloud.biglake.v1.IcebergCatalog.CredentialMode credential_mode = 2 [json_name = "credential-mode", (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCredentialModeValue in interface IcebergCatalogOrBuilder
      Returns:
      The enum numeric value on the wire for credentialMode.
    • setCredentialModeValue

      public IcebergCatalog.Builder setCredentialModeValue(int value)
       Optional. The credential mode for the catalog.
       
      .google.cloud.biglake.v1.IcebergCatalog.CredentialMode credential_mode = 2 [json_name = "credential-mode", (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for credentialMode to set.
      Returns:
      This builder for chaining.
    • getCredentialMode

      public IcebergCatalog.CredentialMode getCredentialMode()
       Optional. The credential mode for the catalog.
       
      .google.cloud.biglake.v1.IcebergCatalog.CredentialMode credential_mode = 2 [json_name = "credential-mode", (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCredentialMode in interface IcebergCatalogOrBuilder
      Returns:
      The credentialMode.
    • setCredentialMode

      public IcebergCatalog.Builder setCredentialMode(IcebergCatalog.CredentialMode value)
       Optional. The credential mode for the catalog.
       
      .google.cloud.biglake.v1.IcebergCatalog.CredentialMode credential_mode = 2 [json_name = "credential-mode", (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The credentialMode to set.
      Returns:
      This builder for chaining.
    • clearCredentialMode

      public IcebergCatalog.Builder clearCredentialMode()
       Optional. The credential mode for the catalog.
       
      .google.cloud.biglake.v1.IcebergCatalog.CredentialMode credential_mode = 2 [json_name = "credential-mode", (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getBiglakeServiceAccount

      public String getBiglakeServiceAccount()
       Output only. The service account used for credential vending, output only.
       Might be empty if Credential vending was never enabled for the catalog.
       
      string biglake_service_account = 3 [json_name = "biglake-service-account", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBiglakeServiceAccount in interface IcebergCatalogOrBuilder
      Returns:
      The biglakeServiceAccount.
    • getBiglakeServiceAccountBytes

      public com.google.protobuf.ByteString getBiglakeServiceAccountBytes()
       Output only. The service account used for credential vending, output only.
       Might be empty if Credential vending was never enabled for the catalog.
       
      string biglake_service_account = 3 [json_name = "biglake-service-account", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBiglakeServiceAccountBytes in interface IcebergCatalogOrBuilder
      Returns:
      The bytes for biglakeServiceAccount.
    • setBiglakeServiceAccount

      public IcebergCatalog.Builder setBiglakeServiceAccount(String value)
       Output only. The service account used for credential vending, output only.
       Might be empty if Credential vending was never enabled for the catalog.
       
      string biglake_service_account = 3 [json_name = "biglake-service-account", (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The biglakeServiceAccount to set.
      Returns:
      This builder for chaining.
    • clearBiglakeServiceAccount

      public IcebergCatalog.Builder clearBiglakeServiceAccount()
       Output only. The service account used for credential vending, output only.
       Might be empty if Credential vending was never enabled for the catalog.
       
      string biglake_service_account = 3 [json_name = "biglake-service-account", (.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setBiglakeServiceAccountBytes

      public IcebergCatalog.Builder setBiglakeServiceAccountBytes(com.google.protobuf.ByteString value)
       Output only. The service account used for credential vending, output only.
       Might be empty if Credential vending was never enabled for the catalog.
       
      string biglake_service_account = 3 [json_name = "biglake-service-account", (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for biglakeServiceAccount to set.
      Returns:
      This builder for chaining.
    • getCatalogTypeValue

      public int getCatalogTypeValue()
       Required. The catalog type. Required for CreateIcebergCatalog.
       
      .google.cloud.biglake.v1.IcebergCatalog.CatalogType catalog_type = 4 [json_name = "catalog-type", (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCatalogTypeValue in interface IcebergCatalogOrBuilder
      Returns:
      The enum numeric value on the wire for catalogType.
    • setCatalogTypeValue

      public IcebergCatalog.Builder setCatalogTypeValue(int value)
       Required. The catalog type. Required for CreateIcebergCatalog.
       
      .google.cloud.biglake.v1.IcebergCatalog.CatalogType catalog_type = 4 [json_name = "catalog-type", (.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for catalogType to set.
      Returns:
      This builder for chaining.
    • getCatalogType

      public IcebergCatalog.CatalogType getCatalogType()
       Required. The catalog type. Required for CreateIcebergCatalog.
       
      .google.cloud.biglake.v1.IcebergCatalog.CatalogType catalog_type = 4 [json_name = "catalog-type", (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCatalogType in interface IcebergCatalogOrBuilder
      Returns:
      The catalogType.
    • setCatalogType

      public IcebergCatalog.Builder setCatalogType(IcebergCatalog.CatalogType value)
       Required. The catalog type. Required for CreateIcebergCatalog.
       
      .google.cloud.biglake.v1.IcebergCatalog.CatalogType catalog_type = 4 [json_name = "catalog-type", (.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The catalogType to set.
      Returns:
      This builder for chaining.
    • clearCatalogType

      public IcebergCatalog.Builder clearCatalogType()
       Required. The catalog type. Required for CreateIcebergCatalog.
       
      .google.cloud.biglake.v1.IcebergCatalog.CatalogType catalog_type = 4 [json_name = "catalog-type", (.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getDefaultLocation

      public String getDefaultLocation()
       Optional. The default location for the catalog. For the Google Cloud
       Storage Bucket catalog this is output only.
       
      string default_location = 5 [json_name = "default-location", (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDefaultLocation in interface IcebergCatalogOrBuilder
      Returns:
      The defaultLocation.
    • getDefaultLocationBytes

      public com.google.protobuf.ByteString getDefaultLocationBytes()
       Optional. The default location for the catalog. For the Google Cloud
       Storage Bucket catalog this is output only.
       
      string default_location = 5 [json_name = "default-location", (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDefaultLocationBytes in interface IcebergCatalogOrBuilder
      Returns:
      The bytes for defaultLocation.
    • setDefaultLocation

      public IcebergCatalog.Builder setDefaultLocation(String value)
       Optional. The default location for the catalog. For the Google Cloud
       Storage Bucket catalog this is output only.
       
      string default_location = 5 [json_name = "default-location", (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The defaultLocation to set.
      Returns:
      This builder for chaining.
    • clearDefaultLocation

      public IcebergCatalog.Builder clearDefaultLocation()
       Optional. The default location for the catalog. For the Google Cloud
       Storage Bucket catalog this is output only.
       
      string default_location = 5 [json_name = "default-location", (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDefaultLocationBytes

      public IcebergCatalog.Builder setDefaultLocationBytes(com.google.protobuf.ByteString value)
       Optional. The default location for the catalog. For the Google Cloud
       Storage Bucket catalog this is output only.
       
      string default_location = 5 [json_name = "default-location", (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for defaultLocation to set.
      Returns:
      This builder for chaining.
    • getCatalogRegionsList

      public com.google.protobuf.ProtocolStringList getCatalogRegionsList()
       Output only. The GCP region(s) where the catalog metadata is stored.
       This will contain one value for all locations, except for the catalogs that
       are configured to use custom dual region buckets.
       
      repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCatalogRegionsList in interface IcebergCatalogOrBuilder
      Returns:
      A list containing the catalogRegions.
    • getCatalogRegionsCount

      public int getCatalogRegionsCount()
       Output only. The GCP region(s) where the catalog metadata is stored.
       This will contain one value for all locations, except for the catalogs that
       are configured to use custom dual region buckets.
       
      repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCatalogRegionsCount in interface IcebergCatalogOrBuilder
      Returns:
      The count of catalogRegions.
    • getCatalogRegions

      public String getCatalogRegions(int index)
       Output only. The GCP region(s) where the catalog metadata is stored.
       This will contain one value for all locations, except for the catalogs that
       are configured to use custom dual region buckets.
       
      repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCatalogRegions in interface IcebergCatalogOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The catalogRegions at the given index.
    • getCatalogRegionsBytes

      public com.google.protobuf.ByteString getCatalogRegionsBytes(int index)
       Output only. The GCP region(s) where the catalog metadata is stored.
       This will contain one value for all locations, except for the catalogs that
       are configured to use custom dual region buckets.
       
      repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCatalogRegionsBytes in interface IcebergCatalogOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the catalogRegions at the given index.
    • setCatalogRegions

      public IcebergCatalog.Builder setCatalogRegions(int index, String value)
       Output only. The GCP region(s) where the catalog metadata is stored.
       This will contain one value for all locations, except for the catalogs that
       are configured to use custom dual region buckets.
       
      repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The catalogRegions to set.
      Returns:
      This builder for chaining.
    • addCatalogRegions

      public IcebergCatalog.Builder addCatalogRegions(String value)
       Output only. The GCP region(s) where the catalog metadata is stored.
       This will contain one value for all locations, except for the catalogs that
       are configured to use custom dual region buckets.
       
      repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The catalogRegions to add.
      Returns:
      This builder for chaining.
    • addAllCatalogRegions

      public IcebergCatalog.Builder addAllCatalogRegions(Iterable<String> values)
       Output only. The GCP region(s) where the catalog metadata is stored.
       This will contain one value for all locations, except for the catalogs that
       are configured to use custom dual region buckets.
       
      repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The catalogRegions to add.
      Returns:
      This builder for chaining.
    • clearCatalogRegions

      public IcebergCatalog.Builder clearCatalogRegions()
       Output only. The GCP region(s) where the catalog metadata is stored.
       This will contain one value for all locations, except for the catalogs that
       are configured to use custom dual region buckets.
       
      repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • addCatalogRegionsBytes

      public IcebergCatalog.Builder addCatalogRegionsBytes(com.google.protobuf.ByteString value)
       Output only. The GCP region(s) where the catalog metadata is stored.
       This will contain one value for all locations, except for the catalogs that
       are configured to use custom dual region buckets.
       
      repeated string catalog_regions = 6 [json_name = "catalog-regions", (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes of the catalogRegions to add.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. When the catalog was created.
       
      .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface IcebergCatalogOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. When the catalog was created.
       
      .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface IcebergCatalogOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public IcebergCatalog.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. When the catalog was created.
       
      .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public IcebergCatalog.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. When the catalog was created.
       
      .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public IcebergCatalog.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. When the catalog was created.
       
      .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public IcebergCatalog.Builder clearCreateTime()
       Output only. When the catalog was created.
       
      .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. When the catalog was created.
       
      .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. When the catalog was created.
       
      .google.protobuf.Timestamp create_time = 7 [json_name = "create-time", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface IcebergCatalogOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. When the catalog was last updated.
       
      .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface IcebergCatalogOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. When the catalog was last updated.
       
      .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface IcebergCatalogOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public IcebergCatalog.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. When the catalog was last updated.
       
      .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public IcebergCatalog.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. When the catalog was last updated.
       
      .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public IcebergCatalog.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. When the catalog was last updated.
       
      .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public IcebergCatalog.Builder clearUpdateTime()
       Output only. When the catalog was last updated.
       
      .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. When the catalog was last updated.
       
      .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. When the catalog was last updated.
       
      .google.protobuf.Timestamp update_time = 8 [json_name = "update-time", (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface IcebergCatalogOrBuilder