public static final class AllocationAggregateReservation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AllocationAggregateReservation.Builder> 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.AllocationAggregateReservationgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationAggregateReservation.Builder>public AllocationAggregateReservation.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationAggregateReservation.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationAggregateReservation.Builder>public AllocationAggregateReservation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AllocationAggregateReservation build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AllocationAggregateReservation buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AllocationAggregateReservation.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationAggregateReservation.Builder>public AllocationAggregateReservation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationAggregateReservation.Builder>public AllocationAggregateReservation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationAggregateReservation.Builder>public AllocationAggregateReservation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationAggregateReservation.Builder>public AllocationAggregateReservation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationAggregateReservation.Builder>public AllocationAggregateReservation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationAggregateReservation.Builder>public AllocationAggregateReservation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AllocationAggregateReservation.Builder>public AllocationAggregateReservation.Builder mergeFrom(AllocationAggregateReservation other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationAggregateReservation.Builder>public AllocationAggregateReservation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AllocationAggregateReservation.Builder>IOExceptionpublic List<AllocationAggregateReservationReservedResourceInfo> getInUseResourcesList()
[Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;
getInUseResourcesList in interface AllocationAggregateReservationOrBuilderpublic int getInUseResourcesCount()
[Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;
getInUseResourcesCount in interface AllocationAggregateReservationOrBuilderpublic AllocationAggregateReservationReservedResourceInfo getInUseResources(int index)
[Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;
getInUseResources in interface AllocationAggregateReservationOrBuilderpublic AllocationAggregateReservation.Builder setInUseResources(int index, AllocationAggregateReservationReservedResourceInfo value)
[Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;
public AllocationAggregateReservation.Builder setInUseResources(int index, AllocationAggregateReservationReservedResourceInfo.Builder builderForValue)
[Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;
public AllocationAggregateReservation.Builder addInUseResources(AllocationAggregateReservationReservedResourceInfo value)
[Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;
public AllocationAggregateReservation.Builder addInUseResources(int index, AllocationAggregateReservationReservedResourceInfo value)
[Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;
public AllocationAggregateReservation.Builder addInUseResources(AllocationAggregateReservationReservedResourceInfo.Builder builderForValue)
[Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;
public AllocationAggregateReservation.Builder addInUseResources(int index, AllocationAggregateReservationReservedResourceInfo.Builder builderForValue)
[Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;
public AllocationAggregateReservation.Builder addAllInUseResources(Iterable<? extends AllocationAggregateReservationReservedResourceInfo> values)
[Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;
public AllocationAggregateReservation.Builder clearInUseResources()
[Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;
public AllocationAggregateReservation.Builder removeInUseResources(int index)
[Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;
public AllocationAggregateReservationReservedResourceInfo.Builder getInUseResourcesBuilder(int index)
[Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;
public AllocationAggregateReservationReservedResourceInfoOrBuilder getInUseResourcesOrBuilder(int index)
[Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;
getInUseResourcesOrBuilder in interface AllocationAggregateReservationOrBuilderpublic List<? extends AllocationAggregateReservationReservedResourceInfoOrBuilder> getInUseResourcesOrBuilderList()
[Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;
getInUseResourcesOrBuilderList in interface AllocationAggregateReservationOrBuilderpublic AllocationAggregateReservationReservedResourceInfo.Builder addInUseResourcesBuilder()
[Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;
public AllocationAggregateReservationReservedResourceInfo.Builder addInUseResourcesBuilder(int index)
[Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;
public List<AllocationAggregateReservationReservedResourceInfo.Builder> getInUseResourcesBuilderList()
[Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;
public List<AllocationAggregateReservationReservedResourceInfo> getReservedResourcesList()
List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;
getReservedResourcesList in interface AllocationAggregateReservationOrBuilderpublic int getReservedResourcesCount()
List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;
getReservedResourcesCount in interface AllocationAggregateReservationOrBuilderpublic AllocationAggregateReservationReservedResourceInfo getReservedResources(int index)
List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;
getReservedResources in interface AllocationAggregateReservationOrBuilderpublic AllocationAggregateReservation.Builder setReservedResources(int index, AllocationAggregateReservationReservedResourceInfo value)
List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;
public AllocationAggregateReservation.Builder setReservedResources(int index, AllocationAggregateReservationReservedResourceInfo.Builder builderForValue)
List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;
public AllocationAggregateReservation.Builder addReservedResources(AllocationAggregateReservationReservedResourceInfo value)
List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;
public AllocationAggregateReservation.Builder addReservedResources(int index, AllocationAggregateReservationReservedResourceInfo value)
List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;
public AllocationAggregateReservation.Builder addReservedResources(AllocationAggregateReservationReservedResourceInfo.Builder builderForValue)
List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;
public AllocationAggregateReservation.Builder addReservedResources(int index, AllocationAggregateReservationReservedResourceInfo.Builder builderForValue)
List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;
public AllocationAggregateReservation.Builder addAllReservedResources(Iterable<? extends AllocationAggregateReservationReservedResourceInfo> values)
List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;
public AllocationAggregateReservation.Builder clearReservedResources()
List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;
public AllocationAggregateReservation.Builder removeReservedResources(int index)
List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;
public AllocationAggregateReservationReservedResourceInfo.Builder getReservedResourcesBuilder(int index)
List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;
public AllocationAggregateReservationReservedResourceInfoOrBuilder getReservedResourcesOrBuilder(int index)
List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;
getReservedResourcesOrBuilder in interface AllocationAggregateReservationOrBuilderpublic List<? extends AllocationAggregateReservationReservedResourceInfoOrBuilder> getReservedResourcesOrBuilderList()
List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;
getReservedResourcesOrBuilderList in interface AllocationAggregateReservationOrBuilderpublic AllocationAggregateReservationReservedResourceInfo.Builder addReservedResourcesBuilder()
List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;
public AllocationAggregateReservationReservedResourceInfo.Builder addReservedResourcesBuilder(int index)
List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;
public List<AllocationAggregateReservationReservedResourceInfo.Builder> getReservedResourcesBuilderList()
List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;
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;hasVmFamily in interface AllocationAggregateReservationOrBuilderpublic 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;getVmFamily in interface AllocationAggregateReservationOrBuilderpublic com.google.protobuf.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;getVmFamilyBytes in interface AllocationAggregateReservationOrBuilderpublic AllocationAggregateReservation.Builder setVmFamily(String value)
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;value - The vmFamily to set.public AllocationAggregateReservation.Builder clearVmFamily()
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;public AllocationAggregateReservation.Builder setVmFamilyBytes(com.google.protobuf.ByteString value)
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;value - The bytes for vmFamily to set.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;hasWorkloadType in interface AllocationAggregateReservationOrBuilderpublic 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;getWorkloadType in interface AllocationAggregateReservationOrBuilderpublic com.google.protobuf.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;getWorkloadTypeBytes in interface AllocationAggregateReservationOrBuilderpublic AllocationAggregateReservation.Builder setWorkloadType(String value)
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;value - The workloadType to set.public AllocationAggregateReservation.Builder clearWorkloadType()
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;public AllocationAggregateReservation.Builder setWorkloadTypeBytes(com.google.protobuf.ByteString value)
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;value - The bytes for workloadType to set.public final AllocationAggregateReservation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationAggregateReservation.Builder>public final AllocationAggregateReservation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationAggregateReservation.Builder>Copyright © 2025 Google LLC. All rights reserved.