Send feedback
Class AllocationSpecificSKUReservation.Builder (1.6.0-beta)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.6.0-beta keyboard_arrow_down
public static final class AllocationSpecificSKUReservation . Builder extends GeneratedMessageV3 . Builder<AllocationSpecificSKUReservation . Builder > implements AllocationSpecificSKUReservationOrBuilder
This reservation type allows to pre allocate specific instance configuration. Next ID: 5
Protobuf type google.cloud.compute.v1.AllocationSpecificSKUReservation
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AllocationSpecificSKUReservation . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public AllocationSpecificSKUReservation build ()
Returns
buildPartial()
public AllocationSpecificSKUReservation buildPartial ()
Returns
clear()
public AllocationSpecificSKUReservation . Builder clear ()
Returns
Overrides
clearCount()
public AllocationSpecificSKUReservation . Builder clearCount ()
Specifies the number of resources that are allocated.
optional int64 count = 94851343;
Returns
clearField(Descriptors.FieldDescriptor field)
public AllocationSpecificSKUReservation . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearInUseCount()
public AllocationSpecificSKUReservation . Builder clearInUseCount ()
[Output Only] Indicates how many instances are in use.
optional int64 in_use_count = 493458877;
Returns
clearInstanceProperties()
public AllocationSpecificSKUReservation . Builder clearInstanceProperties ()
The instance properties for the reservation.
optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public AllocationSpecificSKUReservation . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clone()
public AllocationSpecificSKUReservation . Builder clone ()
Returns
Overrides
getCount()
Specifies the number of resources that are allocated.
optional int64 count = 94851343;
Returns
Type Description long The count.
getDefaultInstanceForType()
public AllocationSpecificSKUReservation getDefaultInstanceForType ()
Returns
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getInUseCount()
public long getInUseCount ()
[Output Only] Indicates how many instances are in use.
optional int64 in_use_count = 493458877;
Returns
Type Description long The inUseCount.
getInstanceProperties()
public AllocationSpecificSKUAllocationReservedInstanceProperties getInstanceProperties ()
The instance properties for the reservation.
optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;
Returns
getInstancePropertiesBuilder()
public AllocationSpecificSKUAllocationReservedInstanceProperties . Builder getInstancePropertiesBuilder ()
The instance properties for the reservation.
optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;
Returns
getInstancePropertiesOrBuilder()
public AllocationSpecificSKUAllocationReservedInstancePropertiesOrBuilder getInstancePropertiesOrBuilder ()
The instance properties for the reservation.
optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;
Returns
hasCount()
public boolean hasCount ()
Specifies the number of resources that are allocated.
optional int64 count = 94851343;
Returns
Type Description boolean Whether the count field is set.
hasInUseCount()
public boolean hasInUseCount ()
[Output Only] Indicates how many instances are in use.
optional int64 in_use_count = 493458877;
Returns
Type Description boolean Whether the inUseCount field is set.
hasInstanceProperties()
public boolean hasInstanceProperties ()
The instance properties for the reservation.
optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;
Returns
Type Description boolean Whether the instanceProperties field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(AllocationSpecificSKUReservation other)
public AllocationSpecificSKUReservation . Builder mergeFrom ( AllocationSpecificSKUReservation other )
Parameter
Returns
public AllocationSpecificSKUReservation . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AllocationSpecificSKUReservation . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeInstanceProperties(AllocationSpecificSKUAllocationReservedInstanceProperties value)
public AllocationSpecificSKUReservation . Builder mergeInstanceProperties ( AllocationSpecificSKUAllocationReservedInstanceProperties value )
The instance properties for the reservation.
optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AllocationSpecificSKUReservation . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setCount(long value)
public AllocationSpecificSKUReservation . Builder setCount ( long value )
Specifies the number of resources that are allocated.
optional int64 count = 94851343;
Parameter
Name Description value long
The count to set.
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public AllocationSpecificSKUReservation . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setInUseCount(long value)
public AllocationSpecificSKUReservation . Builder setInUseCount ( long value )
[Output Only] Indicates how many instances are in use.
optional int64 in_use_count = 493458877;
Parameter
Name Description value long
The inUseCount to set.
Returns
setInstanceProperties(AllocationSpecificSKUAllocationReservedInstanceProperties value)
public AllocationSpecificSKUReservation . Builder setInstanceProperties ( AllocationSpecificSKUAllocationReservedInstanceProperties value )
The instance properties for the reservation.
optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;
Parameter
Returns
setInstanceProperties(AllocationSpecificSKUAllocationReservedInstanceProperties.Builder builderForValue)
public AllocationSpecificSKUReservation . Builder setInstanceProperties ( AllocationSpecificSKUAllocationReservedInstanceProperties . Builder builderForValue )
The instance properties for the reservation.
optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AllocationSpecificSKUReservation . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AllocationSpecificSKUReservation . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
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-01-27 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-01-27 UTC."],[],[]]