Class Accelerators.Builder (1.39.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Accelerators build()
Returns
TypeDescription
Accelerators

buildPartial()

public Accelerators buildPartial()
Returns
TypeDescription
Accelerators

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGuestAcceleratorCount()

public Accelerators.Builder clearGuestAcceleratorCount()

Number of accelerator cards exposed to the guest.

optional int32 guest_accelerator_count = 479079316;

Returns
TypeDescription
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
TypeDescription
Accelerators.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public Accelerators getDefaultInstanceForType()
Returns
TypeDescription
Accelerators

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGuestAcceleratorCount()

public int getGuestAcceleratorCount()

Number of accelerator cards exposed to the guest.

optional int32 guest_accelerator_count = 479079316;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for guestAcceleratorType.

hasGuestAcceleratorCount()

public boolean hasGuestAcceleratorCount()

Number of accelerator cards exposed to the guest.

optional int32 guest_accelerator_count = 479079316;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the guestAcceleratorType field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Accelerators other)

public Accelerators.Builder mergeFrom(Accelerators other)
Parameter
NameDescription
otherAccelerators
Returns
TypeDescription
Accelerators.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public Accelerators.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The guestAcceleratorCount to set.

Returns
TypeDescription
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
NameDescription
valueString

The guestAcceleratorType to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for guestAcceleratorType to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Accelerators.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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