Class QueuedResource.Tpu.Builder (2.37.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpec>
Returns
TypeDescription
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
NameDescription
valueQueuedResource.Tpu.NodeSpec
Returns
TypeDescription
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
NameDescription
builderForValueQueuedResource.Tpu.NodeSpec.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueQueuedResource.Tpu.NodeSpec
Returns
TypeDescription
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
NameDescription
indexint
builderForValueQueuedResource.Tpu.NodeSpec.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
QueuedResource.Tpu.NodeSpec.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QueuedResource.Tpu.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
QueuedResource.Tpu.Builder
Overrides

build()

public QueuedResource.Tpu build()
Returns
TypeDescription
QueuedResource.Tpu

buildPartial()

public QueuedResource.Tpu buildPartial()
Returns
TypeDescription
QueuedResource.Tpu

clear()

public QueuedResource.Tpu.Builder clear()
Returns
TypeDescription
QueuedResource.Tpu.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public QueuedResource.Tpu.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
QueuedResource.Tpu.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public QueuedResource.Tpu.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
QueuedResource.Tpu.Builder
Overrides

clone()

public QueuedResource.Tpu.Builder clone()
Returns
TypeDescription
QueuedResource.Tpu.Builder
Overrides

getDefaultInstanceForType()

public QueuedResource.Tpu getDefaultInstanceForType()
Returns
TypeDescription
QueuedResource.Tpu

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getNodeSpecCount()

public int getNodeSpecCount()

The TPU node(s) being requested.

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

Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu.NodeSpecOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(QueuedResource.Tpu other)

public QueuedResource.Tpu.Builder mergeFrom(QueuedResource.Tpu other)
Parameter
NameDescription
otherQueuedResource.Tpu
Returns
TypeDescription
QueuedResource.Tpu.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public QueuedResource.Tpu.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueuedResource.Tpu.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public QueuedResource.Tpu.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
QueuedResource.Tpu.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QueuedResource.Tpu.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
QueuedResource.Tpu.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public QueuedResource.Tpu.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueQueuedResource.Tpu.NodeSpec
Returns
TypeDescription
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
NameDescription
indexint
builderForValueQueuedResource.Tpu.NodeSpec.Builder
Returns
TypeDescription
QueuedResource.Tpu.Builder

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

public QueuedResource.Tpu.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
QueuedResource.Tpu.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final QueuedResource.Tpu.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
QueuedResource.Tpu.Builder
Overrides