Class HiveTable.Builder

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

public static final class HiveTable.Builder extends com.google.protobuf.GeneratedMessage.Builder<HiveTable.Builder> implements HiveTableOrBuilder
 Stores the hive table information. It includes the table name, schema (column
 names and types), data location, storage format, serde info, etc. This
 message closely matches the Table object in the IMetastoreClient
 
Protobuf type google.cloud.biglake.hive.v1beta.HiveTable
  • 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<HiveTable.Builder>
    • internalGetMutableMapFieldReflection

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

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

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

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

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

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

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

      public HiveTable.Builder mergeFrom(HiveTable other)
    • isInitialized

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

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

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

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

      public HiveTable.Builder setName(String value)
       Output only. The resource name.
       Format:
       projects/{project_id_or_number}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_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 HiveTable.Builder clearName()
       Output only. The resource name.
       Format:
       projects/{project_id_or_number}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id}
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public HiveTable.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. The resource name.
       Format:
       projects/{project_id_or_number}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_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. Description of the table. The maximum length is 4000 characters.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface HiveTableOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

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

      public HiveTable.Builder setDescription(String value)
       Optional. Description of the table. 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 HiveTable.Builder clearDescription()
       Optional. Description of the table. The maximum length is 4000 characters.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public HiveTable.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. Description of the table. 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.
    • hasStorageDescriptor

      public boolean hasStorageDescriptor()
       Required. Storage descriptor of the table.
       
      .google.cloud.biglake.hive.v1beta.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasStorageDescriptor in interface HiveTableOrBuilder
      Returns:
      Whether the storageDescriptor field is set.
    • getStorageDescriptor

      public StorageDescriptor getStorageDescriptor()
       Required. Storage descriptor of the table.
       
      .google.cloud.biglake.hive.v1beta.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStorageDescriptor in interface HiveTableOrBuilder
      Returns:
      The storageDescriptor.
    • setStorageDescriptor

      public HiveTable.Builder setStorageDescriptor(StorageDescriptor value)
       Required. Storage descriptor of the table.
       
      .google.cloud.biglake.hive.v1beta.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = REQUIRED];
    • setStorageDescriptor

      public HiveTable.Builder setStorageDescriptor(StorageDescriptor.Builder builderForValue)
       Required. Storage descriptor of the table.
       
      .google.cloud.biglake.hive.v1beta.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeStorageDescriptor

      public HiveTable.Builder mergeStorageDescriptor(StorageDescriptor value)
       Required. Storage descriptor of the table.
       
      .google.cloud.biglake.hive.v1beta.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearStorageDescriptor

      public HiveTable.Builder clearStorageDescriptor()
       Required. Storage descriptor of the table.
       
      .google.cloud.biglake.hive.v1beta.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = REQUIRED];
    • getStorageDescriptorBuilder

      public StorageDescriptor.Builder getStorageDescriptorBuilder()
       Required. Storage descriptor of the table.
       
      .google.cloud.biglake.hive.v1beta.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = REQUIRED];
    • getStorageDescriptorOrBuilder

      public StorageDescriptorOrBuilder getStorageDescriptorOrBuilder()
       Required. Storage descriptor of the table.
       
      .google.cloud.biglake.hive.v1beta.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStorageDescriptorOrBuilder in interface HiveTableOrBuilder
    • hasCreateTime

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

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

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

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

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

      public HiveTable.Builder clearCreateTime()
       Output only. The creation time of the table.
       
      .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 of the table.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

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

      public List<FieldSchema> getPartitionKeysList()
       Optional. The partition keys of the table.
       
      repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPartitionKeysList in interface HiveTableOrBuilder
    • getPartitionKeysCount

      public int getPartitionKeysCount()
       Optional. The partition keys of the table.
       
      repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPartitionKeysCount in interface HiveTableOrBuilder
    • getPartitionKeys

      public FieldSchema getPartitionKeys(int index)
       Optional. The partition keys of the table.
       
      repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPartitionKeys in interface HiveTableOrBuilder
    • setPartitionKeys

      public HiveTable.Builder setPartitionKeys(int index, FieldSchema value)
       Optional. The partition keys of the table.
       
      repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL];
    • setPartitionKeys

      public HiveTable.Builder setPartitionKeys(int index, FieldSchema.Builder builderForValue)
       Optional. The partition keys of the table.
       
      repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL];
    • addPartitionKeys

      public HiveTable.Builder addPartitionKeys(FieldSchema value)
       Optional. The partition keys of the table.
       
      repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL];
    • addPartitionKeys

      public HiveTable.Builder addPartitionKeys(int index, FieldSchema value)
       Optional. The partition keys of the table.
       
      repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL];
    • addPartitionKeys

      public HiveTable.Builder addPartitionKeys(FieldSchema.Builder builderForValue)
       Optional. The partition keys of the table.
       
      repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL];
    • addPartitionKeys

      public HiveTable.Builder addPartitionKeys(int index, FieldSchema.Builder builderForValue)
       Optional. The partition keys of the table.
       
      repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL];
    • addAllPartitionKeys

      public HiveTable.Builder addAllPartitionKeys(Iterable<? extends FieldSchema> values)
       Optional. The partition keys of the table.
       
      repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL];
    • clearPartitionKeys

      public HiveTable.Builder clearPartitionKeys()
       Optional. The partition keys of the table.
       
      repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL];
    • removePartitionKeys

      public HiveTable.Builder removePartitionKeys(int index)
       Optional. The partition keys of the table.
       
      repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getPartitionKeysBuilder

      public FieldSchema.Builder getPartitionKeysBuilder(int index)
       Optional. The partition keys of the table.
       
      repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getPartitionKeysOrBuilder

      public FieldSchemaOrBuilder getPartitionKeysOrBuilder(int index)
       Optional. The partition keys of the table.
       
      repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPartitionKeysOrBuilder in interface HiveTableOrBuilder
    • getPartitionKeysOrBuilderList

      public List<? extends FieldSchemaOrBuilder> getPartitionKeysOrBuilderList()
       Optional. The partition keys of the table.
       
      repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPartitionKeysOrBuilderList in interface HiveTableOrBuilder
    • addPartitionKeysBuilder

      public FieldSchema.Builder addPartitionKeysBuilder()
       Optional. The partition keys of the table.
       
      repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL];
    • addPartitionKeysBuilder

      public FieldSchema.Builder addPartitionKeysBuilder(int index)
       Optional. The partition keys of the table.
       
      repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getPartitionKeysBuilderList

      public List<FieldSchema.Builder> getPartitionKeysBuilderList()
       Optional. The partition keys of the table.
       
      repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getParametersCount

      public int getParametersCount()
      Description copied from interface: HiveTableOrBuilder
       Optional. Stores the properties associated with the table. The maximum size
       is 4MiB.
       
      map<string, string> parameters = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getParametersCount in interface HiveTableOrBuilder
    • containsParameters

      public boolean containsParameters(String key)
       Optional. Stores the properties associated with the table. The maximum size
       is 4MiB.
       
      map<string, string> parameters = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsParameters in interface HiveTableOrBuilder
    • getParameters

      @Deprecated public Map<String,String> getParameters()
      Deprecated.
      Use getParametersMap() instead.
      Specified by:
      getParameters in interface HiveTableOrBuilder
    • getParametersMap

      public Map<String,String> getParametersMap()
       Optional. Stores the properties associated with the table. The maximum size
       is 4MiB.
       
      map<string, string> parameters = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getParametersMap in interface HiveTableOrBuilder
    • getParametersOrDefault

      public String getParametersOrDefault(String key, String defaultValue)
       Optional. Stores the properties associated with the table. The maximum size
       is 4MiB.
       
      map<string, string> parameters = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getParametersOrDefault in interface HiveTableOrBuilder
    • getParametersOrThrow

      public String getParametersOrThrow(String key)
       Optional. Stores the properties associated with the table. The maximum size
       is 4MiB.
       
      map<string, string> parameters = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getParametersOrThrow in interface HiveTableOrBuilder
    • clearParameters

      public HiveTable.Builder clearParameters()
    • removeParameters

      public HiveTable.Builder removeParameters(String key)
       Optional. Stores the properties associated with the table. The maximum size
       is 4MiB.
       
      map<string, string> parameters = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableParameters

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

      public HiveTable.Builder putParameters(String key, String value)
       Optional. Stores the properties associated with the table. The maximum size
       is 4MiB.
       
      map<string, string> parameters = 8 [(.google.api.field_behavior) = OPTIONAL];
    • putAllParameters

      public HiveTable.Builder putAllParameters(Map<String,String> values)
       Optional. Stores the properties associated with the table. The maximum size
       is 4MiB.
       
      map<string, string> parameters = 8 [(.google.api.field_behavior) = OPTIONAL];
    • getTableType

      public String getTableType()
       Output only. The type of the table. This is EXTERNAL for BigLake hive
       tables.
       
      string table_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTableType in interface HiveTableOrBuilder
      Returns:
      The tableType.
    • getTableTypeBytes

      public com.google.protobuf.ByteString getTableTypeBytes()
       Output only. The type of the table. This is EXTERNAL for BigLake hive
       tables.
       
      string table_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getTableTypeBytes in interface HiveTableOrBuilder
      Returns:
      The bytes for tableType.
    • setTableType

      public HiveTable.Builder setTableType(String value)
       Output only. The type of the table. This is EXTERNAL for BigLake hive
       tables.
       
      string table_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The tableType to set.
      Returns:
      This builder for chaining.
    • clearTableType

      public HiveTable.Builder clearTableType()
       Output only. The type of the table. This is EXTERNAL for BigLake hive
       tables.
       
      string table_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setTableTypeBytes

      public HiveTable.Builder setTableTypeBytes(com.google.protobuf.ByteString value)
       Output only. The type of the table. This is EXTERNAL for BigLake hive
       tables.
       
      string table_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for tableType to set.
      Returns:
      This builder for chaining.