Class UpdateDatabaseRequest.Builder (6.55.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateDatabaseRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateDatabaseRequest.Builder
Overrides

build()

public UpdateDatabaseRequest build()
Returns
TypeDescription
UpdateDatabaseRequest

buildPartial()

public UpdateDatabaseRequest buildPartial()
Returns
TypeDescription
UpdateDatabaseRequest

clear()

public UpdateDatabaseRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
UpdateDatabaseRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public UpdateDatabaseRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UpdateDatabaseRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateDatabaseRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
UpdateDatabaseRequest.Builder

clone()

public UpdateDatabaseRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
DatabaseOrBuilder

getDefaultInstanceForType()

public UpdateDatabaseRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateDatabaseRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueDatabase
Returns
TypeDescription
UpdateDatabaseRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateDatabaseRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateDatabaseRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UpdateDatabaseRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UpdateDatabaseRequest.Builder
Overrides

mergeFrom(UpdateDatabaseRequest other)

public UpdateDatabaseRequest.Builder mergeFrom(UpdateDatabaseRequest other)
Parameter
NameDescription
otherUpdateDatabaseRequest
Returns
TypeDescription
UpdateDatabaseRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateDatabaseRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
valueDatabase
Returns
TypeDescription
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
NameDescription
builderForValueDatabase.Builder
Returns
TypeDescription
UpdateDatabaseRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateDatabaseRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateDatabaseRequest.Builder
Overrides

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

public UpdateDatabaseRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateDatabaseRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateDatabaseRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateDatabaseRequest.Builder