Class PerformMaintenanceQueuedResourceRequest.Builder (2.84.0)

public static final class PerformMaintenanceQueuedResourceRequest.Builder extends GeneratedMessage.Builder<PerformMaintenanceQueuedResourceRequest.Builder> implements PerformMaintenanceQueuedResourceRequestOrBuilder

Request for PerformMaintenanceQueuedResource.

Protobuf type google.cloud.tpu.v2alpha1.PerformMaintenanceQueuedResourceRequest

Static Methods

getDescriptor()

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

Methods

addAllNodeNames(Iterable<String> values)

public PerformMaintenanceQueuedResourceRequest.Builder addAllNodeNames(Iterable<String> values)

The names of the nodes to perform maintenance on.

repeated string node_names = 2;

Parameter
Name Description
values Iterable<String>

The nodeNames to add.

Returns
Type Description
PerformMaintenanceQueuedResourceRequest.Builder

This builder for chaining.

addNodeNames(String value)

public PerformMaintenanceQueuedResourceRequest.Builder addNodeNames(String value)

The names of the nodes to perform maintenance on.

repeated string node_names = 2;

Parameter
Name Description
value String

The nodeNames to add.

Returns
Type Description
PerformMaintenanceQueuedResourceRequest.Builder

This builder for chaining.

addNodeNamesBytes(ByteString value)

public PerformMaintenanceQueuedResourceRequest.Builder addNodeNamesBytes(ByteString value)

The names of the nodes to perform maintenance on.

repeated string node_names = 2;

Parameter
Name Description
value ByteString

The bytes of the nodeNames to add.

Returns
Type Description
PerformMaintenanceQueuedResourceRequest.Builder

This builder for chaining.

build()

public PerformMaintenanceQueuedResourceRequest build()
Returns
Type Description
PerformMaintenanceQueuedResourceRequest

buildPartial()

public PerformMaintenanceQueuedResourceRequest buildPartial()
Returns
Type Description
PerformMaintenanceQueuedResourceRequest

clear()

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

clearName()

public PerformMaintenanceQueuedResourceRequest.Builder clearName()

Required. The name of the QueuedResource which holds the nodes to perform maintenance on.

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

Returns
Type Description
PerformMaintenanceQueuedResourceRequest.Builder

This builder for chaining.

clearNodeNames()

public PerformMaintenanceQueuedResourceRequest.Builder clearNodeNames()

The names of the nodes to perform maintenance on.

repeated string node_names = 2;

Returns
Type Description
PerformMaintenanceQueuedResourceRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public PerformMaintenanceQueuedResourceRequest getDefaultInstanceForType()
Returns
Type Description
PerformMaintenanceQueuedResourceRequest

getDescriptorForType()

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

getName()

public String getName()

Required. The name of the QueuedResource which holds the nodes to perform maintenance on.

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 QueuedResource which holds the nodes to perform maintenance on.

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

Returns
Type Description
ByteString

The bytes for name.

getNodeNames(int index)

public String getNodeNames(int index)

The names of the nodes to perform maintenance on.

repeated string node_names = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The nodeNames at the given index.

getNodeNamesBytes(int index)

public ByteString getNodeNamesBytes(int index)

The names of the nodes to perform maintenance on.

repeated string node_names = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the nodeNames at the given index.

getNodeNamesCount()

public int getNodeNamesCount()

The names of the nodes to perform maintenance on.

repeated string node_names = 2;

Returns
Type Description
int

The count of nodeNames.

getNodeNamesList()

public ProtocolStringList getNodeNamesList()

The names of the nodes to perform maintenance on.

repeated string node_names = 2;

Returns
Type Description
ProtocolStringList

A list containing the nodeNames.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PerformMaintenanceQueuedResourceRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public PerformMaintenanceQueuedResourceRequest.Builder setName(String value)

Required. The name of the QueuedResource which holds the nodes to perform maintenance on.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
PerformMaintenanceQueuedResourceRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public PerformMaintenanceQueuedResourceRequest.Builder setNameBytes(ByteString value)

Required. The name of the QueuedResource which holds the nodes to perform maintenance on.

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

This builder for chaining.

setNodeNames(int index, String value)

public PerformMaintenanceQueuedResourceRequest.Builder setNodeNames(int index, String value)

The names of the nodes to perform maintenance on.

repeated string node_names = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The nodeNames to set.

Returns
Type Description
PerformMaintenanceQueuedResourceRequest.Builder

This builder for chaining.