Class AcceleratorType.Builder (2.49.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AcceleratorType.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AcceleratorType.Builder
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public AcceleratorType.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AcceleratorType.Builder
Overrides

clearName()

public AcceleratorType.Builder clearName()

The resource name.

string name = 1;

Returns
Type Description
AcceleratorType.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AcceleratorType.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AcceleratorType.Builder
Overrides

clearType()

public AcceleratorType.Builder clearType()

the accelerator type.

string type = 2;

Returns
Type Description
AcceleratorType.Builder

This builder for chaining.

clone()

public AcceleratorType.Builder clone()
Returns
Type Description
AcceleratorType.Builder
Overrides

getDefaultInstanceForType()

public AcceleratorType getDefaultInstanceForType()
Returns
Type Description
AcceleratorType

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AcceleratorType.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AcceleratorType.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AcceleratorType.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AcceleratorType.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AcceleratorType.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AcceleratorType.Builder
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
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 ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AcceleratorType.Builder
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
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 ByteString

The bytes for type to set.

Returns
Type Description
AcceleratorType.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AcceleratorType.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AcceleratorType.Builder
Overrides