- 2.86.0 (latest)
- 2.84.0
- 2.83.0
- 2.81.0
- 2.79.0
- 2.77.0
- 2.76.0
- 2.75.0
- 2.74.0
- 2.73.0
- 2.71.0
- 2.69.0
- 2.68.0
- 2.65.0
- 2.64.0
- 2.63.0
- 2.61.0
- 2.60.0
- 2.59.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.2.6
public static final class AcceleratorType.Builder extends GeneratedMessage.Builder<AcceleratorType.Builder> implements AcceleratorTypeOrBuilderA accelerator type that a Node can be configured with.
Protobuf type google.cloud.tpu.v2.AcceleratorType
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AcceleratorType.BuilderImplements
AcceleratorTypeOrBuilderStatic 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 |
|
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 |
|
clearAcceleratorConfigs()
public AcceleratorType.Builder clearAcceleratorConfigs()The accelerator config.
repeated .google.cloud.tpu.v2.AcceleratorConfig accelerator_configs = 3;
| Returns | |
|---|---|
| Type | Description |
AcceleratorType.Builder |
|
clearName()
public AcceleratorType.Builder clearName()The resource name.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
AcceleratorType.Builder |
This builder for chaining. |
clearType()
public AcceleratorType.Builder clearType()The accelerator type.
string type = 2;
| Returns | |
|---|---|
| Type | Description |
AcceleratorType.Builder |
This builder for chaining. |
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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AcceleratorType.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AcceleratorType.Builder |
|
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 |
|
setName(String value)
public AcceleratorType.Builder setName(String value)The resource name.
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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 |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
AcceleratorType.Builder |
This builder for chaining. |
setType(String value)
public AcceleratorType.Builder setType(String value)The accelerator type.
string type = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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 |
ByteStringThe bytes for type to set. |
| Returns | |
|---|---|
| Type | Description |
AcceleratorType.Builder |
This builder for chaining. |