Class CreatePartition.Builder (0.8.0)

public static final class CreatePartition.Builder extends GeneratedMessage.Builder<CreatePartition.Builder> implements CreatePartitionOrBuilder

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

Protobuf type google.cloud.hypercomputecluster.v1.CreatePartition

Static Methods

getDescriptor()

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

Methods

addAllPartitions(Iterable<String> values)

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

Output only. Name of the partition to create

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

Parameter
Name Description
values Iterable<String>

The partitions to add.

Returns
Type Description
CreatePartition.Builder

This builder for chaining.

addPartitions(String value)

public CreatePartition.Builder addPartitions(String value)

Output only. Name of the partition to create

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

Parameter
Name Description
value String

The partitions to add.

Returns
Type Description
CreatePartition.Builder

This builder for chaining.

addPartitionsBytes(ByteString value)

public CreatePartition.Builder addPartitionsBytes(ByteString value)

Output only. Name of the partition to create

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

This builder for chaining.

build()

public CreatePartition build()
Returns
Type Description
CreatePartition

buildPartial()

public CreatePartition buildPartial()
Returns
Type Description
CreatePartition

clear()

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

clearPartitions()

public CreatePartition.Builder clearPartitions()

Output only. Name of the partition to create

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

Returns
Type Description
CreatePartition.Builder

This builder for chaining.

getDefaultInstanceForType()

public CreatePartition getDefaultInstanceForType()
Returns
Type Description
CreatePartition

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 create

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 create

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 create

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 create

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setPartitions(int index, String value)

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

Output only. Name of the partition to create

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

This builder for chaining.