Class AcceleratorType.Builder (2.48.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
Type Description
Descriptor

Methods

addAcceleratorConfigs(AcceleratorConfig value)

public AcceleratorType.Builder addAcceleratorConfigs(AcceleratorConfig value)

The accelerator config.

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

Parameter
Name Description
value AcceleratorConfig
Returns
Type Description
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
Name Description
builderForValue AcceleratorConfig.Builder
Returns
Type Description
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
Name Description
index int
value AcceleratorConfig
Returns
Type Description
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
Name Description
index int
builderForValue AcceleratorConfig.Builder
Returns
Type Description
AcceleratorType.Builder

addAcceleratorConfigsBuilder()

public AcceleratorConfig.Builder addAcceleratorConfigsBuilder()

The accelerator config.

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

Returns
Type Description
AcceleratorConfig.Builder

addAcceleratorConfigsBuilder(int index)

public AcceleratorConfig.Builder addAcceleratorConfigsBuilder(int index)

The accelerator config.

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

Parameter
Name Description
index int
Returns
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.tpu.v2.AcceleratorConfig>
Returns
Type Description
AcceleratorType.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AcceleratorType build()
Returns
Type Description
AcceleratorType

buildPartial()

public AcceleratorType buildPartial()
Returns
Type Description
AcceleratorType

clear()

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

clearAcceleratorConfigs()

public AcceleratorType.Builder clearAcceleratorConfigs()

The accelerator config.

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

Returns
Type Description
AcceleratorType.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public AcceleratorType.Builder clearName()

The resource name.

string name = 1;

Returns
Type Description
AcceleratorType.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearType()

public AcceleratorType.Builder clearType()

The accelerator type.

string type = 2;

Returns
Type Description
AcceleratorType.Builder

This builder for chaining.

clone()

public AcceleratorType.Builder clone()
Returns
Type Description
AcceleratorType.Builder
Overrides

getAcceleratorConfigs(int index)

public AcceleratorConfig getAcceleratorConfigs(int index)

The accelerator config.

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

Parameter
Name Description
index int
Returns
Type Description
AcceleratorConfig

getAcceleratorConfigsBuilder(int index)

public AcceleratorConfig.Builder getAcceleratorConfigsBuilder(int index)

The accelerator config.

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

Parameter
Name Description
index int
Returns
Type Description
AcceleratorConfig.Builder

getAcceleratorConfigsBuilderList()

public List<AcceleratorConfig.Builder> getAcceleratorConfigsBuilderList()

The accelerator config.

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

Returns
Type Description
List<Builder>

getAcceleratorConfigsCount()

public int getAcceleratorConfigsCount()

The accelerator config.

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

Returns
Type Description
int

getAcceleratorConfigsList()

public List<AcceleratorConfig> getAcceleratorConfigsList()

The accelerator config.

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

Returns
Type Description
List<AcceleratorConfig>

getAcceleratorConfigsOrBuilder(int index)

public AcceleratorConfigOrBuilder getAcceleratorConfigsOrBuilder(int index)

The accelerator config.

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

Parameter
Name Description
index int
Returns
Type Description
AcceleratorConfigOrBuilder

getAcceleratorConfigsOrBuilderList()

public List<? extends AcceleratorConfigOrBuilder> getAcceleratorConfigsOrBuilderList()

The accelerator config.

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

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

getDefaultInstanceForType()

public AcceleratorType getDefaultInstanceForType()
Returns
Type Description
AcceleratorType

getDescriptorForType()

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

getName()

public String getName()

The resource name.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getType()

public String getType()

The accelerator type.

string type = 2;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

The accelerator type.

string type = 2;

Returns
Type Description
ByteString

The bytes for type.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AcceleratorType other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AcceleratorType.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
value AcceleratorConfig
Returns
Type Description
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
Name Description
index int
builderForValue AcceleratorConfig.Builder
Returns
Type Description
AcceleratorType.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public AcceleratorType.Builder setName(String value)

The resource name.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AcceleratorType.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AcceleratorType.Builder setNameBytes(ByteString value)

The resource name.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AcceleratorType.Builder
Overrides

setType(String value)

public AcceleratorType.Builder setType(String value)

The accelerator type.

string type = 2;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
AcceleratorType.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public AcceleratorType.Builder setTypeBytes(ByteString value)

The accelerator type.

string type = 2;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
AcceleratorType.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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