Class AcceleratorType.Builder (2.17.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AcceleratorType.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AcceleratorType.Builder
Overrides

build()

public AcceleratorType build()
Returns
TypeDescription
AcceleratorType

buildPartial()

public AcceleratorType buildPartial()
Returns
TypeDescription
AcceleratorType

clear()

public AcceleratorType.Builder clear()
Returns
TypeDescription
AcceleratorType.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AcceleratorType.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AcceleratorType.Builder
Overrides

clearName()

public AcceleratorType.Builder clearName()

The resource name.

string name = 1;

Returns
TypeDescription
AcceleratorType.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AcceleratorType.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AcceleratorType.Builder
Overrides

clearType()

public AcceleratorType.Builder clearType()

the accelerator type.

string type = 2;

Returns
TypeDescription
AcceleratorType.Builder

This builder for chaining.

clone()

public AcceleratorType.Builder clone()
Returns
TypeDescription
AcceleratorType.Builder
Overrides

getDefaultInstanceForType()

public AcceleratorType getDefaultInstanceForType()
Returns
TypeDescription
AcceleratorType

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

The resource name.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getType()

public String getType()

the accelerator type.

string type = 2;

Returns
TypeDescription
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

the accelerator type.

string type = 2;

Returns
TypeDescription
ByteString

The bytes for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AcceleratorType other)

public AcceleratorType.Builder mergeFrom(AcceleratorType other)
Parameter
NameDescription
otherAcceleratorType
Returns
TypeDescription
AcceleratorType.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AcceleratorType.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AcceleratorType.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AcceleratorType.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AcceleratorType.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AcceleratorType.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AcceleratorType.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AcceleratorType.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AcceleratorType.Builder
Overrides

setName(String value)

public AcceleratorType.Builder setName(String value)

The resource name.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
AcceleratorType.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AcceleratorType.Builder setNameBytes(ByteString value)

The resource name.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
AcceleratorType.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AcceleratorType.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AcceleratorType.Builder
Overrides

setType(String value)

public AcceleratorType.Builder setType(String value)

the accelerator type.

string type = 2;

Parameter
NameDescription
valueString

The type to set.

Returns
TypeDescription
AcceleratorType.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public AcceleratorType.Builder setTypeBytes(ByteString value)

the accelerator type.

string type = 2;

Parameter
NameDescription
valueByteString

The bytes for type to set.

Returns
TypeDescription
AcceleratorType.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AcceleratorType.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AcceleratorType.Builder
Overrides