Class Accelerators (1.33.0)

public final class Accelerators extends GeneratedMessageV3 implements AcceleratorsOrBuilder

Protobuf type google.cloud.compute.v1.Accelerators

Static Fields

GUEST_ACCELERATOR_COUNT_FIELD_NUMBER

public static final int GUEST_ACCELERATOR_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

GUEST_ACCELERATOR_TYPE_FIELD_NUMBER

public static final int GUEST_ACCELERATOR_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Accelerators getDefaultInstance()
Returns
TypeDescription
Accelerators

getDescriptor()

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

newBuilder()

public static Accelerators.Builder newBuilder()
Returns
TypeDescription
Accelerators.Builder

newBuilder(Accelerators prototype)

public static Accelerators.Builder newBuilder(Accelerators prototype)
Parameter
NameDescription
prototypeAccelerators
Returns
TypeDescription
Accelerators.Builder

parseDelimitedFrom(InputStream input)

public static Accelerators parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Accelerators
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Accelerators parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Accelerators
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Accelerators parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Accelerators
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Accelerators parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Accelerators
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Accelerators parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Accelerators
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Accelerators parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Accelerators
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Accelerators parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Accelerators
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Accelerators parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Accelerators
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Accelerators parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Accelerators
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Accelerators parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Accelerators
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Accelerators parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Accelerators
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Accelerators parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Accelerators
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Accelerators> parser()
Returns
TypeDescription
Parser<Accelerators>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Accelerators getDefaultInstanceForType()
Returns
TypeDescription
Accelerators

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.

getParserForType()

public Parser<Accelerators> getParserForType()
Returns
TypeDescription
Parser<Accelerators>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Accelerators.Builder newBuilderForType()
Returns
TypeDescription
Accelerators.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Accelerators.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Accelerators.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Accelerators.Builder toBuilder()
Returns
TypeDescription
Accelerators.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException