Class CreateDatabaseMetadata.Builder (6.66.0)

public static final class CreateDatabaseMetadata.Builder extends GeneratedMessageV3.Builder<CreateDatabaseMetadata.Builder> implements CreateDatabaseMetadataOrBuilder

Metadata type for the operation returned by CreateDatabase.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateDatabaseMetadata build()
Returns
Type Description
CreateDatabaseMetadata

buildPartial()

public CreateDatabaseMetadata buildPartial()
Returns
Type Description
CreateDatabaseMetadata

clear()

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

clearDatabase()

public CreateDatabaseMetadata.Builder clearDatabase()

The database being created.

string database = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
CreateDatabaseMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDatabase()

public String getDatabase()

The database being created.

string database = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The database.

getDatabaseBytes()

public ByteString getDatabaseBytes()

The database being created.

string database = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for database.

getDefaultInstanceForType()

public CreateDatabaseMetadata getDefaultInstanceForType()
Returns
Type Description
CreateDatabaseMetadata

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CreateDatabaseMetadata other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDatabase(String value)

public CreateDatabaseMetadata.Builder setDatabase(String value)

The database being created.

string database = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The database to set.

Returns
Type Description
CreateDatabaseMetadata.Builder

This builder for chaining.

setDatabaseBytes(ByteString value)

public CreateDatabaseMetadata.Builder setDatabaseBytes(ByteString value)

The database being created.

string database = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for database to set.

Returns
Type Description
CreateDatabaseMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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