Class HiveTable

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.biglake.hive.v1beta.HiveTable
All Implemented Interfaces:
HiveTableOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class HiveTable extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • STORAGE_DESCRIPTOR_FIELD_NUMBER

      public static final int STORAGE_DESCRIPTOR_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • PARTITION_KEYS_FIELD_NUMBER

      public static final int PARTITION_KEYS_FIELD_NUMBER
      See Also:
    • PARAMETERS_FIELD_NUMBER

      public static final int PARAMETERS_FIELD_NUMBER
      See Also:
    • TABLE_TYPE_FIELD_NUMBER

      public static final int TABLE_TYPE_FIELD_NUMBER
      See Also:
  • 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
    • internalGetFieldAccessorTable

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

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static HiveTable parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HiveTable parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HiveTable parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HiveTable parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HiveTable parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HiveTable parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HiveTable parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static HiveTable parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static HiveTable parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static HiveTable parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static HiveTable parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static HiveTable parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static HiveTable.Builder newBuilder()
    • newBuilder

      public static HiveTable.Builder newBuilder(HiveTable prototype)
    • toBuilder

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

      protected HiveTable.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static HiveTable getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<HiveTable> parser()
    • getParserForType

      public com.google.protobuf.Parser<HiveTable> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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