Class DeletePartition.Builder (0.8.0)

public static final class DeletePartition.Builder extends GeneratedMessage.Builder<DeletePartition.Builder> implements DeletePartitionOrBuilder

When set in OperationStep, indicates that a partition should be deleted.

Protobuf type google.cloud.hypercomputecluster.v1.DeletePartition

Static Methods

getDescriptor()

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

Methods

addAllPartitions(Iterable<String> values)

public DeletePartition.Builder addAllPartitions(Iterable<String> values)

Output only. Name of the partition to delete

repeated string partitions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The partitions to add.

Returns
Type Description
DeletePartition.Builder

This builder for chaining.

addPartitions(String value)

public DeletePartition.Builder addPartitions(String value)

Output only. Name of the partition to delete

repeated string partitions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The partitions to add.

Returns
Type Description
DeletePartition.Builder

This builder for chaining.

addPartitionsBytes(ByteString value)

public DeletePartition.Builder addPartitionsBytes(ByteString value)

Output only. Name of the partition to delete

repeated string partitions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the partitions to add.

Returns
Type Description
DeletePartition.Builder

This builder for chaining.

build()

public DeletePartition build()
Returns
Type Description
DeletePartition

buildPartial()

public DeletePartition buildPartial()
Returns
Type Description
DeletePartition

clear()

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

clearPartitions()

public DeletePartition.Builder clearPartitions()

Output only. Name of the partition to delete

repeated string partitions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeletePartition.Builder

This builder for chaining.

getDefaultInstanceForType()

public DeletePartition getDefaultInstanceForType()
Returns
Type Description
DeletePartition

getDescriptorForType()

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

getPartitions(int index)

public String getPartitions(int index)

Output only. Name of the partition to delete

repeated string partitions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The partitions at the given index.

getPartitionsBytes(int index)

public ByteString getPartitionsBytes(int index)

Output only. Name of the partition to delete

repeated string partitions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the partitions at the given index.

getPartitionsCount()

public int getPartitionsCount()

Output only. Name of the partition to delete

repeated string partitions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of partitions.

getPartitionsList()

public ProtocolStringList getPartitionsList()

Output only. Name of the partition to delete

repeated string partitions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the partitions.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DeletePartition other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setPartitions(int index, String value)

public DeletePartition.Builder setPartitions(int index, String value)

Output only. Name of the partition to delete

repeated string partitions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The partitions to set.

Returns
Type Description
DeletePartition.Builder

This builder for chaining.