Class AllocationAggregateReservation (1.88.0)

public final class AllocationAggregateReservation extends GeneratedMessageV3 implements AllocationAggregateReservationOrBuilder

This reservation type is specified by total resource amounts (e.g. total count of CPUs) and can account for multiple instance SKUs. In other words, one can create instances of varying shapes against this reservation.

Protobuf type google.cloud.compute.v1.AllocationAggregateReservation

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AllocationAggregateReservation

Static Fields

IN_USE_RESOURCES_FIELD_NUMBER

public static final int IN_USE_RESOURCES_FIELD_NUMBER
Field Value
Type Description
int

RESERVED_RESOURCES_FIELD_NUMBER

public static final int RESERVED_RESOURCES_FIELD_NUMBER
Field Value
Type Description
int

VM_FAMILY_FIELD_NUMBER

public static final int VM_FAMILY_FIELD_NUMBER
Field Value
Type Description
int

WORKLOAD_TYPE_FIELD_NUMBER

public static final int WORKLOAD_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AllocationAggregateReservation getDefaultInstance()
Returns
Type Description
AllocationAggregateReservation

getDescriptor()

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

newBuilder()

public static AllocationAggregateReservation.Builder newBuilder()
Returns
Type Description
AllocationAggregateReservation.Builder

newBuilder(AllocationAggregateReservation prototype)

public static AllocationAggregateReservation.Builder newBuilder(AllocationAggregateReservation prototype)
Parameter
Name Description
prototype AllocationAggregateReservation
Returns
Type Description
AllocationAggregateReservation.Builder

parseDelimitedFrom(InputStream input)

public static AllocationAggregateReservation parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AllocationAggregateReservation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AllocationAggregateReservation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocationAggregateReservation
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AllocationAggregateReservation parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AllocationAggregateReservation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AllocationAggregateReservation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocationAggregateReservation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AllocationAggregateReservation parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AllocationAggregateReservation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AllocationAggregateReservation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocationAggregateReservation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AllocationAggregateReservation parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AllocationAggregateReservation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AllocationAggregateReservation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocationAggregateReservation
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AllocationAggregateReservation parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AllocationAggregateReservation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AllocationAggregateReservation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocationAggregateReservation
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AllocationAggregateReservation parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AllocationAggregateReservation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AllocationAggregateReservation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AllocationAggregateReservation
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AllocationAggregateReservation> parser()
Returns
Type Description
Parser<AllocationAggregateReservation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public AllocationAggregateReservation getDefaultInstanceForType()
Returns
Type Description
AllocationAggregateReservation

getInUseResources(int index)

public AllocationAggregateReservationReservedResourceInfo getInUseResources(int index)

[Output only] List of resources currently in use.

repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;