Class CreateNodeset.Builder (0.8.0)

public static final class CreateNodeset.Builder extends GeneratedMessage.Builder<CreateNodeset.Builder> implements CreateNodesetOrBuilder

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

Protobuf type google.cloud.hypercomputecluster.v1.CreateNodeset

Static Methods

getDescriptor()

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

Methods

addAllNodesets(Iterable<String> values)

public CreateNodeset.Builder addAllNodesets(Iterable<String> values)

Output only. Name of the nodeset to create

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

Parameter
Name Description
values Iterable<String>

The nodesets to add.

Returns
Type Description
CreateNodeset.Builder

This builder for chaining.

addNodesets(String value)

public CreateNodeset.Builder addNodesets(String value)

Output only. Name of the nodeset to create

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

Parameter
Name Description
value String

The nodesets to add.

Returns
Type Description
CreateNodeset.Builder

This builder for chaining.

addNodesetsBytes(ByteString value)

public CreateNodeset.Builder addNodesetsBytes(ByteString value)

Output only. Name of the nodeset to create

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

Parameter
Name Description
value ByteString

The bytes of the nodesets to add.

Returns
Type Description
CreateNodeset.Builder

This builder for chaining.

build()

public CreateNodeset build()
Returns
Type Description
CreateNodeset

buildPartial()

public CreateNodeset buildPartial()
Returns
Type Description
CreateNodeset

clear()

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

clearNodesets()

public CreateNodeset.Builder clearNodesets()

Output only. Name of the nodeset to create

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

Returns
Type Description
CreateNodeset.Builder

This builder for chaining.

getDefaultInstanceForType()

public CreateNodeset getDefaultInstanceForType()
Returns
Type Description
CreateNodeset

getDescriptorForType()

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

getNodesets(int index)

public String getNodesets(int index)

Output only. Name of the nodeset to create

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The nodesets at the given index.

getNodesetsBytes(int index)

public ByteString getNodesetsBytes(int index)

Output only. Name of the nodeset to create

repeated string nodesets = 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 nodesets at the given index.

getNodesetsCount()

public int getNodesetsCount()

Output only. Name of the nodeset to create

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

Returns
Type Description
int

The count of nodesets.

getNodesetsList()

public ProtocolStringList getNodesetsList()

Output only. Name of the nodeset to create

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

Returns
Type Description
ProtocolStringList

A list containing the nodesets.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateNodeset other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setNodesets(int index, String value)

public CreateNodeset.Builder setNodesets(int index, String value)

Output only. Name of the nodeset to create

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

Parameters
Name Description
index int

The index to set the value at.

value String

The nodesets to set.

Returns
Type Description
CreateNodeset.Builder

This builder for chaining.