Class QueuedResource.Tpu.Builder (2.47.0)

public static final class QueuedResource.Tpu.Builder extends GeneratedMessageV3.Builder<QueuedResource.Tpu.Builder> implements QueuedResource.TpuOrBuilder

Details of the TPU resource(s) being requested.

Protobuf type google.cloud.tpu.v2alpha1.QueuedResource.Tpu

Static Methods

getDescriptor()

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

Methods

addAllNodeSpec(Iterable<? extends QueuedResource.Tpu.NodeSpec> values)

public QueuedResource.Tpu.Builder addAllNodeSpec(Iterable<? extends QueuedResource.Tpu.NodeSpec> values)

The TPU node(s) being requested.

repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec>
Returns
Type Description
QueuedResource.Tpu.Builder

addNodeSpec(QueuedResource.Tpu.NodeSpec value)

public QueuedResource.Tpu.Builder addNodeSpec(QueuedResource.Tpu.NodeSpec value)

The TPU node(s) being requested.

repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1;

Parameter
Name Description
value QueuedResource.Tpu.NodeSpec
Returns
Type Description
QueuedResource.Tpu.Builder

addNodeSpec(QueuedResource.Tpu.NodeSpec.Builder builderForValue)

public QueuedResource.Tpu.Builder addNodeSpec(QueuedResource.Tpu.NodeSpec.Builder builderForValue)

The TPU node(s) being requested.

repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1;

Parameter
Name Description
builderForValue QueuedResource.Tpu.NodeSpec.Builder
Returns
Type Description
QueuedResource.Tpu.Builder

addNodeSpec(int index, QueuedResource.Tpu.NodeSpec value)

public QueuedResource.Tpu.Builder addNodeSpec(int index, QueuedResource.Tpu.NodeSpec value)

The TPU node(s) being requested.

repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1;

Parameters
Name Description
index int
value QueuedResource.Tpu.NodeSpec
Returns
Type Description
QueuedResource.Tpu.Builder

addNodeSpec(int index, QueuedResource.Tpu.NodeSpec.Builder builderForValue)

public QueuedResource.Tpu.Builder addNodeSpec(int index, QueuedResource.Tpu.NodeSpec.Builder builderForValue)

The TPU node(s) being requested.

repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1;

Parameters
Name Description
index int
builderForValue QueuedResource.Tpu.NodeSpec.Builder
Returns
Type Description
QueuedResource.Tpu.Builder

addNodeSpecBuilder()

public QueuedResource.Tpu.NodeSpec.Builder addNodeSpecBuilder()

The TPU node(s) being requested.

repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1;

Returns
Type Description
QueuedResource.Tpu.NodeSpec.Builder

addNodeSpecBuilder(int index)

public QueuedResource.Tpu.NodeSpec.Builder addNodeSpecBuilder(int index)

The TPU node(s) being requested.

repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1;

Parameter
Name Description
index int
Returns
Type Description
QueuedResource.Tpu.NodeSpec.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QueuedResource.Tpu.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
QueuedResource.Tpu.Builder
Overrides

build()

public QueuedResource.Tpu build()
Returns
Type Description
QueuedResource.Tpu

buildPartial()

public QueuedResource.Tpu buildPartial()
Returns
Type Description
QueuedResource.Tpu

clear()

public QueuedResource.Tpu.Builder clear()
Returns
Type Description
QueuedResource.Tpu.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public QueuedResource.Tpu.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
QueuedResource.Tpu.Builder
Overrides

clearNodeSpec()

public QueuedResource.Tpu.Builder clearNodeSpec()

The TPU node(s) being requested.

repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1;

Returns
Type Description
QueuedResource.Tpu.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public QueuedResource.Tpu.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
QueuedResource.Tpu.Builder
Overrides

clone()

public QueuedResource.Tpu.Builder clone()
Returns
Type Description
QueuedResource.Tpu.Builder
Overrides

getDefaultInstanceForType()

public QueuedResource.Tpu getDefaultInstanceForType()
Returns
Type Description
QueuedResource.Tpu

getDescriptorForType()

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

getNodeSpec(int index)

public QueuedResource.Tpu.NodeSpec getNodeSpec(int index)

The TPU node(s) being requested.

repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1;

Parameter
Name Description
index int
Returns
Type Description
QueuedResource.Tpu.NodeSpec

getNodeSpecBuilder(int index)

public QueuedResource.Tpu.NodeSpec.Builder getNodeSpecBuilder(int index)

The TPU node(s) being requested.

repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1;

Parameter
Name Description
index int
Returns
Type Description
QueuedResource.Tpu.NodeSpec.Builder

getNodeSpecBuilderList()

public List<QueuedResource.Tpu.NodeSpec.Builder> getNodeSpecBuilderList()

The TPU node(s) being requested.

repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1;

Returns
Type Description
List<Builder>

getNodeSpecCount()

public int getNodeSpecCount()

The TPU node(s) being requested.

repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1;

Returns
Type Description
int

getNodeSpecList()

public List<QueuedResource.Tpu.NodeSpec> getNodeSpecList()

The TPU node(s) being requested.

repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1;

Returns
Type Description
List<NodeSpec>

getNodeSpecOrBuilder(int index)

public QueuedResource.Tpu.NodeSpecOrBuilder getNodeSpecOrBuilder(int index)

The TPU node(s) being requested.

repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1;

Parameter
Name Description
index int
Returns
Type Description
QueuedResource.Tpu.NodeSpecOrBuilder

getNodeSpecOrBuilderList()

public List<? extends QueuedResource.Tpu.NodeSpecOrBuilder> getNodeSpecOrBuilderList()

The TPU node(s) being requested.

repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1;

Returns
Type Description
List<? extends com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpecOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(QueuedResource.Tpu other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QueuedResource.Tpu.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QueuedResource.Tpu.Builder
Overrides

removeNodeSpec(int index)

public QueuedResource.Tpu.Builder removeNodeSpec(int index)

The TPU node(s) being requested.

repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1;

Parameter
Name Description
index int
Returns
Type Description
QueuedResource.Tpu.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public QueuedResource.Tpu.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
QueuedResource.Tpu.Builder
Overrides

setNodeSpec(int index, QueuedResource.Tpu.NodeSpec value)

public QueuedResource.Tpu.Builder setNodeSpec(int index, QueuedResource.Tpu.NodeSpec value)

The TPU node(s) being requested.

repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1;

Parameters
Name Description
index int
value QueuedResource.Tpu.NodeSpec
Returns
Type Description
QueuedResource.Tpu.Builder

setNodeSpec(int index, QueuedResource.Tpu.NodeSpec.Builder builderForValue)

public QueuedResource.Tpu.Builder setNodeSpec(int index, QueuedResource.Tpu.NodeSpec.Builder builderForValue)

The TPU node(s) being requested.

repeated .google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec node_spec = 1;

Parameters
Name Description
index int
builderForValue QueuedResource.Tpu.NodeSpec.Builder
Returns
Type Description
QueuedResource.Tpu.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public QueuedResource.Tpu.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
QueuedResource.Tpu.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final QueuedResource.Tpu.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QueuedResource.Tpu.Builder
Overrides