Class AcceleratorType.Builder (2.29.0)

public static final class AcceleratorType.Builder extends GeneratedMessageV3.Builder<AcceleratorType.Builder> implements AcceleratorTypeOrBuilder

A accelerator type that a Node can be configured with.

Protobuf type google.cloud.tpu.v2.AcceleratorType

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAcceleratorConfigs(AcceleratorConfig value)

public AcceleratorType.Builder addAcceleratorConfigs(AcceleratorConfig value)

The accelerator config.

repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;

Parameter
NameDescription
valueAcceleratorConfig
Returns
TypeDescription
AcceleratorType.Builder

addAcceleratorConfigs(AcceleratorConfig.Builder builderForValue)

public AcceleratorType.Builder addAcceleratorConfigs(AcceleratorConfig.Builder builderForValue)

The accelerator config.

repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;

Parameter
NameDescription
builderForValueAcceleratorConfig.Builder
Returns
TypeDescription
AcceleratorType.Builder

addAcceleratorConfigs(int index, AcceleratorConfig value)

public AcceleratorType.Builder addAcceleratorConfigs(int index, AcceleratorConfig value)

The accelerator config.

repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;

Parameters
NameDescription
indexint
valueAcceleratorConfig
Returns
TypeDescription
AcceleratorType.Builder

addAcceleratorConfigs(int index, AcceleratorConfig.Builder builderForValue)

public AcceleratorType.Builder addAcceleratorConfigs(int index, AcceleratorConfig.Builder builderForValue)

The accelerator config.

repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;

Parameters
NameDescription
indexint
builderForValueAcceleratorConfig.Builder
Returns
TypeDescription
AcceleratorType.Builder

addAcceleratorConfigsBuilder()

public AcceleratorConfig.Builder addAcceleratorConfigsBuilder()

The accelerator config.

repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;

Returns
TypeDescription
AcceleratorConfig.Builder

addAcceleratorConfigsBuilder(int index)

public AcceleratorConfig.Builder addAcceleratorConfigsBuilder(int index)

The accelerator config.

repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfig.Builder

addAllAcceleratorConfigs(Iterable<? extends AcceleratorConfig> values)

public AcceleratorType.Builder addAllAcceleratorConfigs(Iterable<? extends AcceleratorConfig> values)

The accelerator config.

repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.tpu.v2.AcceleratorConfig>
Returns
TypeDescription
AcceleratorType.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AcceleratorType build()
Returns
TypeDescription
AcceleratorType

buildPartial()

public AcceleratorType buildPartial()
Returns
TypeDescription
AcceleratorType

clear()

public AcceleratorType.Builder clear()
Returns
TypeDescription
AcceleratorType.Builder
Overrides

clearAcceleratorConfigs()

public AcceleratorType.Builder clearAcceleratorConfigs()

The accelerator config.

repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;

Returns
TypeDescription
AcceleratorType.Builder

clearField(Descriptors.FieldDescriptor field)

public AcceleratorType.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AcceleratorType.Builder
Overrides

clearName()

public AcceleratorType.Builder clearName()

The resource name.

string name = 1;

Returns
TypeDescription
AcceleratorType.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearType()

public AcceleratorType.Builder clearType()

The accelerator type.

string type = 2;

Returns
TypeDescription
AcceleratorType.Builder

This builder for chaining.

clone()

public AcceleratorType.Builder clone()
Returns
TypeDescription
AcceleratorType.Builder
Overrides

getAcceleratorConfigs(int index)

public AcceleratorConfig getAcceleratorConfigs(int index)

The accelerator config.

repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfig

getAcceleratorConfigsBuilder(int index)

public AcceleratorConfig.Builder getAcceleratorConfigsBuilder(int index)

The accelerator config.

repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfig.Builder

getAcceleratorConfigsBuilderList()

public List<AcceleratorConfig.Builder> getAcceleratorConfigsBuilderList()

The accelerator config.

repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;

Returns
TypeDescription
List<Builder>

getAcceleratorConfigsCount()

public int getAcceleratorConfigsCount()

The accelerator config.

repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;

Returns
TypeDescription
int

getAcceleratorConfigsList()

public List<AcceleratorConfig> getAcceleratorConfigsList()

The accelerator config.

repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;

Returns
TypeDescription
List<AcceleratorConfig>

getAcceleratorConfigsOrBuilder(int index)

public AcceleratorConfigOrBuilder getAcceleratorConfigsOrBuilder(int index)

The accelerator config.

repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfigOrBuilder

getAcceleratorConfigsOrBuilderList()

public List<? extends AcceleratorConfigOrBuilder> getAcceleratorConfigsOrBuilderList()

The accelerator config.

repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;

Returns
TypeDescription
List<? extends com.google.cloud.tpu.v2.AcceleratorConfigOrBuilder>

getDefaultInstanceForType()

public AcceleratorType getDefaultInstanceForType()
Returns
TypeDescription
AcceleratorType

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

The resource name.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getType()

public String getType()

The accelerator type.

string type = 2;

Returns
TypeDescription
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

The accelerator type.

string type = 2;

Returns
TypeDescription
ByteString

The bytes for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AcceleratorType other)

public AcceleratorType.Builder mergeFrom(AcceleratorType other)
Parameter
NameDescription
otherAcceleratorType
Returns
TypeDescription
AcceleratorType.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AcceleratorType.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AcceleratorType.Builder
Overrides

removeAcceleratorConfigs(int index)

public AcceleratorType.Builder removeAcceleratorConfigs(int index)

The accelerator config.

repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorType.Builder

setAcceleratorConfigs(int index, AcceleratorConfig value)

public AcceleratorType.Builder setAcceleratorConfigs(int index, AcceleratorConfig value)

The accelerator config.

repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;

Parameters
NameDescription
indexint
valueAcceleratorConfig
Returns
TypeDescription
AcceleratorType.Builder

setAcceleratorConfigs(int index, AcceleratorConfig.Builder builderForValue)

public AcceleratorType.Builder setAcceleratorConfigs(int index, AcceleratorConfig.Builder builderForValue)

The accelerator config.

repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;

Parameters
NameDescription
indexint
builderForValueAcceleratorConfig.Builder
Returns
TypeDescription
AcceleratorType.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AcceleratorType.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AcceleratorType.Builder
Overrides

setName(String value)

public AcceleratorType.Builder setName(String value)

The resource name.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
AcceleratorType.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AcceleratorType.Builder setNameBytes(ByteString value)

The resource name.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
AcceleratorType.Builder

This builder for chaining.

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

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

setType(String value)

public AcceleratorType.Builder setType(String value)

The accelerator type.

string type = 2;

Parameter
NameDescription
valueString

The type to set.

Returns
TypeDescription
AcceleratorType.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public AcceleratorType.Builder setTypeBytes(ByteString value)

The accelerator type.

string type = 2;

Parameter
NameDescription
valueByteString

The bytes for type to set.

Returns
TypeDescription
AcceleratorType.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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