Class Database.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Database.Builder>
com.google.cloud.bigquery.biglake.v1.Database.Builder
All Implemented Interfaces:
DatabaseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Database

public static final class Database.Builder extends com.google.protobuf.GeneratedMessage.Builder<Database.Builder> implements DatabaseOrBuilder
 Database is the container of tables.
 
Protobuf type google.cloud.bigquery.biglake.v1.Database
  • Method Details

    • getDescriptor

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

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

      public Database.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<Database.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<Database.Builder>
    • getDefaultInstanceForType

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

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

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

      public Database.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<Database.Builder>
    • mergeFrom

      public Database.Builder mergeFrom(Database other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Database.Builder>
    • mergeFrom

      public Database.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<Database.Builder>
      Throws:
      IOException
    • getOptionsCase

      public Database.OptionsCase getOptionsCase()
      Specified by:
      getOptionsCase in interface DatabaseOrBuilder
    • clearOptions

      public Database.Builder clearOptions()
    • hasHiveOptions

      public boolean hasHiveOptions()
       Options of a Hive database.
       
      .google.cloud.bigquery.biglake.v1.HiveDatabaseOptions hive_options = 7;
      Specified by:
      hasHiveOptions in interface DatabaseOrBuilder
      Returns:
      Whether the hiveOptions field is set.
    • getHiveOptions

      public HiveDatabaseOptions getHiveOptions()
       Options of a Hive database.
       
      .google.cloud.bigquery.biglake.v1.HiveDatabaseOptions hive_options = 7;
      Specified by:
      getHiveOptions in interface DatabaseOrBuilder
      Returns:
      The hiveOptions.
    • setHiveOptions

      public Database.Builder setHiveOptions(HiveDatabaseOptions value)
       Options of a Hive database.
       
      .google.cloud.bigquery.biglake.v1.HiveDatabaseOptions hive_options = 7;
    • setHiveOptions

      public Database.Builder setHiveOptions(HiveDatabaseOptions.Builder builderForValue)
       Options of a Hive database.
       
      .google.cloud.bigquery.biglake.v1.HiveDatabaseOptions hive_options = 7;
    • mergeHiveOptions

      public Database.Builder mergeHiveOptions(HiveDatabaseOptions value)
       Options of a Hive database.
       
      .google.cloud.bigquery.biglake.v1.HiveDatabaseOptions hive_options = 7;
    • clearHiveOptions

      public Database.Builder clearHiveOptions()
       Options of a Hive database.
       
      .google.cloud.bigquery.biglake.v1.HiveDatabaseOptions hive_options = 7;
    • getHiveOptionsBuilder

      public HiveDatabaseOptions.Builder getHiveOptionsBuilder()
       Options of a Hive database.
       
      .google.cloud.bigquery.biglake.v1.HiveDatabaseOptions hive_options = 7;
    • getHiveOptionsOrBuilder

      public HiveDatabaseOptionsOrBuilder getHiveOptionsOrBuilder()
       Options of a Hive database.
       
      .google.cloud.bigquery.biglake.v1.HiveDatabaseOptions hive_options = 7;
      Specified by:
      getHiveOptionsOrBuilder in interface DatabaseOrBuilder
    • getName

      public String getName()
       Output only. The resource name.
       Format:
       projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface DatabaseOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The resource name.
       Format:
       projects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{database_id}
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface DatabaseOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Database.Builder setName(String value)
       Output only. The resource name.
       Format:
       projects/{project_id_or_number}/locations/{location_id}/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 Database.Builder clearName()
       Output only. The resource name.
       Format:
       projects/{project_id_or_number}/locations/{location_id}/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 Database.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. The resource name.
       Format:
       projects/{project_id_or_number}/locations/{location_id}/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.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The creation time of the database.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface DatabaseOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The creation time of the database.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface DatabaseOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Database.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The creation time of the database.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Database.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The creation time of the database.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Database.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The creation time of the database.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Database.Builder clearCreateTime()
       Output only. The creation time of the database.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The creation time of the database.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The creation time of the database.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface DatabaseOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The last modification time of the database.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface DatabaseOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The last modification time of the database.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface DatabaseOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Database.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The last modification time of the database.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Database.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The last modification time of the database.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Database.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The last modification time of the database.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Database.Builder clearUpdateTime()
       Output only. The last modification time of the database.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The last modification time of the database.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The last modification time of the database.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface DatabaseOrBuilder
    • hasDeleteTime

      public boolean hasDeleteTime()
       Output only. The deletion time of the database. Only set after the database
       is deleted.
       
      .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasDeleteTime in interface DatabaseOrBuilder
      Returns:
      Whether the deleteTime field is set.
    • getDeleteTime

      public com.google.protobuf.Timestamp getDeleteTime()
       Output only. The deletion time of the database. Only set after the database
       is deleted.
       
      .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeleteTime in interface DatabaseOrBuilder
      Returns:
      The deleteTime.
    • setDeleteTime

      public Database.Builder setDeleteTime(com.google.protobuf.Timestamp value)
       Output only. The deletion time of the database. Only set after the database
       is deleted.
       
      .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setDeleteTime

      public Database.Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The deletion time of the database. Only set after the database
       is deleted.
       
      .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeDeleteTime

      public Database.Builder mergeDeleteTime(com.google.protobuf.Timestamp value)
       Output only. The deletion time of the database. Only set after the database
       is deleted.
       
      .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearDeleteTime

      public Database.Builder clearDeleteTime()
       Output only. The deletion time of the database. Only set after the database
       is deleted.
       
      .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDeleteTimeBuilder

      public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder()
       Output only. The deletion time of the database. Only set after the database
       is deleted.
       
      .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDeleteTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder()
       Output only. The deletion time of the database. Only set after the database
       is deleted.
       
      .google.protobuf.Timestamp delete_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeleteTimeOrBuilder in interface DatabaseOrBuilder
    • hasExpireTime

      public boolean hasExpireTime()
       Output only. The time when this database is considered expired. Only set
       after the database is deleted.
       
      .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasExpireTime in interface DatabaseOrBuilder
      Returns:
      Whether the expireTime field is set.
    • getExpireTime

      public com.google.protobuf.Timestamp getExpireTime()
       Output only. The time when this database is considered expired. Only set
       after the database is deleted.
       
      .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExpireTime in interface DatabaseOrBuilder
      Returns:
      The expireTime.
    • setExpireTime

      public Database.Builder setExpireTime(com.google.protobuf.Timestamp value)
       Output only. The time when this database is considered expired. Only set
       after the database is deleted.
       
      .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setExpireTime

      public Database.Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time when this database is considered expired. Only set
       after the database is deleted.
       
      .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeExpireTime

      public Database.Builder mergeExpireTime(com.google.protobuf.Timestamp value)
       Output only. The time when this database is considered expired. Only set
       after the database is deleted.
       
      .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearExpireTime

      public Database.Builder clearExpireTime()
       Output only. The time when this database is considered expired. Only set
       after the database is deleted.
       
      .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getExpireTimeBuilder

      public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder()
       Output only. The time when this database is considered expired. Only set
       after the database is deleted.
       
      .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getExpireTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
       Output only. The time when this database is considered expired. Only set
       after the database is deleted.
       
      .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExpireTimeOrBuilder in interface DatabaseOrBuilder
    • getTypeValue

      public int getTypeValue()
       The database type.
       
      .google.cloud.bigquery.biglake.v1.Database.Type type = 6;
      Specified by:
      getTypeValue in interface DatabaseOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public Database.Builder setTypeValue(int value)
       The database type.
       
      .google.cloud.bigquery.biglake.v1.Database.Type type = 6;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public Database.Type getType()
       The database type.
       
      .google.cloud.bigquery.biglake.v1.Database.Type type = 6;
      Specified by:
      getType in interface DatabaseOrBuilder
      Returns:
      The type.
    • setType

      public Database.Builder setType(Database.Type value)
       The database type.
       
      .google.cloud.bigquery.biglake.v1.Database.Type type = 6;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Database.Builder clearType()
       The database type.
       
      .google.cloud.bigquery.biglake.v1.Database.Type type = 6;
      Returns:
      This builder for chaining.