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.v1.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
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
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
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
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