Class UpdateDatabaseRequest.Builder (6.83.0)

public static final class UpdateDatabaseRequest.Builder extends GeneratedMessageV3.Builder<UpdateDatabaseRequest.Builder> implements UpdateDatabaseRequestOrBuilder

The request for UpdateDatabase.

Protobuf type google.spanner.admin.database.v1.UpdateDatabaseRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateDatabaseRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateDatabaseRequest.Builder
Overrides

build()

public UpdateDatabaseRequest build()
Returns
Type Description
UpdateDatabaseRequest

buildPartial()

public UpdateDatabaseRequest buildPartial()
Returns
Type Description
UpdateDatabaseRequest

clear()

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

clearDatabase()

public UpdateDatabaseRequest.Builder clearDatabase()

Required. The database to update. The name field of the database is of the form projects/<project>/instances/<instance>/databases/<database>.

.google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateDatabaseRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public UpdateDatabaseRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpdateDatabaseRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateDatabaseRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpdateDatabaseRequest.Builder
Overrides

clearUpdateMask()

public UpdateDatabaseRequest.Builder clearUpdateMask()

Required. The list of fields to update. Currently, only enable_drop_protection field can be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateDatabaseRequest.Builder

clone()

public UpdateDatabaseRequest.Builder clone()
Returns
Type Description
UpdateDatabaseRequest.Builder
Overrides

getDatabase()

public Database getDatabase()

Required. The database to update. The name field of the database is of the form projects/<project>/instances/<instance>/databases/<database>.

.google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Database

The database.

getDatabaseBuilder()

public Database.Builder getDatabaseBuilder()

Required. The database to update. The name field of the database is of the form projects/<project>/instances/<instance>/databases/<database>.

.google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Database.Builder

getDatabaseOrBuilder()

public DatabaseOrBuilder getDatabaseOrBuilder()

Required. The database to update. The name field of the database is of the form projects/<project>/instances/<instance>/databases/<database>.

.google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DatabaseOrBuilder

getDefaultInstanceForType()

public UpdateDatabaseRequest getDefaultInstanceForType()
Returns
Type Description
UpdateDatabaseRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getUpdateMask()

public FieldMask getUpdateMask()

Required. The list of fields to update. Currently, only enable_drop_protection field can be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. The list of fields to update. Currently, only enable_drop_protection field can be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. The list of fields to update. Currently, only enable_drop_protection field can be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMaskOrBuilder

hasDatabase()

public boolean hasDatabase()

Required. The database to update. The name field of the database is of the form projects/<project>/instances/<instance>/databases/<database>.

.google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the database field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. The list of fields to update. Currently, only enable_drop_protection field can be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDatabase(Database value)

public UpdateDatabaseRequest.Builder mergeDatabase(Database value)

Required. The database to update. The name field of the database is of the form projects/<project>/instances/<instance>/databases/<database>.

.google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Database
Returns
Type Description
UpdateDatabaseRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(UpdateDatabaseRequest other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateDatabaseRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateDatabaseRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public UpdateDatabaseRequest.Builder mergeUpdateMask(FieldMask value)

Required. The list of fields to update. Currently, only enable_drop_protection field can be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateDatabaseRequest.Builder

setDatabase(Database value)

public UpdateDatabaseRequest.Builder setDatabase(Database value)

Required. The database to update. The name field of the database is of the form projects/<project>/instances/<instance>/databases/<database>.

.google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Database
Returns
Type Description
UpdateDatabaseRequest.Builder

setDatabase(Database.Builder builderForValue)

public UpdateDatabaseRequest.Builder setDatabase(Database.Builder builderForValue)

Required. The database to update. The name field of the database is of the form projects/<project>/instances/<instance>/databases/<database>.

.google.spanner.admin.database.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Database.Builder
Returns
Type Description
UpdateDatabaseRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateDatabaseRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateDatabaseRequest.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UpdateDatabaseRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateDatabaseRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateDatabaseRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateDatabaseRequest.Builder
Overrides

setUpdateMask(FieldMask value)

public UpdateDatabaseRequest.Builder setUpdateMask(FieldMask value)

Required. The list of fields to update. Currently, only enable_drop_protection field can be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateDatabaseRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateDatabaseRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. The list of fields to update. Currently, only enable_drop_protection field can be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateDatabaseRequest.Builder