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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<HiveDatabase.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<HiveDatabase.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<HiveDatabase.Builder>
    • clear

      public HiveDatabase.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<HiveDatabase.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<HiveDatabase.Builder>
    • getDefaultInstanceForType

      public HiveDatabase getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public HiveDatabase build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public HiveDatabase buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public HiveDatabase.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<HiveDatabase.Builder>
    • mergeFrom

      public HiveDatabase.Builder mergeFrom(HiveDatabase other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<HiveDatabase.Builder>
      Throws:
      IOException
    • 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) = { ... }
      Specified by:
      getName in interface HiveDatabaseOrBuilder
      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:
      getNameBytes in interface HiveDatabaseOrBuilder
      Returns:
      The bytes for name.
    • setName

      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) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      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:
      This builder for chaining.
    • setNameBytes

      public HiveDatabase.Builder setNameBytes(com.google.protobuf.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) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Optional. Stores the database description.
       The maximum length is 4000 characters.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface HiveDatabaseOrBuilder
      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:
      getDescriptionBytes in interface HiveDatabaseOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      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];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setDescriptionBytes

      public HiveDatabase.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       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

      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];
      Specified by:
      getLocationUri in interface HiveDatabaseOrBuilder
      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:
      getLocationUriBytes in interface HiveDatabaseOrBuilder
      Returns:
      The bytes for locationUri.
    • setLocationUri

      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];
      Parameters:
      value - The locationUri to set.
      Returns:
      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:
      This builder for chaining.
    • setLocationUriBytes

      public HiveDatabase.Builder setLocationUriBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for locationUri to set.
      Returns:
      This builder for chaining.
    • getParametersCount

      public int getParametersCount()
      Description copied from interface: HiveDatabaseOrBuilder
       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:
      getParametersCount in interface HiveDatabaseOrBuilder
    • containsParameters

      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];
      Specified by:
      containsParameters in interface HiveDatabaseOrBuilder
    • getParameters

      @Deprecated public Map<String,String> getParameters()
      Deprecated.
      Use getParametersMap() instead.
      Specified by:
      getParameters in interface HiveDatabaseOrBuilder
    • 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];
      Specified by:
      getParametersMap in interface HiveDatabaseOrBuilder
    • getParametersOrDefault

      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];
      Specified by:
      getParametersOrDefault in interface HiveDatabaseOrBuilder
    • getParametersOrThrow

      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];
      Specified by:
      getParametersOrThrow in interface HiveDatabaseOrBuilder
    • clearParameters

      public HiveDatabase.Builder clearParameters()
    • removeParameters

      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];
    • getMutableParameters

      @Deprecated public Map<String,String> getMutableParameters()
      Deprecated.
      Use alternate mutation accessors instead.
    • putParameters

      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];
    • putAllParameters

      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];