public static final class HiveCatalog.Builder extends GeneratedMessage.Builder<HiveCatalog.Builder> implements HiveCatalogOrBuilderThe 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > HiveCatalog.BuilderImplements
HiveCatalogOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllReplicas(Iterable<? extends HiveCatalog.Replica> values)
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];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.biglake.hive.v1beta.HiveCatalog.Replica> |
| Returns | |
|---|---|
| Type | Description |
HiveCatalog.Builder |
|
addReplicas(HiveCatalog.Replica value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
HiveCatalog.Replica |
| Returns | |
|---|---|
| Type | Description |
HiveCatalog.Builder |
|
addReplicas(HiveCatalog.Replica.Builder builderForValue)
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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
HiveCatalog.Replica.Builder |
| Returns | |
|---|---|
| Type | Description |
HiveCatalog.Builder |
|
addReplicas(int index, HiveCatalog.Replica value)
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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
HiveCatalog.Replica |
| Returns | |
|---|---|
| Type | Description |
HiveCatalog.Builder |
|
addReplicas(int index, HiveCatalog.Replica.Builder builderForValue)
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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
HiveCatalog.Replica.Builder |
| Returns | |
|---|---|
| Type | Description |
HiveCatalog.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
HiveCatalog.Replica.Builder |
|
addReplicasBuilder(int index)
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];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
HiveCatalog.Replica.Builder |
|
build()
public HiveCatalog build()| Returns | |
|---|---|
| Type | Description |
HiveCatalog |
|
buildPartial()
public HiveCatalog buildPartial()| Returns | |
|---|---|
| Type | Description |
HiveCatalog |
|
clear()
public HiveCatalog.Builder clear()| Returns | |
|---|---|
| Type | Description |
HiveCatalog.Builder |
|
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 | |
|---|---|
| Type | Description |
HiveCatalog.Builder |
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 | |
|---|---|
| Type | Description |
HiveCatalog.Builder |
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 | |
|---|---|
| Type | Description |
HiveCatalog.Builder |
This builder for chaining. |
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];
| Returns | |
|---|---|
| Type | Description |
HiveCatalog.Builder |
|
getDefaultInstanceForType()
public HiveCatalog getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
HiveCatalog |
|
getDescription()
public String getDescription()Optional. Stores the catalog description. The maximum length is 4000 characters.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()Optional. Stores the catalog description. The maximum length is 4000 characters.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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];
| Returns | |
|---|---|
| Type | Description |
String |
The locationUri. |
getLocationUriBytes()
public 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];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for locationUri. |
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) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public 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) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getReplicas(int index)
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];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
HiveCatalog.Replica |
|
getReplicasBuilder(int index)
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];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
HiveCatalog.Replica.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
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];
| Returns | |
|---|---|
| Type | Description |
int |
|
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];
| Returns | |
|---|---|
| Type | Description |
List<Replica> |
|
getReplicasOrBuilder(int index)
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];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
HiveCatalog.ReplicaOrBuilder |
|
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];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.biglake.hive.v1beta.HiveCatalog.ReplicaOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(HiveCatalog other)
public HiveCatalog.Builder mergeFrom(HiveCatalog other)| Parameter | |
|---|---|
| Name | Description |
other |
HiveCatalog |
| Returns | |
|---|---|
| Type | Description |
HiveCatalog.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public HiveCatalog.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
HiveCatalog.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public HiveCatalog.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
HiveCatalog.Builder |
|
removeReplicas(int index)
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];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
HiveCatalog.Builder |
|
setDescription(String value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
HiveCatalog.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public HiveCatalog.Builder setDescriptionBytes(ByteString value)Optional. Stores the catalog description. The maximum length is 4000 characters.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
HiveCatalog.Builder |
This builder for chaining. |
setLocationUri(String value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe locationUri to set. |
| Returns | |
|---|---|
| Type | Description |
HiveCatalog.Builder |
This builder for chaining. |
setLocationUriBytes(ByteString value)
public HiveCatalog.Builder setLocationUriBytes(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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for locationUri to set. |
| Returns | |
|---|---|
| Type | Description |
HiveCatalog.Builder |
This builder for chaining. |
setName(String value)
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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
HiveCatalog.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public HiveCatalog.Builder setNameBytes(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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
HiveCatalog.Builder |
This builder for chaining. |
setReplicas(int index, HiveCatalog.Replica value)
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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
HiveCatalog.Replica |
| Returns | |
|---|---|
| Type | Description |
HiveCatalog.Builder |
|
setReplicas(int index, HiveCatalog.Replica.Builder builderForValue)
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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
HiveCatalog.Replica.Builder |
| Returns | |
|---|---|
| Type | Description |
HiveCatalog.Builder |
|