Class HiveDatabase.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HiveDatabase.Builder>
com.google.cloud.biglake.hive.v1beta.HiveDatabase.Builder
- All Implemented Interfaces:
HiveDatabaseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- HiveDatabase
public static final class HiveDatabase.Builder
extends com.google.protobuf.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Output only.booleancontainsParameters(String key) Optional.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Deprecated.getName()Output only.com.google.protobuf.ByteStringOutput only.Deprecated.intOptional.Optional.getParametersOrDefault(String key, String defaultValue) Optional.Optional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(HiveDatabase other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllParameters(Map<String, String> values) Optional.putParameters(String key, String value) Optional.removeParameters(String key) Optional.setDescription(String value) Optional.setDescriptionBytes(com.google.protobuf.ByteString value) Optional.setLocationUri(String value) Optional.setLocationUriBytes(com.google.protobuf.ByteString value) Optional.Output only.setNameBytes(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<HiveDatabase.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<HiveDatabase.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<HiveDatabase.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<HiveDatabase.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<HiveDatabase.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<HiveDatabase.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<HiveDatabase.Builder>
-
mergeFrom
public HiveDatabase.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<HiveDatabase.Builder>- Throws:
IOException
-
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) = { ... }- Specified by:
getNamein interfaceHiveDatabaseOrBuilder- 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}string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getNameBytesin interfaceHiveDatabaseOrBuilder- Returns:
- The bytes for name.
-
setName
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) = { ... }- 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}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}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 database description. The maximum length is 4000 characters.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionin interfaceHiveDatabaseOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Optional. Stores the database description. The maximum length is 4000 characters.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionBytesin interfaceHiveDatabaseOrBuilder- Returns:
- The bytes for description.
-
setDescription
Optional. Stores the database 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 database description. The maximum length is 4000 characters.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDescriptionBytes
Optional. Stores the database 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
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];- Specified by:
getLocationUriin interfaceHiveDatabaseOrBuilder- Returns:
- The locationUri.
-
getLocationUriBytes
public com.google.protobuf.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];- Specified by:
getLocationUriBytesin interfaceHiveDatabaseOrBuilder- Returns:
- The bytes for locationUri.
-
setLocationUri
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];- Parameters:
value- The locationUri to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setLocationUriBytes
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];- Parameters:
value- The bytes for locationUri to set.- Returns:
- This builder for chaining.
-
getParametersCount
public int getParametersCount()Description copied from interface:HiveDatabaseOrBuilderOptional. Stores the properties associated with the database. The maximum size is 2 MiB.
map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getParametersCountin interfaceHiveDatabaseOrBuilder
-
containsParameters
Optional. Stores the properties associated with the database. The maximum size is 2 MiB.
map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsParametersin interfaceHiveDatabaseOrBuilder
-
getParameters
Deprecated.UsegetParametersMap()instead.- Specified by:
getParametersin interfaceHiveDatabaseOrBuilder
-
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];- Specified by:
getParametersMapin interfaceHiveDatabaseOrBuilder
-
getParametersOrDefault
Optional. Stores the properties associated with the database. The maximum size is 2 MiB.
map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getParametersOrDefaultin interfaceHiveDatabaseOrBuilder
-
getParametersOrThrow
Optional. Stores the properties associated with the database. The maximum size is 2 MiB.
map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getParametersOrThrowin interfaceHiveDatabaseOrBuilder
-
clearParameters
-
removeParameters
Optional. Stores the properties associated with the database. The maximum size is 2 MiB.
map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getMutableParameters
Deprecated.Use alternate mutation accessors instead. -
putParameters
Optional. Stores the properties associated with the database. The maximum size is 2 MiB.
map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL]; -
putAllParameters
Optional. Stores the properties associated with the database. The maximum size is 2 MiB.
map<string, string> parameters = 4 [(.google.api.field_behavior) = OPTIONAL];
-