Class DeleteInstancePartitionRequest.Builder (6.108.0)

public static final class DeleteInstancePartitionRequest.Builder extends GeneratedMessage.Builder<DeleteInstancePartitionRequest.Builder> implements DeleteInstancePartitionRequestOrBuilder

The request for DeleteInstancePartition.

Protobuf type google.spanner.admin.instance.v1.DeleteInstancePartitionRequest

Static Methods

getDescriptor()

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

Methods

build()

public DeleteInstancePartitionRequest build()
Returns
Type Description
DeleteInstancePartitionRequest

buildPartial()

public DeleteInstancePartitionRequest buildPartial()
Returns
Type Description
DeleteInstancePartitionRequest

clear()

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

clearEtag()

public DeleteInstancePartitionRequest.Builder clearEtag()

Optional. If not empty, the API only deletes the instance partition when the etag provided matches the current status of the requested instance partition. Otherwise, deletes the instance partition without checking the current status of the requested instance partition.

string etag = 2;

Returns
Type Description
DeleteInstancePartitionRequest.Builder

This builder for chaining.

clearName()

public DeleteInstancePartitionRequest.Builder clearName()

Required. The name of the instance partition to be deleted. Values are of the form projects/{project}/instances/{instance}/instancePartitions/{instance_partition}

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

Returns
Type Description
DeleteInstancePartitionRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public DeleteInstancePartitionRequest getDefaultInstanceForType()
Returns
Type Description
DeleteInstancePartitionRequest

getDescriptorForType()

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

getEtag()

public String getEtag()

Optional. If not empty, the API only deletes the instance partition when the etag provided matches the current status of the requested instance partition. Otherwise, deletes the instance partition without checking the current status of the requested instance partition.

string etag = 2;

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Optional. If not empty, the API only deletes the instance partition when the etag provided matches the current status of the requested instance partition. Otherwise, deletes the instance partition without checking the current status of the requested instance partition.

string etag = 2;

Returns
Type Description
ByteString

The bytes for etag.

getName()

public String getName()

Required. The name of the instance partition to be deleted. Values are of the form projects/{project}/instances/{instance}/instancePartitions/{instance_partition}

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the instance partition to be deleted. Values are of the form projects/{project}/instances/{instance}/instancePartitions/{instance_partition}

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(DeleteInstancePartitionRequest other)

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

setEtag(String value)

public DeleteInstancePartitionRequest.Builder setEtag(String value)

Optional. If not empty, the API only deletes the instance partition when the etag provided matches the current status of the requested instance partition. Otherwise, deletes the instance partition without checking the current status of the requested instance partition.

string etag = 2;

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
DeleteInstancePartitionRequest.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public DeleteInstancePartitionRequest.Builder setEtagBytes(ByteString value)

Optional. If not empty, the API only deletes the instance partition when the etag provided matches the current status of the requested instance partition. Otherwise, deletes the instance partition without checking the current status of the requested instance partition.

string etag = 2;

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
DeleteInstancePartitionRequest.Builder

This builder for chaining.

setName(String value)

public DeleteInstancePartitionRequest.Builder setName(String value)

Required. The name of the instance partition to be deleted. Values are of the form projects/{project}/instances/{instance}/instancePartitions/{instance_partition}

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DeleteInstancePartitionRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeleteInstancePartitionRequest.Builder setNameBytes(ByteString value)

Required. The name of the instance partition to be deleted. Values are of the form projects/{project}/instances/{instance}/instancePartitions/{instance_partition}

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DeleteInstancePartitionRequest.Builder

This builder for chaining.