Class AcceleratorType.Builder (2.31.0)
Stay organized with collections
Save and categorize content based on your preferences.
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
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()
Methods
addAcceleratorConfigs(AcceleratorConfig value)
public AcceleratorType.Builder addAcceleratorConfigs(AcceleratorConfig value)
The accelerator config.
repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;
addAcceleratorConfigs(AcceleratorConfig.Builder builderForValue)
public AcceleratorType.Builder addAcceleratorConfigs(AcceleratorConfig.Builder builderForValue)
The accelerator config.
repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;
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;
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;
addAcceleratorConfigsBuilder()
public AcceleratorConfig.Builder addAcceleratorConfigsBuilder()
The accelerator config.
repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;
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
|
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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AcceleratorType.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AcceleratorType build()
buildPartial()
public AcceleratorType buildPartial()
clear()
public AcceleratorType.Builder clear()
Overrides
clearAcceleratorConfigs()
public AcceleratorType.Builder clearAcceleratorConfigs()
The accelerator config.
repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;
clearField(Descriptors.FieldDescriptor field)
public AcceleratorType.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearName()
public AcceleratorType.Builder clearName()
The resource name.
string name = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public AcceleratorType.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearType()
public AcceleratorType.Builder clearType()
The accelerator type.
string type = 2;
clone()
public AcceleratorType.Builder clone()
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
|
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
|
getAcceleratorConfigsBuilderList()
public List<AcceleratorConfig.Builder> getAcceleratorConfigsBuilderList()
The accelerator config.
repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;
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;
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
|
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Type | Description |
ByteString | The bytes for name.
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AcceleratorType other)
public AcceleratorType.Builder mergeFrom(AcceleratorType other)
public AcceleratorType.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AcceleratorType.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AcceleratorType.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public AcceleratorType.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AcceleratorType.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final AcceleratorType.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-04 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-10-04 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-04 UTC."]]