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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static AllocationAggregateReservation.Builder newBuilder()
newBuilder(AllocationAggregateReservation prototype)
public static AllocationAggregateReservation.Builder newBuilder(AllocationAggregateReservation prototype)
public static AllocationAggregateReservation parseDelimitedFrom(InputStream input)
public static AllocationAggregateReservation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static AllocationAggregateReservation parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AllocationAggregateReservation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static AllocationAggregateReservation parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AllocationAggregateReservation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AllocationAggregateReservation parseFrom(CodedInputStream input)
public static AllocationAggregateReservation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AllocationAggregateReservation parseFrom(InputStream input)
public static AllocationAggregateReservation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static AllocationAggregateReservation parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AllocationAggregateReservation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<AllocationAggregateReservation> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public AllocationAggregateReservation getDefaultInstanceForType()
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
|
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;
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
|
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()
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
|
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;
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
|
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()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public AllocationAggregateReservation.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AllocationAggregateReservation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public AllocationAggregateReservation.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides