Send feedback
Class Allocation.SpecificSKUAllocation.Builder (0.1.0)
public static final class Allocation . SpecificSKUAllocation . Builder extends GeneratedMessageV3 . Builder<Allocation . SpecificSKUAllocation . Builder > implements Allocation . SpecificSKUAllocationOrBuilder
This reservation type allows to pre allocate specific instance
configuration.
Protobuf type google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Allocation . SpecificSKUAllocation . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public Allocation . SpecificSKUAllocation build ()
buildPartial()
public Allocation . SpecificSKUAllocation buildPartial ()
clear()
public Allocation . SpecificSKUAllocation . Builder clear ()
Overrides
clearAssuredCount()
public Allocation . SpecificSKUAllocation . Builder clearAssuredCount ()
Indicates how many instances are actually usable currently.
int64 assured_count = 4;
clearCount()
public Allocation . SpecificSKUAllocation . Builder clearCount ()
Specifies the number of resources that are allocated.
int64 count = 2;
clearField(Descriptors.FieldDescriptor field)
public Allocation . SpecificSKUAllocation . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearInstanceProperties()
public Allocation . SpecificSKUAllocation . Builder clearInstanceProperties ()
The instance properties for the reservation.
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties instance_properties = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public Allocation . SpecificSKUAllocation . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearUsedCount()
public Allocation . SpecificSKUAllocation . Builder clearUsedCount ()
Indicates how many instances are in use.
int64 used_count = 3;
clone()
public Allocation . SpecificSKUAllocation . Builder clone ()
Overrides
getAssuredCount()
public long getAssuredCount ()
Indicates how many instances are actually usable currently.
int64 assured_count = 4;
Returns
Type
Description
long
The assuredCount.
getCount()
Specifies the number of resources that are allocated.
int64 count = 2;
Returns
Type
Description
long
The count.
getDefaultInstanceForType()
public Allocation . SpecificSKUAllocation getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getInstanceProperties()
public Allocation . SpecificSKUAllocation . AllocatedInstanceProperties getInstanceProperties ()
The instance properties for the reservation.
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties instance_properties = 1;
getInstancePropertiesBuilder()
public Allocation . SpecificSKUAllocation . AllocatedInstanceProperties . Builder getInstancePropertiesBuilder ()
The instance properties for the reservation.
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties instance_properties = 1;
getInstancePropertiesOrBuilder()
public Allocation . SpecificSKUAllocation . AllocatedInstancePropertiesOrBuilder getInstancePropertiesOrBuilder ()
The instance properties for the reservation.
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties instance_properties = 1;
getUsedCount()
public long getUsedCount ()
Indicates how many instances are in use.
int64 used_count = 3;
Returns
Type
Description
long
The usedCount.
hasInstanceProperties()
public boolean hasInstanceProperties ()
The instance properties for the reservation.
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties instance_properties = 1;
Returns
Type
Description
boolean
Whether the instanceProperties field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(Allocation.SpecificSKUAllocation other)
public Allocation . SpecificSKUAllocation . Builder mergeFrom ( Allocation . SpecificSKUAllocation other )
public Allocation . SpecificSKUAllocation . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public Allocation . SpecificSKUAllocation . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeInstanceProperties(Allocation.SpecificSKUAllocation.AllocatedInstanceProperties value)
public Allocation . SpecificSKUAllocation . Builder mergeInstanceProperties ( Allocation . SpecificSKUAllocation . AllocatedInstanceProperties value )
The instance properties for the reservation.
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties instance_properties = 1;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Allocation . SpecificSKUAllocation . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setAssuredCount(long value)
public Allocation . SpecificSKUAllocation . Builder setAssuredCount ( long value )
Indicates how many instances are actually usable currently.
int64 assured_count = 4;
Parameter
Name
Description
value
long The assuredCount to set.
setCount(long value)
public Allocation . SpecificSKUAllocation . Builder setCount ( long value )
Specifies the number of resources that are allocated.
int64 count = 2;
Parameter
Name
Description
value
long The count to set.
setField(Descriptors.FieldDescriptor field, Object value)
public Allocation . SpecificSKUAllocation . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setInstanceProperties(Allocation.SpecificSKUAllocation.AllocatedInstanceProperties value)
public Allocation . SpecificSKUAllocation . Builder setInstanceProperties ( Allocation . SpecificSKUAllocation . AllocatedInstanceProperties value )
The instance properties for the reservation.
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties instance_properties = 1;
setInstanceProperties(Allocation.SpecificSKUAllocation.AllocatedInstanceProperties.Builder builderForValue)
public Allocation . SpecificSKUAllocation . Builder setInstanceProperties ( Allocation . SpecificSKUAllocation . AllocatedInstanceProperties . Builder builderForValue )
The instance properties for the reservation.
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties instance_properties = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Allocation . SpecificSKUAllocation . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Allocation . SpecificSKUAllocation . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setUsedCount(long value)
public Allocation . SpecificSKUAllocation . Builder setUsedCount ( long value )
Indicates how many instances are in use.
int64 used_count = 3;
Parameter
Name
Description
value
long The usedCount to set.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-28 UTC."],[],[]]