Class HiveDatabase.Builder (0.76.0)

public static final class HiveDatabase.Builder extends GeneratedMessage.Builder<HiveDatabase.Builder> implements HiveDatabaseOrBuilder

Stores the hive database information. It includes the database name, description, location and properties associated with the database.

Protobuf type google.cloud.biglake.hive.v1beta.HiveDatabase

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public HiveDatabase build()
Returns
Type Description
HiveDatabase

buildPartial()

public HiveDatabase buildPartial()
Returns
Type Description
HiveDatabase

clear()

public HiveDatabase.Builder clear()
Returns
Type Description
HiveDatabase.Builder
Overrides

clearDescription()

public HiveDatabase.Builder clearDescription()

Optional. Stores the database description. The maximum length is 4000 characters.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
HiveDatabase.Builder

This builder for chaining.

clearLocationUri()

public HiveDatabase.Builder clearLocationUri()

Optional. The Cloud Storage location path where the database exists. Format: gs://bucket/path/to/database If unspecified, the database will be stored in the catalog location. The maximum length is 4000 characters.

string location_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
HiveDatabase.Builder

This builder for chaining.

clearName()

public HiveDatabase.Builder clearName()

Output only. The resource name. Format: projects/{project_id_or_number}/catalogs/{catalog_id}/databases/{database_id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
HiveDatabase.Builder

This builder for chaining.

clearParameters()

public HiveDatabase.Builder clearParameters()
Returns
Type Description
HiveDatabase.Builder

containsParameters(String key)

public boolean containsParameters(String key)

Optional. Stores the properties associated with the database. The maximum size is 2 MiB.

map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public HiveDatabase getDefaultInstanceForType()
Returns
Type Description
HiveDatabase

getDescription()

public String getDescription()

Optional. Stores the database 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 database 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
Overrides

getLocationUri()

public String getLocationUri()

Optional. The Cloud Storage location path where the database exists. Format: gs://bucket/path/to/database If unspecified, the database will be stored in the catalog location. The maximum length is 4000 characters.

string location_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The locationUri.

getLocationUriBytes()

public ByteString getLocationUriBytes()

Optional. The Cloud Storage location path where the database exists. Format: gs://bucket/path/to/database If unspecified, the database will be stored in the catalog location. The maximum length is 4000 characters.

string location_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for locationUri.

getMutableParameters() (deprecated)

public Map<String,String> getMutableParameters()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Output only. The resource name. Format: projects/{project_id_or_number}/catalogs/{catalog_id}/databases/{database_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}/databases/{database_id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getParameters() (deprecated)

public Map<String,String> getParameters()

Use #getParametersMap() instead.

Returns
Type Description
Map<String,String>

getParametersCount()

public int getParametersCount()

Optional. Stores the properties associated with the database. The maximum size is 2 MiB.

map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getParametersMap()

public Map<String,String> getParametersMap()

Optional. Stores the properties associated with the database. The maximum size is 2 MiB.

map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getParametersOrDefault(String key, String defaultValue)

public String getParametersOrDefault(String key, String defaultValue)

Optional. Stores the properties associated with the database. The maximum size is 2 MiB.

map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getParametersOrThrow(String key)

public String getParametersOrThrow(String key)

Optional. Stores the properties associated with the database. The maximum size is 2 MiB.

map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(HiveDatabase other)

public HiveDatabase.Builder mergeFrom(HiveDatabase other)
Parameter
Name Description
other HiveDatabase
Returns
Type Description
HiveDatabase.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public HiveDatabase.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HiveDatabase.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public HiveDatabase.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
HiveDatabase.Builder
Overrides

putAllParameters(Map<String,String> values)

public HiveDatabase.Builder putAllParameters(Map<String,String> values)

Optional. Stores the properties associated with the database. The maximum size is 2 MiB.

map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
HiveDatabase.Builder

putParameters(String key, String value)

public HiveDatabase.Builder putParameters(String key, String value)

Optional. Stores the properties associated with the database. The maximum size is 2 MiB.

map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
HiveDatabase.Builder

removeParameters(String key)

public HiveDatabase.Builder removeParameters(String key)

Optional. Stores the properties associated with the database. The maximum size is 2 MiB.

map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
HiveDatabase.Builder

setDescription(String value)

public HiveDatabase.Builder setDescription(String value)

Optional. Stores the database description. The maximum length is 4000 characters.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
HiveDatabase.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public HiveDatabase.Builder setDescriptionBytes(ByteString value)

Optional. Stores the database description. The maximum length is 4000 characters.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
HiveDatabase.Builder

This builder for chaining.

setLocationUri(String value)

public HiveDatabase.Builder setLocationUri(String value)

Optional. The Cloud Storage location path where the database exists. Format: gs://bucket/path/to/database If unspecified, the database will be stored in the catalog location. The maximum length is 4000 characters.

string location_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The locationUri to set.

Returns
Type Description
HiveDatabase.Builder

This builder for chaining.

setLocationUriBytes(ByteString value)

public HiveDatabase.Builder setLocationUriBytes(ByteString value)

Optional. The Cloud Storage location path where the database exists. Format: gs://bucket/path/to/database If unspecified, the database will be stored in the catalog location. The maximum length is 4000 characters.

string location_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for locationUri to set.

Returns
Type Description
HiveDatabase.Builder

This builder for chaining.

setName(String value)

public HiveDatabase.Builder setName(String value)

Output only. The resource name. Format: projects/{project_id_or_number}/catalogs/{catalog_id}/databases/{database_id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
HiveDatabase.Builder

This builder for chaining.

setNameBytes(ByteString value)

public HiveDatabase.Builder setNameBytes(ByteString value)

Output only. The resource name. Format: projects/{project_id_or_number}/catalogs/{catalog_id}/databases/{database_id}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
HiveDatabase.Builder

This builder for chaining.