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 Summary
Modifier and TypeMethodDescriptionaddAllReplicas(Iterable<? extends HiveCatalog.Replica> values) Output only.addReplicas(int index, HiveCatalog.Replica value) Output only.addReplicas(int index, HiveCatalog.Replica.Builder builderForValue) Output only.addReplicas(HiveCatalog.Replica value) Output only.addReplicas(HiveCatalog.Replica.Builder builderForValue) Output only.Output only.addReplicasBuilder(int index) Output only.build()clear()Optional.Required.Output only.Output only.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.getName()Output only.com.google.protobuf.ByteStringOutput only.getReplicas(int index) Output only.getReplicasBuilder(int index) Output only.Output only.intOutput only.Output only.getReplicasOrBuilder(int index) Output only.List<? extends HiveCatalog.ReplicaOrBuilder>Output only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(HiveCatalog other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeReplicas(int index) Output only.setDescription(String value) Optional.setDescriptionBytes(com.google.protobuf.ByteString value) Optional.setLocationUri(String value) Required.setLocationUriBytes(com.google.protobuf.ByteString value) Required.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setReplicas(int index, HiveCatalog.Replica value) Output only.setReplicas(int index, HiveCatalog.Replica.Builder builderForValue) 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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<HiveCatalog.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<HiveCatalog.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<HiveCatalog.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<HiveCatalog.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HiveCatalog.Builder>- Throws:
IOException
-
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:
getNamein interfaceHiveCatalogOrBuilder- 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:
getNameBytesin interfaceHiveCatalogOrBuilder- Returns:
- The bytes for name.
-
setName
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
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
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
Optional. Stores the catalog description. The maximum length is 4000 characters.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionin interfaceHiveCatalogOrBuilder- 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:
getDescriptionBytesin interfaceHiveCatalogOrBuilder- Returns:
- The bytes for description.
-
setDescription
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
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
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
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:
getLocationUriin interfaceHiveCatalogOrBuilder- 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:
getLocationUriBytesin interfaceHiveCatalogOrBuilder- Returns:
- The bytes for locationUri.
-
setLocationUri
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
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
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
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:
getReplicasListin interfaceHiveCatalogOrBuilder
-
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:
getReplicasCountin interfaceHiveCatalogOrBuilder
-
getReplicas
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:
getReplicasin interfaceHiveCatalogOrBuilder
-
setReplicas
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
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
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
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
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
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
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
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
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
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
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:
getReplicasOrBuilderin interfaceHiveCatalogOrBuilder
-
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:
getReplicasOrBuilderListin interfaceHiveCatalogOrBuilder
-
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
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
Output only. The replicas for the catalog metadata.
repeated .google.cloud.biglake.hive.v1beta.HiveCatalog.Replica replicas = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-