Class AllocationSpecificSKUReservation.Builder (1.24.0)

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: 6

Protobuf type google.cloud.compute.v1.AllocationSpecificSKUReservation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AllocationSpecificSKUReservation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AllocationSpecificSKUReservation.Builder
Overrides

build()

public AllocationSpecificSKUReservation build()
Returns
TypeDescription
AllocationSpecificSKUReservation

buildPartial()

public AllocationSpecificSKUReservation buildPartial()
Returns
TypeDescription
AllocationSpecificSKUReservation

clear()

public AllocationSpecificSKUReservation.Builder clear()
Returns
TypeDescription
AllocationSpecificSKUReservation.Builder
Overrides

clearAssuredCount()

public AllocationSpecificSKUReservation.Builder clearAssuredCount()

[Output Only] Indicates how many instances are actually usable currently.

optional int64 assured_count = 281197645;

Returns
TypeDescription
AllocationSpecificSKUReservation.Builder

This builder for chaining.

clearCount()

public AllocationSpecificSKUReservation.Builder clearCount()

Specifies the number of resources that are allocated.

optional int64 count = 94851343;

Returns
TypeDescription
AllocationSpecificSKUReservation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AllocationSpecificSKUReservation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AllocationSpecificSKUReservation.Builder
Overrides

clearInUseCount()

public AllocationSpecificSKUReservation.Builder clearInUseCount()

[Output Only] Indicates how many instances are in use.

optional int64 in_use_count = 493458877;

Returns
TypeDescription
AllocationSpecificSKUReservation.Builder

This builder for chaining.

clearInstanceProperties()

public AllocationSpecificSKUReservation.Builder clearInstanceProperties()

The instance properties for the reservation.

optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;

Returns
TypeDescription
AllocationSpecificSKUReservation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AllocationSpecificSKUReservation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AllocationSpecificSKUReservation.Builder
Overrides

clearSourceInstanceTemplate()

public AllocationSpecificSKUReservation.Builder clearSourceInstanceTemplate()

Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field. This field is optional, and it can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate

optional string source_instance_template = 332423616;

Returns
TypeDescription
AllocationSpecificSKUReservation.Builder

This builder for chaining.

clone()

public AllocationSpecificSKUReservation.Builder clone()
Returns
TypeDescription
AllocationSpecificSKUReservation.Builder
Overrides

getAssuredCount()

public long getAssuredCount()

[Output Only] Indicates how many instances are actually usable currently.

optional int64 assured_count = 281197645;

Returns
TypeDescription
long

The assuredCount.

getCount()

public long getCount()

Specifies the number of resources that are allocated.

optional int64 count = 94851343;

Returns
TypeDescription
long

The count.

getDefaultInstanceForType()

public AllocationSpecificSKUReservation getDefaultInstanceForType()
Returns
TypeDescription
AllocationSpecificSKUReservation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInUseCount()

public long getInUseCount()

[Output Only] Indicates how many instances are in use.

optional int64 in_use_count = 493458877;

Returns
TypeDescription
long

The inUseCount.

getInstanceProperties()

public AllocationSpecificSKUAllocationReservedInstanceProperties getInstanceProperties()

The instance properties for the reservation.

optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;

Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties

The instanceProperties.

getInstancePropertiesBuilder()

public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder getInstancePropertiesBuilder()

The instance properties for the reservation.

optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;

Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstanceProperties.Builder

getInstancePropertiesOrBuilder()

public AllocationSpecificSKUAllocationReservedInstancePropertiesOrBuilder getInstancePropertiesOrBuilder()

The instance properties for the reservation.

optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;

Returns
TypeDescription
AllocationSpecificSKUAllocationReservedInstancePropertiesOrBuilder

getSourceInstanceTemplate()

public String getSourceInstanceTemplate()

Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field. This field is optional, and it can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate

optional string source_instance_template = 332423616;

Returns
TypeDescription
String

The sourceInstanceTemplate.

getSourceInstanceTemplateBytes()

public ByteString getSourceInstanceTemplateBytes()

Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field. This field is optional, and it can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate

optional string source_instance_template = 332423616;

Returns
TypeDescription
ByteString

The bytes for sourceInstanceTemplate.

hasAssuredCount()

public boolean hasAssuredCount()

[Output Only] Indicates how many instances are actually usable currently.

optional int64 assured_count = 281197645;

Returns
TypeDescription
boolean

Whether the assuredCount field is set.

hasCount()

public boolean hasCount()

Specifies the number of resources that are allocated.

optional int64 count = 94851343;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the instanceProperties field is set.

hasSourceInstanceTemplate()

public boolean hasSourceInstanceTemplate()

Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field. This field is optional, and it can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate

optional string source_instance_template = 332423616;

Returns
TypeDescription
boolean

Whether the sourceInstanceTemplate field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AllocationSpecificSKUReservation other)

public AllocationSpecificSKUReservation.Builder mergeFrom(AllocationSpecificSKUReservation other)
Parameter
NameDescription
otherAllocationSpecificSKUReservation
Returns
TypeDescription
AllocationSpecificSKUReservation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AllocationSpecificSKUReservation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AllocationSpecificSKUReservation.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AllocationSpecificSKUReservation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AllocationSpecificSKUReservation.Builder
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
NameDescription
valueAllocationSpecificSKUAllocationReservedInstanceProperties
Returns
TypeDescription
AllocationSpecificSKUReservation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AllocationSpecificSKUReservation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AllocationSpecificSKUReservation.Builder
Overrides

setAssuredCount(long value)

public AllocationSpecificSKUReservation.Builder setAssuredCount(long value)

[Output Only] Indicates how many instances are actually usable currently.

optional int64 assured_count = 281197645;

Parameter
NameDescription
valuelong

The assuredCount to set.

Returns
TypeDescription
AllocationSpecificSKUReservation.Builder

This builder for chaining.

setCount(long value)

public AllocationSpecificSKUReservation.Builder setCount(long value)

Specifies the number of resources that are allocated.

optional int64 count = 94851343;

Parameter
NameDescription
valuelong

The count to set.

Returns
TypeDescription
AllocationSpecificSKUReservation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AllocationSpecificSKUReservation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AllocationSpecificSKUReservation.Builder
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
NameDescription
valuelong

The inUseCount to set.

Returns
TypeDescription
AllocationSpecificSKUReservation.Builder

This builder for chaining.

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
NameDescription
valueAllocationSpecificSKUAllocationReservedInstanceProperties
Returns
TypeDescription
AllocationSpecificSKUReservation.Builder

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
NameDescription
builderForValueAllocationSpecificSKUAllocationReservedInstanceProperties.Builder
Returns
TypeDescription
AllocationSpecificSKUReservation.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AllocationSpecificSKUReservation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AllocationSpecificSKUReservation.Builder
Overrides

setSourceInstanceTemplate(String value)

public AllocationSpecificSKUReservation.Builder setSourceInstanceTemplate(String value)

Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field. This field is optional, and it can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate

optional string source_instance_template = 332423616;

Parameter
NameDescription
valueString

The sourceInstanceTemplate to set.

Returns
TypeDescription
AllocationSpecificSKUReservation.Builder

This builder for chaining.

setSourceInstanceTemplateBytes(ByteString value)

public AllocationSpecificSKUReservation.Builder setSourceInstanceTemplateBytes(ByteString value)

Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field. This field is optional, and it can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate

optional string source_instance_template = 332423616;

Parameter
NameDescription
valueByteString

The bytes for sourceInstanceTemplate to set.

Returns
TypeDescription
AllocationSpecificSKUReservation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AllocationSpecificSKUReservation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AllocationSpecificSKUReservation.Builder
Overrides