Package com.google.cloud.compute.v1
Class AllocationAggregateReservation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AllocationAggregateReservation.Builder>
com.google.cloud.compute.v1.AllocationAggregateReservation.Builder
- All Implemented Interfaces:
AllocationAggregateReservationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AllocationAggregateReservation
public static final class AllocationAggregateReservation.Builder
extends com.google.protobuf.GeneratedMessage.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.AllocationAggregateReservation-
Method Summary
Modifier and TypeMethodDescriptionaddAllInUseResources(Iterable<? extends AllocationAggregateReservationReservedResourceInfo> values) Output only.addAllReservedResources(Iterable<? extends AllocationAggregateReservationReservedResourceInfo> values) List of reserved resources (CPUs, memory, accelerators).addInUseResources(int index, AllocationAggregateReservationReservedResourceInfo value) Output only.addInUseResources(int index, AllocationAggregateReservationReservedResourceInfo.Builder builderForValue) Output only.Output only.Output only.Output only.addInUseResourcesBuilder(int index) Output only.addReservedResources(int index, AllocationAggregateReservationReservedResourceInfo value) List of reserved resources (CPUs, memory, accelerators).addReservedResources(int index, AllocationAggregateReservationReservedResourceInfo.Builder builderForValue) List of reserved resources (CPUs, memory, accelerators).List of reserved resources (CPUs, memory, accelerators).List of reserved resources (CPUs, memory, accelerators).List of reserved resources (CPUs, memory, accelerators).addReservedResourcesBuilder(int index) List of reserved resources (CPUs, memory, accelerators).build()clear()Output only.List of reserved resources (CPUs, memory, accelerators).The VM family that all instances scheduled against this reservation must belong to.The workload type of the instances that will target this reservation.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetInUseResources(int index) Output only.getInUseResourcesBuilder(int index) Output only.Output only.intOutput only.Output only.getInUseResourcesOrBuilder(int index) Output only.Output only.getReservedResources(int index) List of reserved resources (CPUs, memory, accelerators).getReservedResourcesBuilder(int index) List of reserved resources (CPUs, memory, accelerators).List of reserved resources (CPUs, memory, accelerators).intList of reserved resources (CPUs, memory, accelerators).List of reserved resources (CPUs, memory, accelerators).getReservedResourcesOrBuilder(int index) List of reserved resources (CPUs, memory, accelerators).List of reserved resources (CPUs, memory, accelerators).The VM family that all instances scheduled against this reservation must belong to.com.google.protobuf.ByteStringThe VM family that all instances scheduled against this reservation must belong to.The workload type of the instances that will target this reservation.com.google.protobuf.ByteStringThe workload type of the instances that will target this reservation.booleanThe VM family that all instances scheduled against this reservation must belong to.booleanThe workload type of the instances that will target this reservation.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeInUseResources(int index) Output only.removeReservedResources(int index) List of reserved resources (CPUs, memory, accelerators).setInUseResources(int index, AllocationAggregateReservationReservedResourceInfo value) Output only.setInUseResources(int index, AllocationAggregateReservationReservedResourceInfo.Builder builderForValue) Output only.setReservedResources(int index, AllocationAggregateReservationReservedResourceInfo value) List of reserved resources (CPUs, memory, accelerators).setReservedResources(int index, AllocationAggregateReservationReservedResourceInfo.Builder builderForValue) List of reserved resources (CPUs, memory, accelerators).setVmFamily(String value) The VM family that all instances scheduled against this reservation must belong to.setVmFamilyBytes(com.google.protobuf.ByteString value) The VM family that all instances scheduled against this reservation must belong to.setWorkloadType(String value) The workload type of the instances that will target this reservation.setWorkloadTypeBytes(com.google.protobuf.ByteString value) The workload type of the instances that will target this reservation.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AllocationAggregateReservation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AllocationAggregateReservation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AllocationAggregateReservation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AllocationAggregateReservation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AllocationAggregateReservation.Builder>
-
mergeFrom
public AllocationAggregateReservation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AllocationAggregateReservation.Builder>- Throws:
IOException
-
getInUseResourcesList
Output only. [Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;- Specified by:
getInUseResourcesListin interfaceAllocationAggregateReservationOrBuilder
-
getInUseResourcesCount
public int getInUseResourcesCount()Output only. [Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;- Specified by:
getInUseResourcesCountin interfaceAllocationAggregateReservationOrBuilder
-
getInUseResources
Output only. [Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;- Specified by:
getInUseResourcesin interfaceAllocationAggregateReservationOrBuilder
-
setInUseResources
public AllocationAggregateReservation.Builder setInUseResources(int index, AllocationAggregateReservationReservedResourceInfo value) Output only. [Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107; -
setInUseResources
public AllocationAggregateReservation.Builder setInUseResources(int index, AllocationAggregateReservationReservedResourceInfo.Builder builderForValue) Output only. [Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107; -
addInUseResources
public AllocationAggregateReservation.Builder addInUseResources(AllocationAggregateReservationReservedResourceInfo value) Output only. [Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107; -
addInUseResources
public AllocationAggregateReservation.Builder addInUseResources(int index, AllocationAggregateReservationReservedResourceInfo value) Output only. [Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107; -
addInUseResources
public AllocationAggregateReservation.Builder addInUseResources(AllocationAggregateReservationReservedResourceInfo.Builder builderForValue) Output only. [Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107; -
addInUseResources
public AllocationAggregateReservation.Builder addInUseResources(int index, AllocationAggregateReservationReservedResourceInfo.Builder builderForValue) Output only. [Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107; -
addAllInUseResources
public AllocationAggregateReservation.Builder addAllInUseResources(Iterable<? extends AllocationAggregateReservationReservedResourceInfo> values) Output only. [Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107; -
clearInUseResources
Output only. [Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107; -
removeInUseResources
Output only. [Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107; -
getInUseResourcesBuilder
public AllocationAggregateReservationReservedResourceInfo.Builder getInUseResourcesBuilder(int index) Output only. [Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107; -
getInUseResourcesOrBuilder
public AllocationAggregateReservationReservedResourceInfoOrBuilder getInUseResourcesOrBuilder(int index) Output only. [Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;- Specified by:
getInUseResourcesOrBuilderin interfaceAllocationAggregateReservationOrBuilder
-
getInUseResourcesOrBuilderList
public List<? extends AllocationAggregateReservationReservedResourceInfoOrBuilder> getInUseResourcesOrBuilderList()Output only. [Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107;- Specified by:
getInUseResourcesOrBuilderListin interfaceAllocationAggregateReservationOrBuilder
-
addInUseResourcesBuilder
Output only. [Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107; -
addInUseResourcesBuilder
public AllocationAggregateReservationReservedResourceInfo.Builder addInUseResourcesBuilder(int index) Output only. [Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107; -
getInUseResourcesBuilderList
public List<AllocationAggregateReservationReservedResourceInfo.Builder> getInUseResourcesBuilderList()Output only. [Output only] List of resources currently in use.
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107; -
getReservedResourcesList
List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;- Specified by:
getReservedResourcesListin interfaceAllocationAggregateReservationOrBuilder
-
getReservedResourcesCount
public int getReservedResourcesCount()List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;- Specified by:
getReservedResourcesCountin interfaceAllocationAggregateReservationOrBuilder
-
getReservedResources
List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;- Specified by:
getReservedResourcesin interfaceAllocationAggregateReservationOrBuilder
-
setReservedResources
public AllocationAggregateReservation.Builder setReservedResources(int index, AllocationAggregateReservationReservedResourceInfo value) List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742; -
setReservedResources
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; -
addReservedResources
public AllocationAggregateReservation.Builder addReservedResources(AllocationAggregateReservationReservedResourceInfo value) List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742; -
addReservedResources
public AllocationAggregateReservation.Builder addReservedResources(int index, AllocationAggregateReservationReservedResourceInfo value) List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742; -
addReservedResources
public AllocationAggregateReservation.Builder addReservedResources(AllocationAggregateReservationReservedResourceInfo.Builder builderForValue) List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742; -
addReservedResources
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; -
addAllReservedResources
public AllocationAggregateReservation.Builder addAllReservedResources(Iterable<? extends AllocationAggregateReservationReservedResourceInfo> values) List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742; -
clearReservedResources
List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742; -
removeReservedResources
List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742; -
getReservedResourcesBuilder
public AllocationAggregateReservationReservedResourceInfo.Builder getReservedResourcesBuilder(int index) List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742; -
getReservedResourcesOrBuilder
public AllocationAggregateReservationReservedResourceInfoOrBuilder getReservedResourcesOrBuilder(int index) List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;- Specified by:
getReservedResourcesOrBuilderin interfaceAllocationAggregateReservationOrBuilder
-
getReservedResourcesOrBuilderList
public List<? extends AllocationAggregateReservationReservedResourceInfoOrBuilder> getReservedResourcesOrBuilderList()List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742;- Specified by:
getReservedResourcesOrBuilderListin interfaceAllocationAggregateReservationOrBuilder
-
addReservedResourcesBuilder
List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742; -
addReservedResourcesBuilder
public AllocationAggregateReservationReservedResourceInfo.Builder addReservedResourcesBuilder(int index) List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742; -
getReservedResourcesBuilderList
public List<AllocationAggregateReservationReservedResourceInfo.Builder> getReservedResourcesBuilderList()List of reserved resources (CPUs, memory, accelerators).
repeated .google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742; -
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;- Specified by:
hasVmFamilyin interfaceAllocationAggregateReservationOrBuilder- Returns:
- Whether the vmFamily field is set.
-
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;- Specified by:
getVmFamilyin interfaceAllocationAggregateReservationOrBuilder- Returns:
- The vmFamily.
-
getVmFamilyBytes
public 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;- Specified by:
getVmFamilyBytesin interfaceAllocationAggregateReservationOrBuilder- Returns:
- The bytes for vmFamily.
-
setVmFamily
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;- Parameters:
value- The vmFamily to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setVmFamilyBytes
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;- Parameters:
value- The bytes for vmFamily to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasWorkloadTypein interfaceAllocationAggregateReservationOrBuilder- Returns:
- Whether the workloadType field is set.
-
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;- Specified by:
getWorkloadTypein interfaceAllocationAggregateReservationOrBuilder- Returns:
- The workloadType.
-
getWorkloadTypeBytes
public 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;- Specified by:
getWorkloadTypeBytesin interfaceAllocationAggregateReservationOrBuilder- Returns:
- The bytes for workloadType.
-
setWorkloadType
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;- Parameters:
value- The workloadType to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setWorkloadTypeBytes
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;- Parameters:
value- The bytes for workloadType to set.- Returns:
- This builder for chaining.
-