Class InstanceConsumptionInfo (1.30.0)

public final class InstanceConsumptionInfo extends GeneratedMessageV3 implements InstanceConsumptionInfoOrBuilder

Protobuf type google.cloud.compute.v1.InstanceConsumptionInfo

Static Fields

GUEST_CPUS_FIELD_NUMBER

public static final int GUEST_CPUS_FIELD_NUMBER
Field Value
TypeDescription
int

LOCAL_SSD_GB_FIELD_NUMBER

public static final int LOCAL_SSD_GB_FIELD_NUMBER
Field Value
TypeDescription
int

MEMORY_MB_FIELD_NUMBER

public static final int MEMORY_MB_FIELD_NUMBER
Field Value
TypeDescription
int

MIN_NODE_CPUS_FIELD_NUMBER

public static final int MIN_NODE_CPUS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static InstanceConsumptionInfo getDefaultInstance()
Returns
TypeDescription
InstanceConsumptionInfo

getDescriptor()

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

newBuilder()

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

newBuilder(InstanceConsumptionInfo prototype)

public static InstanceConsumptionInfo.Builder newBuilder(InstanceConsumptionInfo prototype)
Parameter
NameDescription
prototypeInstanceConsumptionInfo
Returns
TypeDescription
InstanceConsumptionInfo.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public InstanceConsumptionInfo getDefaultInstanceForType()
Returns
TypeDescription
InstanceConsumptionInfo

getGuestCpus()

public int getGuestCpus()

The number of virtual CPUs that are available to the instance.

optional int32 guest_cpus = 393356754;

Returns
TypeDescription
int

The guestCpus.

getLocalSsdGb()

public int getLocalSsdGb()

The amount of local SSD storage available to the instance, defined in GiB.

optional int32 local_ssd_gb = 329237578;

Returns
TypeDescription
int

The localSsdGb.

getMemoryMb()

public int getMemoryMb()

The amount of physical memory available to the instance, defined in MiB.

optional int32 memory_mb = 116001171;

Returns
TypeDescription
int

The memoryMb.

getMinNodeCpus()

public int getMinNodeCpus()

The minimal guaranteed number of virtual CPUs that are reserved.

optional int32 min_node_cpus = 317231675;

Returns
TypeDescription
int

The minNodeCpus.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasGuestCpus()

public boolean hasGuestCpus()

The number of virtual CPUs that are available to the instance.

optional int32 guest_cpus = 393356754;

Returns
TypeDescription
boolean

Whether the guestCpus field is set.

hasLocalSsdGb()

public boolean hasLocalSsdGb()

The amount of local SSD storage available to the instance, defined in GiB.

optional int32 local_ssd_gb = 329237578;

Returns
TypeDescription
boolean

Whether the localSsdGb field is set.

hasMemoryMb()

public boolean hasMemoryMb()

The amount of physical memory available to the instance, defined in MiB.

optional int32 memory_mb = 116001171;

Returns
TypeDescription
boolean

Whether the memoryMb field is set.

hasMinNodeCpus()

public boolean hasMinNodeCpus()

The minimal guaranteed number of virtual CPUs that are reserved.

optional int32 min_node_cpus = 317231675;

Returns
TypeDescription
boolean

Whether the minNodeCpus 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 InstanceConsumptionInfo.Builder newBuilderForType()
Returns
TypeDescription
InstanceConsumptionInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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