Class UpdatePartition.Builder (0.8.0)

public static final class UpdatePartition.Builder extends GeneratedMessage.Builder<UpdatePartition.Builder> implements UpdatePartitionOrBuilder

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

Protobuf type google.cloud.hypercomputecluster.v1.UpdatePartition

Static Methods

getDescriptor()

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

Methods

addAllPartitions(Iterable<String> values)

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

Output only. Name of the partition to update

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

Parameter
Name Description
values Iterable<String>

The partitions to add.

Returns
Type Description
UpdatePartition.Builder

This builder for chaining.

addPartitions(String value)

public UpdatePartition.Builder addPartitions(String value)

Output only. Name of the partition to update

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

Parameter
Name Description
value String

The partitions to add.

Returns
Type Description
UpdatePartition.Builder

This builder for chaining.

addPartitionsBytes(ByteString value)

public UpdatePartition.Builder addPartitionsBytes(ByteString value)

Output only. Name of the partition to update

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
UpdatePartition.Builder

This builder for chaining.

build()

public UpdatePartition build()
Returns
Type Description
UpdatePartition

buildPartial()

public UpdatePartition buildPartial()
Returns
Type Description
UpdatePartition

clear()

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

clearPartitions()

public UpdatePartition.Builder clearPartitions()

Output only. Name of the partition to update

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

Returns
Type Description
UpdatePartition.Builder

This builder for chaining.

getDefaultInstanceForType()

public UpdatePartition getDefaultInstanceForType()
Returns
Type Description
UpdatePartition

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 update

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 update

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 update

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 update

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(UpdatePartition other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setPartitions(int index, String value)

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

Output only. Name of the partition to update

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
UpdatePartition.Builder

This builder for chaining.