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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UpdateDatabaseRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public UpdateDatabaseRequest build()
buildPartial()
public UpdateDatabaseRequest buildPartial()
clear()
public UpdateDatabaseRequest.Builder clear()
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];
clearField(Descriptors.FieldDescriptor field)
public UpdateDatabaseRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public UpdateDatabaseRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
clone()
public UpdateDatabaseRequest.Builder clone()
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];
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];
getDefaultInstanceForType()
public UpdateDatabaseRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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];
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];
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()
Overrides
isInitialized()
public final boolean isInitialized()
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
|
public UpdateDatabaseRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public UpdateDatabaseRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeFrom(UpdateDatabaseRequest other)
public UpdateDatabaseRequest.Builder mergeFrom(UpdateDatabaseRequest other)
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UpdateDatabaseRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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];
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
|
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];
setField(Descriptors.FieldDescriptor field, Object value)
public UpdateDatabaseRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UpdateDatabaseRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UpdateDatabaseRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
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];
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
|