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.v2alpha1.AcceleratorType
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAcceleratorConfigs(AcceleratorConfig value)
public AcceleratorType.Builder addAcceleratorConfigs(AcceleratorConfig value)
The accelerator config.
repeated .google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_configs = 3;
Parameter
Returns
addAcceleratorConfigs(AcceleratorConfig.Builder builderForValue)
public AcceleratorType.Builder addAcceleratorConfigs(AcceleratorConfig.Builder builderForValue)
The accelerator config.
repeated .google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_configs = 3;
Parameter
Returns
addAcceleratorConfigs(int index, AcceleratorConfig value)
public AcceleratorType.Builder addAcceleratorConfigs(int index, AcceleratorConfig value)
The accelerator config.
repeated .google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_configs = 3;
Parameters
Returns
addAcceleratorConfigs(int index, AcceleratorConfig.Builder builderForValue)
public AcceleratorType.Builder addAcceleratorConfigs(int index, AcceleratorConfig.Builder builderForValue)
The accelerator config.
repeated .google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_configs = 3;
Parameters
Returns
addAcceleratorConfigsBuilder()
public AcceleratorConfig.Builder addAcceleratorConfigsBuilder()
The accelerator config.
repeated .google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_configs = 3;
Returns
addAcceleratorConfigsBuilder(int index)
public AcceleratorConfig.Builder addAcceleratorConfigsBuilder(int index)
The accelerator config.
repeated .google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_configs = 3;
Parameter
Returns
addAllAcceleratorConfigs(Iterable<? extends AcceleratorConfig> values)
public AcceleratorType.Builder addAllAcceleratorConfigs(Iterable<? extends AcceleratorConfig> values)
The accelerator config.
repeated .google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_configs = 3;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.tpu.v2alpha1.AcceleratorConfig>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AcceleratorType.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public AcceleratorType build()
Returns
buildPartial()
public AcceleratorType buildPartial()
Returns
clear()
public AcceleratorType.Builder clear()
Returns
Overrides
clearAcceleratorConfigs()
public AcceleratorType.Builder clearAcceleratorConfigs()
The accelerator config.
repeated .google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_configs = 3;
Returns
clearField(Descriptors.FieldDescriptor field)
public AcceleratorType.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearName()
public AcceleratorType.Builder clearName()
The resource name.
string name = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public AcceleratorType.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearType()
public AcceleratorType.Builder clearType()
The accelerator type.
string type = 2;
Returns
clone()
public AcceleratorType.Builder clone()
Returns
Overrides
getAcceleratorConfigs(int index)
public AcceleratorConfig getAcceleratorConfigs(int index)
The accelerator config.
repeated .google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_configs = 3;
Parameter
Returns
getAcceleratorConfigsBuilder(int index)
public AcceleratorConfig.Builder getAcceleratorConfigsBuilder(int index)
The accelerator config.
repeated .google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_configs = 3;
Parameter
Returns
getAcceleratorConfigsBuilderList()
public List<AcceleratorConfig.Builder> getAcceleratorConfigsBuilderList()
The accelerator config.
repeated .google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_configs = 3;
Returns
getAcceleratorConfigsCount()
public int getAcceleratorConfigsCount()
The accelerator config.
repeated .google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_configs = 3;
Returns
getAcceleratorConfigsList()
public List<AcceleratorConfig> getAcceleratorConfigsList()
The accelerator config.
repeated .google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_configs = 3;
Returns
getAcceleratorConfigsOrBuilder(int index)
public AcceleratorConfigOrBuilder getAcceleratorConfigsOrBuilder(int index)
The accelerator config.
repeated .google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_configs = 3;
Parameter
Returns
getAcceleratorConfigsOrBuilderList()
public List<? extends AcceleratorConfigOrBuilder> getAcceleratorConfigsOrBuilderList()
The accelerator config.
repeated .google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_configs = 3;
Returns
Type | Description |
List<? extends com.google.cloud.tpu.v2alpha1.AcceleratorConfigOrBuilder> | |
getDefaultInstanceForType()
public AcceleratorType getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getName()
The resource name.
string name = 1;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
The resource name.
string name = 1;
Returns
getType()
The accelerator type.
string type = 2;
Returns
Type | Description |
String | The type.
|
getTypeBytes()
public ByteString getTypeBytes()
The accelerator type.
string type = 2;
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(AcceleratorType other)
public AcceleratorType.Builder mergeFrom(AcceleratorType other)
Parameter
Returns
public AcceleratorType.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AcceleratorType.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AcceleratorType.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeAcceleratorConfigs(int index)
public AcceleratorType.Builder removeAcceleratorConfigs(int index)
The accelerator config.
repeated .google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_configs = 3;
Parameter
Returns
setAcceleratorConfigs(int index, AcceleratorConfig value)
public AcceleratorType.Builder setAcceleratorConfigs(int index, AcceleratorConfig value)
The accelerator config.
repeated .google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_configs = 3;
Parameters
Returns
setAcceleratorConfigs(int index, AcceleratorConfig.Builder builderForValue)
public AcceleratorType.Builder setAcceleratorConfigs(int index, AcceleratorConfig.Builder builderForValue)
The accelerator config.
repeated .google.cloud.tpu.v2alpha1.AcceleratorConfig accelerator_configs = 3;
Parameters
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public AcceleratorType.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AcceleratorType.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
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
setUnknownFields(UnknownFieldSet unknownFields)
public final AcceleratorType.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides