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()
Methods
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
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
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
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