Class HiveCatalog.Builder

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

public static final class HiveCatalog.Builder extends com.google.protobuf.GeneratedMessage.Builder<HiveCatalog.Builder> implements HiveCatalogOrBuilder
 The HiveCatalog contains spark/hive databases and tables in the BigLake
 Metastore. While creating resources under a catalog, ideally ensure that the
 storage bucket location, spark / hive engine location or any other compute
 location  match. Catalog can be viewed as the destination for migrating an
 on-prem Hive metastore to GCP.
 
Protobuf type google.cloud.biglake.hive.v1beta.HiveCatalog
  • 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<HiveCatalog.Builder>
    • clear

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

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

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

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

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

      public HiveCatalog.Builder mergeFrom(HiveCatalog other)
    • isInitialized

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

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

      public String getName()
       Output only. The resource name.
       Format:
       projects/{project_id_or_number}/catalogs/{catalog_id}
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface HiveCatalogOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The resource name.
       Format:
       projects/{project_id_or_number}/catalogs/{catalog_id}
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface HiveCatalogOrBuilder
      Returns:
      The bytes for name.
    • setName

      public HiveCatalog.Builder setName(String value)
       Output only. The resource name.
       Format:
       projects/{project_id_or_number}/catalogs/{catalog_id}
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public HiveCatalog.Builder clearName()
       Output only. The resource name.
       Format:
       projects/{project_id_or_number}/catalogs/{catalog_id}
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public HiveCatalog.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. The resource name.
       Format:
       projects/{project_id_or_number}/catalogs/{catalog_id}
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Optional. Stores the catalog description.
       The maximum length is 4000 characters.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface HiveCatalogOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. Stores the catalog description.
       The maximum length is 4000 characters.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface HiveCatalogOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public HiveCatalog.Builder setDescription(String value)
       Optional. Stores the catalog description.
       The maximum length is 4000 characters.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public HiveCatalog.Builder clearDescription()
       Optional. Stores the catalog description.
       The maximum length is 4000 characters.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public HiveCatalog.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. Stores the catalog description.
       The maximum length is 4000 characters.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getLocationUri

      public String getLocationUri()
       Required. The Cloud Storage location path where the catalog exists.
       Format: gs://bucket/path/to/catalog
       The maximum length is 4000 characters.
       
      string location_uri = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLocationUri in interface HiveCatalogOrBuilder
      Returns:
      The locationUri.
    • getLocationUriBytes

      public com.google.protobuf.ByteString getLocationUriBytes()
       Required. The Cloud Storage location path where the catalog exists.
       Format: gs://bucket/path/to/catalog
       The maximum length is 4000 characters.
       
      string location_uri = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLocationUriBytes in interface HiveCatalogOrBuilder
      Returns:
      The bytes for locationUri.
    • setLocationUri

      public HiveCatalog.Builder setLocationUri(String value)
       Required. The Cloud Storage location path where the catalog exists.
       Format: gs://bucket/path/to/catalog
       The maximum length is 4000 characters.
       
      string location_uri = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The locationUri to set.
      Returns:
      This builder for chaining.
    • clearLocationUri

      public HiveCatalog.Builder clearLocationUri()
       Required. The Cloud Storage location path where the catalog exists.
       Format: gs://bucket/path/to/catalog
       The maximum length is 4000 characters.
       
      string location_uri = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setLocationUriBytes

      public HiveCatalog.Builder setLocationUriBytes(com.google.protobuf.ByteString value)
       Required. The Cloud Storage location path where the catalog exists.
       Format: gs://bucket/path/to/catalog
       The maximum length is 4000 characters.
       
      string location_uri = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for locationUri to set.
      Returns:
      This builder for chaining.
    • getReplicasList

      public List<HiveCatalog.Replica> getReplicasList()
       Output only. The replicas for the catalog metadata.
       
      repeated .google.cloud.biglake.hive.v1beta.HiveCatalog.Replica replicas = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReplicasList in interface HiveCatalogOrBuilder
    • getReplicasCount

      public int getReplicasCount()
       Output only. The replicas for the catalog metadata.
       
      repeated .google.cloud.biglake.hive.v1beta.HiveCatalog.Replica replicas = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReplicasCount in interface HiveCatalogOrBuilder
    • getReplicas

      public HiveCatalog.Replica getReplicas(int index)
       Output only. The replicas for the catalog metadata.
       
      repeated .google.cloud.biglake.hive.v1beta.HiveCatalog.Replica replicas = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReplicas in interface HiveCatalogOrBuilder
    • setReplicas

      public HiveCatalog.Builder setReplicas(int index, HiveCatalog.Replica value)
       Output only. The replicas for the catalog metadata.
       
      repeated .google.cloud.biglake.hive.v1beta.HiveCatalog.Replica replicas = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setReplicas

      public HiveCatalog.Builder setReplicas(int index, HiveCatalog.Replica.Builder builderForValue)
       Output only. The replicas for the catalog metadata.
       
      repeated .google.cloud.biglake.hive.v1beta.HiveCatalog.Replica replicas = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addReplicas

      public HiveCatalog.Builder addReplicas(HiveCatalog.Replica value)
       Output only. The replicas for the catalog metadata.
       
      repeated .google.cloud.biglake.hive.v1beta.HiveCatalog.Replica replicas = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addReplicas

      public HiveCatalog.Builder addReplicas(int index, HiveCatalog.Replica value)
       Output only. The replicas for the catalog metadata.
       
      repeated .google.cloud.biglake.hive.v1beta.HiveCatalog.Replica replicas = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addReplicas

      public HiveCatalog.Builder addReplicas(HiveCatalog.Replica.Builder builderForValue)
       Output only. The replicas for the catalog metadata.
       
      repeated .google.cloud.biglake.hive.v1beta.HiveCatalog.Replica replicas = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addReplicas

      public HiveCatalog.Builder addReplicas(int index, HiveCatalog.Replica.Builder builderForValue)
       Output only. The replicas for the catalog metadata.
       
      repeated .google.cloud.biglake.hive.v1beta.HiveCatalog.Replica replicas = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllReplicas

      public HiveCatalog.Builder addAllReplicas(Iterable<? extends HiveCatalog.Replica> values)
       Output only. The replicas for the catalog metadata.
       
      repeated .google.cloud.biglake.hive.v1beta.HiveCatalog.Replica replicas = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearReplicas

      public HiveCatalog.Builder clearReplicas()
       Output only. The replicas for the catalog metadata.
       
      repeated .google.cloud.biglake.hive.v1beta.HiveCatalog.Replica replicas = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeReplicas

      public HiveCatalog.Builder removeReplicas(int index)
       Output only. The replicas for the catalog metadata.
       
      repeated .google.cloud.biglake.hive.v1beta.HiveCatalog.Replica replicas = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getReplicasBuilder

      public HiveCatalog.Replica.Builder getReplicasBuilder(int index)
       Output only. The replicas for the catalog metadata.
       
      repeated .google.cloud.biglake.hive.v1beta.HiveCatalog.Replica replicas = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getReplicasOrBuilder

      public HiveCatalog.ReplicaOrBuilder getReplicasOrBuilder(int index)
       Output only. The replicas for the catalog metadata.
       
      repeated .google.cloud.biglake.hive.v1beta.HiveCatalog.Replica replicas = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReplicasOrBuilder in interface HiveCatalogOrBuilder
    • getReplicasOrBuilderList

      public List<? extends HiveCatalog.ReplicaOrBuilder> getReplicasOrBuilderList()
       Output only. The replicas for the catalog metadata.
       
      repeated .google.cloud.biglake.hive.v1beta.HiveCatalog.Replica replicas = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReplicasOrBuilderList in interface HiveCatalogOrBuilder
    • addReplicasBuilder

      public HiveCatalog.Replica.Builder addReplicasBuilder()
       Output only. The replicas for the catalog metadata.
       
      repeated .google.cloud.biglake.hive.v1beta.HiveCatalog.Replica replicas = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addReplicasBuilder

      public HiveCatalog.Replica.Builder addReplicasBuilder(int index)
       Output only. The replicas for the catalog metadata.
       
      repeated .google.cloud.biglake.hive.v1beta.HiveCatalog.Replica replicas = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getReplicasBuilderList

      public List<HiveCatalog.Replica.Builder> getReplicasBuilderList()
       Output only. The replicas for the catalog metadata.
       
      repeated .google.cloud.biglake.hive.v1beta.HiveCatalog.Replica replicas = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];