Class Accelerators.Builder (1.64.0)

public static final class Accelerators.Builder extends GeneratedMessageV3.Builder<Accelerators.Builder> implements AcceleratorsOrBuilder

Protobuf type google.cloud.compute.v1.Accelerators

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Accelerators build()
Returns
Type Description
Accelerators

buildPartial()

public Accelerators buildPartial()
Returns
Type Description
Accelerators

clear()

public Accelerators.Builder clear()
Returns
Type Description
Accelerators.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearGuestAcceleratorCount()

public Accelerators.Builder clearGuestAcceleratorCount()

Number of accelerator cards exposed to the guest.

optional int32 guest_accelerator_count = 479079316;

Returns
Type Description
Accelerators.Builder

This builder for chaining.

clearGuestAcceleratorType()

public Accelerators.Builder clearGuestAcceleratorType()

The accelerator type resource name, not a full URL, e.g. nvidia-tesla-t4.

optional string guest_accelerator_type = 293064725;

Returns
Type Description
Accelerators.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public Accelerators getDefaultInstanceForType()
Returns
Type Description
Accelerators

getDescriptorForType()

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

getGuestAcceleratorCount()

public int getGuestAcceleratorCount()

Number of accelerator cards exposed to the guest.

optional int32 guest_accelerator_count = 479079316;

Returns
Type Description
int

The guestAcceleratorCount.

getGuestAcceleratorType()

public String getGuestAcceleratorType()

The accelerator type resource name, not a full URL, e.g. nvidia-tesla-t4.

optional string guest_accelerator_type = 293064725;

Returns
Type Description
String

The guestAcceleratorType.

getGuestAcceleratorTypeBytes()

public ByteString getGuestAcceleratorTypeBytes()

The accelerator type resource name, not a full URL, e.g. nvidia-tesla-t4.

optional string guest_accelerator_type = 293064725;

Returns
Type Description
ByteString

The bytes for guestAcceleratorType.

hasGuestAcceleratorCount()

public boolean hasGuestAcceleratorCount()

Number of accelerator cards exposed to the guest.

optional int32 guest_accelerator_count = 479079316;

Returns
Type Description
boolean

Whether the guestAcceleratorCount field is set.

hasGuestAcceleratorType()

public boolean hasGuestAcceleratorType()

The accelerator type resource name, not a full URL, e.g. nvidia-tesla-t4.

optional string guest_accelerator_type = 293064725;

Returns
Type Description
boolean

Whether the guestAcceleratorType field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Accelerators other)

public Accelerators.Builder mergeFrom(Accelerators other)
Parameter
Name Description
other Accelerators
Returns
Type Description
Accelerators.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Accelerators.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Accelerators.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setGuestAcceleratorCount(int value)

public Accelerators.Builder setGuestAcceleratorCount(int value)

Number of accelerator cards exposed to the guest.

optional int32 guest_accelerator_count = 479079316;

Parameter
Name Description
value int

The guestAcceleratorCount to set.

Returns
Type Description
Accelerators.Builder

This builder for chaining.

setGuestAcceleratorType(String value)

public Accelerators.Builder setGuestAcceleratorType(String value)

The accelerator type resource name, not a full URL, e.g. nvidia-tesla-t4.

optional string guest_accelerator_type = 293064725;

Parameter
Name Description
value String

The guestAcceleratorType to set.

Returns
Type Description
Accelerators.Builder

This builder for chaining.

setGuestAcceleratorTypeBytes(ByteString value)

public Accelerators.Builder setGuestAcceleratorTypeBytes(ByteString value)

The accelerator type resource name, not a full URL, e.g. nvidia-tesla-t4.

optional string guest_accelerator_type = 293064725;

Parameter
Name Description
value ByteString

The bytes for guestAcceleratorType to set.

Returns
Type Description
Accelerators.Builder

This builder for chaining.

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

public Accelerators.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Accelerators.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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