Class AcceleratorType.Builder (2.84.0)

public static final class AcceleratorType.Builder extends GeneratedMessage.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

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

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.

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

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.

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.