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 IMetastoreClientProtobuf type
google.cloud.biglake.hive.v1beta.HiveTable-
Method Summary
Modifier and TypeMethodDescriptionaddAllPartitionKeys(Iterable<? extends FieldSchema> values) Optional.addPartitionKeys(int index, FieldSchema value) Optional.addPartitionKeys(int index, FieldSchema.Builder builderForValue) Optional.addPartitionKeys(FieldSchema value) Optional.addPartitionKeys(FieldSchema.Builder builderForValue) Optional.Optional.addPartitionKeysBuilder(int index) Optional.build()clear()Output only.Optional.Output only.Optional.Required.Output only.booleancontainsParameters(String key) Optional.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.getName()Output only.com.google.protobuf.ByteStringOutput only.Deprecated.intOptional.Optional.getParametersOrDefault(String key, String defaultValue) Optional.Optional.getPartitionKeys(int index) Optional.getPartitionKeysBuilder(int index) Optional.Optional.intOptional.Optional.getPartitionKeysOrBuilder(int index) Optional.List<? extends FieldSchemaOrBuilder>Optional.Required.Required.Required.Output only.com.google.protobuf.ByteStringOutput only.booleanOutput only.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Required.putAllParameters(Map<String, String> values) Optional.putParameters(String key, String value) Optional.removeParameters(String key) Optional.removePartitionKeys(int index) Optional.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDescription(String value) Optional.setDescriptionBytes(com.google.protobuf.ByteString value) Optional.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setPartitionKeys(int index, FieldSchema value) Optional.setPartitionKeys(int index, FieldSchema.Builder builderForValue) Optional.Required.setStorageDescriptor(StorageDescriptor.Builder builderForValue) Required.setTableType(String value) Output only.setTableTypeBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<HiveTable.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<HiveTable.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<HiveTable.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<HiveTable.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<HiveTable.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HiveTable.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HiveTable.Builder>- Throws:
IOException
-
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:
getNamein interfaceHiveTableOrBuilder- 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:
getNameBytesin interfaceHiveTableOrBuilder- Returns:
- The bytes for name.
-
setName
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
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
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
Optional. Description of the table. The maximum length is 4000 characters.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionin interfaceHiveTableOrBuilder- 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:
getDescriptionBytesin interfaceHiveTableOrBuilder- Returns:
- The bytes for description.
-
setDescription
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
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
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:
hasStorageDescriptorin interfaceHiveTableOrBuilder- Returns:
- Whether the storageDescriptor field is set.
-
getStorageDescriptor
Required. Storage descriptor of the table.
.google.cloud.biglake.hive.v1beta.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getStorageDescriptorin interfaceHiveTableOrBuilder- Returns:
- The storageDescriptor.
-
setStorageDescriptor
Required. Storage descriptor of the table.
.google.cloud.biglake.hive.v1beta.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = REQUIRED]; -
setStorageDescriptor
Required. Storage descriptor of the table.
.google.cloud.biglake.hive.v1beta.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = REQUIRED]; -
mergeStorageDescriptor
Required. Storage descriptor of the table.
.google.cloud.biglake.hive.v1beta.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = REQUIRED]; -
clearStorageDescriptor
Required. Storage descriptor of the table.
.google.cloud.biglake.hive.v1beta.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = REQUIRED]; -
getStorageDescriptorBuilder
Required. Storage descriptor of the table.
.google.cloud.biglake.hive.v1beta.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = REQUIRED]; -
getStorageDescriptorOrBuilder
Required. Storage descriptor of the table.
.google.cloud.biglake.hive.v1beta.StorageDescriptor storage_descriptor = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getStorageDescriptorOrBuilderin interfaceHiveTableOrBuilder
-
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:
hasCreateTimein interfaceHiveTableOrBuilder- 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:
getCreateTimein interfaceHiveTableOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The creation time of the table.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. The creation time of the table.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. The creation time of the table.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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:
getCreateTimeOrBuilderin interfaceHiveTableOrBuilder
-
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:
getPartitionKeysListin interfaceHiveTableOrBuilder
-
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:
getPartitionKeysCountin interfaceHiveTableOrBuilder
-
getPartitionKeys
Optional. The partition keys of the table.
repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPartitionKeysin interfaceHiveTableOrBuilder
-
setPartitionKeys
Optional. The partition keys of the table.
repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; -
setPartitionKeys
Optional. The partition keys of the table.
repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; -
addPartitionKeys
Optional. The partition keys of the table.
repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; -
addPartitionKeys
Optional. The partition keys of the table.
repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; -
addPartitionKeys
Optional. The partition keys of the table.
repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; -
addPartitionKeys
Optional. The partition keys of the table.
repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; -
addAllPartitionKeys
Optional. The partition keys of the table.
repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; -
clearPartitionKeys
Optional. The partition keys of the table.
repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; -
removePartitionKeys
Optional. The partition keys of the table.
repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; -
getPartitionKeysBuilder
Optional. The partition keys of the table.
repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; -
getPartitionKeysOrBuilder
Optional. The partition keys of the table.
repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPartitionKeysOrBuilderin interfaceHiveTableOrBuilder
-
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:
getPartitionKeysOrBuilderListin interfaceHiveTableOrBuilder
-
addPartitionKeysBuilder
Optional. The partition keys of the table.
repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; -
addPartitionKeysBuilder
Optional. The partition keys of the table.
repeated .google.cloud.biglake.hive.v1beta.FieldSchema partition_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; -
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:HiveTableOrBuilderOptional. Stores the properties associated with the table. The maximum size is 4MiB.
map<string, string> parameters = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getParametersCountin interfaceHiveTableOrBuilder
-
containsParameters
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:
containsParametersin interfaceHiveTableOrBuilder
-
getParameters
Deprecated.UsegetParametersMap()instead.- Specified by:
getParametersin interfaceHiveTableOrBuilder
-
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:
getParametersMapin interfaceHiveTableOrBuilder
-
getParametersOrDefault
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:
getParametersOrDefaultin interfaceHiveTableOrBuilder
-
getParametersOrThrow
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:
getParametersOrThrowin interfaceHiveTableOrBuilder
-
clearParameters
-
removeParameters
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.Use alternate mutation accessors instead. -
putParameters
Optional. Stores the properties associated with the table. The maximum size is 4MiB.
map<string, string> parameters = 8 [(.google.api.field_behavior) = OPTIONAL]; -
putAllParameters
Optional. Stores the properties associated with the table. The maximum size is 4MiB.
map<string, string> parameters = 8 [(.google.api.field_behavior) = OPTIONAL]; -
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:
getTableTypein interfaceHiveTableOrBuilder- 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:
getTableTypeBytesin interfaceHiveTableOrBuilder- Returns:
- The bytes for tableType.
-
setTableType
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
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
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.
-