Class CreateDatabaseMetadata.Builder (6.52.1)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateDatabaseMetadata build()
Returns
TypeDescription
CreateDatabaseMetadata

buildPartial()

public CreateDatabaseMetadata buildPartial()
Returns
TypeDescription
CreateDatabaseMetadata

clear()

public CreateDatabaseMetadata.Builder clear()
Returns
TypeDescription
CreateDatabaseMetadata.Builder
Overrides

clearDatabase()

public CreateDatabaseMetadata.Builder clearDatabase()

The database being created.

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

Returns
TypeDescription
CreateDatabaseMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateDatabaseMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CreateDatabaseMetadata.Builder
Overrides

clone()

public CreateDatabaseMetadata.Builder clone()
Returns
TypeDescription
CreateDatabaseMetadata.Builder
Overrides

getDatabase()

public String getDatabase()

The database being created.

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

Returns
TypeDescription
String

The database.

getDatabaseBytes()

public ByteString getDatabaseBytes()

The database being created.

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

Returns
TypeDescription
ByteString

The bytes for database.

getDefaultInstanceForType()

public CreateDatabaseMetadata getDefaultInstanceForType()
Returns
TypeDescription
CreateDatabaseMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CreateDatabaseMetadata other)

public CreateDatabaseMetadata.Builder mergeFrom(CreateDatabaseMetadata other)
Parameter
NameDescription
otherCreateDatabaseMetadata
Returns
TypeDescription
CreateDatabaseMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateDatabaseMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateDatabaseMetadata.Builder
Overrides

setDatabase(String value)

public CreateDatabaseMetadata.Builder setDatabase(String value)

The database being created.

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

Parameter
NameDescription
valueString

The database to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for database to set.

Returns
TypeDescription
CreateDatabaseMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateDatabaseMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateDatabaseMetadata.Builder
Overrides