Class HiveDatabase (0.76.0)

public final class HiveDatabase extends GeneratedMessage 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 Fields

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

LOCATION_URI_FIELD_NUMBER

public static final int LOCATION_URI_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PARAMETERS_FIELD_NUMBER

public static final int PARAMETERS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static HiveDatabase getDefaultInstance()
Returns
Type Description
HiveDatabase

getDescriptor()

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

newBuilder()

public static HiveDatabase.Builder newBuilder()
Returns
Type Description
HiveDatabase.Builder

newBuilder(HiveDatabase prototype)

public static HiveDatabase.Builder newBuilder(HiveDatabase prototype)
Parameter
Name Description
prototype HiveDatabase
Returns
Type Description
HiveDatabase.Builder

parseDelimitedFrom(InputStream input)

public static HiveDatabase parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HiveDatabase
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HiveDatabase parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HiveDatabase
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static HiveDatabase parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
HiveDatabase
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static HiveDatabase parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HiveDatabase
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static HiveDatabase parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
HiveDatabase
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static HiveDatabase parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HiveDatabase
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static HiveDatabase parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
HiveDatabase
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static HiveDatabase parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HiveDatabase
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static HiveDatabase parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HiveDatabase
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HiveDatabase parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HiveDatabase
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static HiveDatabase parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
HiveDatabase
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static HiveDatabase parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HiveDatabase
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<HiveDatabase> parser()
Returns
Type Description
Parser<HiveDatabase>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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.

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.

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

getParserForType()

public Parser<HiveDatabase> getParserForType()
Returns
Type Description
Parser<HiveDatabase>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

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.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected HiveDatabase.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
HiveDatabase.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException