Class DeleteDatabaseRequest.Builder (3.17.0)

public static final class DeleteDatabaseRequest.Builder extends GeneratedMessageV3.Builder<DeleteDatabaseRequest.Builder> implements DeleteDatabaseRequestOrBuilder

The request for FirestoreAdmin.DeleteDatabase.

Protobuf type google.firestore.admin.v1.DeleteDatabaseRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeleteDatabaseRequest build()
Returns
TypeDescription
DeleteDatabaseRequest

buildPartial()

public DeleteDatabaseRequest buildPartial()
Returns
TypeDescription
DeleteDatabaseRequest

clear()

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

clearEtag()

public DeleteDatabaseRequest.Builder clearEtag()

The current etag of the Database. If an etag is provided and does not match the current etag of the database, deletion will be blocked and a FAILED_PRECONDITION error will be returned.

string etag = 3;

Returns
TypeDescription
DeleteDatabaseRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public DeleteDatabaseRequest.Builder clearName()

Required. A name of the form projects/{project_id}/databases/{database_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
DeleteDatabaseRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DeleteDatabaseRequest getDefaultInstanceForType()
Returns
TypeDescription
DeleteDatabaseRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEtag()

public String getEtag()

The current etag of the Database. If an etag is provided and does not match the current etag of the database, deletion will be blocked and a FAILED_PRECONDITION error will be returned.

string etag = 3;

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

The current etag of the Database. If an etag is provided and does not match the current etag of the database, deletion will be blocked and a FAILED_PRECONDITION error will be returned.

string etag = 3;

Returns
TypeDescription
ByteString

The bytes for etag.

getName()

public String getName()

Required. A name of the form projects/{project_id}/databases/{database_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. A name of the form projects/{project_id}/databases/{database_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DeleteDatabaseRequest other)

public DeleteDatabaseRequest.Builder mergeFrom(DeleteDatabaseRequest other)
Parameter
NameDescription
otherDeleteDatabaseRequest
Returns
TypeDescription
DeleteDatabaseRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEtag(String value)

public DeleteDatabaseRequest.Builder setEtag(String value)

The current etag of the Database. If an etag is provided and does not match the current etag of the database, deletion will be blocked and a FAILED_PRECONDITION error will be returned.

string etag = 3;

Parameter
NameDescription
valueString

The etag to set.

Returns
TypeDescription
DeleteDatabaseRequest.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public DeleteDatabaseRequest.Builder setEtagBytes(ByteString value)

The current etag of the Database. If an etag is provided and does not match the current etag of the database, deletion will be blocked and a FAILED_PRECONDITION error will be returned.

string etag = 3;

Parameter
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
DeleteDatabaseRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public DeleteDatabaseRequest.Builder setName(String value)

Required. A name of the form projects/{project_id}/databases/{database_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
DeleteDatabaseRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeleteDatabaseRequest.Builder setNameBytes(ByteString value)

Required. A name of the form projects/{project_id}/databases/{database_id}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
DeleteDatabaseRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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