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
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
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