Class AllocationAggregateReservation (1.62.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;

Parameter
Name Description
index int
Returns
Type Description
AllocationAggregateReservationReservedResourceInfo

getInUseResourcesCount()

public int getInUseResourcesCount()

[Output only] List of resources currently in use.

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

Returns
Type Description
int

getInUseResourcesList()

public List<AllocationAggregateReservationReservedResourceInfo> getInUseResourcesList()

[Output only] List of resources currently in use.

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

Returns
Type Description
List<AllocationAggregateReservationReservedResourceInfo>

getInUseResourcesOrBuilder(int index)

public AllocationAggregateReservationReservedResourceInfoOrBuilder getInUseResourcesOrBuilder(int index)

[Output only] List of resources currently in use.

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

Parameter
Name Description
index int
Returns
Type Description
AllocationAggregateReservationReservedResourceInfoOrBuilder

getInUseResourcesOrBuilderList()

public List<? extends AllocationAggregateReservationReservedResourceInfoOrBuilder> getInUseResourcesOrBuilderList()

[Output only] List of resources currently in use.

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

Returns
Type Description
List<? extends com.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoOrBuilder>

getParserForType()

public Parser<AllocationAggregateReservation> getParserForType()
Returns
Type Description
Parser<AllocationAggregateReservation>
Overrides

getReservedResources(int index)

public AllocationAggregateReservationReservedResourceInfo getReservedResources(int index)

List of reserved resources (CPUs, memory, accelerators).

repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;

Parameter
Name Description
index int
Returns
Type Description
AllocationAggregateReservationReservedResourceInfo

getReservedResourcesCount()

public int getReservedResourcesCount()

List of reserved resources (CPUs, memory, accelerators).

repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;

Returns
Type Description
int

getReservedResourcesList()

public List<AllocationAggregateReservationReservedResourceInfo> getReservedResourcesList()

List of reserved resources (CPUs, memory, accelerators).

repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;

Returns
Type Description
List<AllocationAggregateReservationReservedResourceInfo>

getReservedResourcesOrBuilder(int index)

public AllocationAggregateReservationReservedResourceInfoOrBuilder getReservedResourcesOrBuilder(int index)

List of reserved resources (CPUs, memory, accelerators).

repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;

Parameter
Name Description
index int
Returns
Type Description
AllocationAggregateReservationReservedResourceInfoOrBuilder

getReservedResourcesOrBuilderList()

public List<? extends AllocationAggregateReservationReservedResourceInfoOrBuilder> getReservedResourcesOrBuilderList()

List of reserved resources (CPUs, memory, accelerators).

repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getVmFamily()

public String getVmFamily()

The VM family that all instances scheduled against this reservation must belong to. Check the VmFamily enum for the list of possible values.

optional string vm_family = 125017580;

Returns
Type Description
String

The vmFamily.

getVmFamilyBytes()

public ByteString getVmFamilyBytes()

The VM family that all instances scheduled against this reservation must belong to. Check the VmFamily enum for the list of possible values.

optional string vm_family = 125017580;

Returns
Type Description
ByteString

The bytes for vmFamily.

getWorkloadType()

public String getWorkloadType()

The workload type of the instances that will target this reservation. Check the WorkloadType enum for the list of possible values.

optional string workload_type = 273432322;

Returns
Type Description
String

The workloadType.

getWorkloadTypeBytes()

public ByteString getWorkloadTypeBytes()

The workload type of the instances that will target this reservation. Check the WorkloadType enum for the list of possible values.

optional string workload_type = 273432322;

Returns
Type Description
ByteString

The bytes for workloadType.

hasVmFamily()

public boolean hasVmFamily()

The VM family that all instances scheduled against this reservation must belong to. Check the VmFamily enum for the list of possible values.

optional string vm_family = 125017580;

Returns
Type Description
boolean

Whether the vmFamily field is set.

hasWorkloadType()

public boolean hasWorkloadType()

The workload type of the instances that will target this reservation. Check the WorkloadType enum for the list of possible values.

optional string workload_type = 273432322;

Returns
Type Description
boolean

Whether the workloadType field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AllocationAggregateReservation.Builder newBuilderForType()
Returns
Type Description
AllocationAggregateReservation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AllocationAggregateReservation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AllocationAggregateReservation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AllocationAggregateReservation.Builder toBuilder()
Returns
Type Description
AllocationAggregateReservation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException