Package com.google.cloud.compute.v1
Class AllocationSpecificSKUReservation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder>
-
- com.google.cloud.compute.v1.AllocationSpecificSKUReservation.Builder
-
- All Implemented Interfaces:
AllocationSpecificSKUReservationOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- AllocationSpecificSKUReservation
public static final class AllocationSpecificSKUReservation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder> implements AllocationSpecificSKUReservationOrBuilder
This reservation type allows to pre allocate specific instance configuration. Next ID: 6
Protobuf typegoogle.cloud.compute.v1.AllocationSpecificSKUReservation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AllocationSpecificSKUReservation.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AllocationSpecificSKUReservation
build()
AllocationSpecificSKUReservation
buildPartial()
AllocationSpecificSKUReservation.Builder
clear()
AllocationSpecificSKUReservation.Builder
clearAssuredCount()
[Output Only] Indicates how many instances are actually usable currently.AllocationSpecificSKUReservation.Builder
clearCount()
Specifies the number of resources that are allocated.AllocationSpecificSKUReservation.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AllocationSpecificSKUReservation.Builder
clearInstanceProperties()
The instance properties for the reservation.AllocationSpecificSKUReservation.Builder
clearInUseCount()
[Output Only] Indicates how many instances are in use.AllocationSpecificSKUReservation.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AllocationSpecificSKUReservation.Builder
clearSourceInstanceTemplate()
Specifies the instance template to create the reservation.AllocationSpecificSKUReservation.Builder
clone()
long
getAssuredCount()
[Output Only] Indicates how many instances are actually usable currently.long
getCount()
Specifies the number of resources that are allocated.AllocationSpecificSKUReservation
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
AllocationSpecificSKUAllocationReservedInstanceProperties
getInstanceProperties()
The instance properties for the reservation.AllocationSpecificSKUAllocationReservedInstanceProperties.Builder
getInstancePropertiesBuilder()
The instance properties for the reservation.AllocationSpecificSKUAllocationReservedInstancePropertiesOrBuilder
getInstancePropertiesOrBuilder()
The instance properties for the reservation.long
getInUseCount()
[Output Only] Indicates how many instances are in use.String
getSourceInstanceTemplate()
Specifies the instance template to create the reservation.com.google.protobuf.ByteString
getSourceInstanceTemplateBytes()
Specifies the instance template to create the reservation.boolean
hasAssuredCount()
[Output Only] Indicates how many instances are actually usable currently.boolean
hasCount()
Specifies the number of resources that are allocated.boolean
hasInstanceProperties()
The instance properties for the reservation.boolean
hasInUseCount()
[Output Only] Indicates how many instances are in use.boolean
hasSourceInstanceTemplate()
Specifies the instance template to create the reservation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
AllocationSpecificSKUReservation.Builder
mergeFrom(AllocationSpecificSKUReservation other)
AllocationSpecificSKUReservation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AllocationSpecificSKUReservation.Builder
mergeFrom(com.google.protobuf.Message other)
AllocationSpecificSKUReservation.Builder
mergeInstanceProperties(AllocationSpecificSKUAllocationReservedInstanceProperties value)
The instance properties for the reservation.AllocationSpecificSKUReservation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AllocationSpecificSKUReservation.Builder
setAssuredCount(long value)
[Output Only] Indicates how many instances are actually usable currently.AllocationSpecificSKUReservation.Builder
setCount(long value)
Specifies the number of resources that are allocated.AllocationSpecificSKUReservation.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AllocationSpecificSKUReservation.Builder
setInstanceProperties(AllocationSpecificSKUAllocationReservedInstanceProperties value)
The instance properties for the reservation.AllocationSpecificSKUReservation.Builder
setInstanceProperties(AllocationSpecificSKUAllocationReservedInstanceProperties.Builder builderForValue)
The instance properties for the reservation.AllocationSpecificSKUReservation.Builder
setInUseCount(long value)
[Output Only] Indicates how many instances are in use.AllocationSpecificSKUReservation.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
AllocationSpecificSKUReservation.Builder
setSourceInstanceTemplate(String value)
Specifies the instance template to create the reservation.AllocationSpecificSKUReservation.Builder
setSourceInstanceTemplateBytes(com.google.protobuf.ByteString value)
Specifies the instance template to create the reservation.AllocationSpecificSKUReservation.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder>
-
clear
public AllocationSpecificSKUReservation.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder>
-
getDefaultInstanceForType
public AllocationSpecificSKUReservation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AllocationSpecificSKUReservation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AllocationSpecificSKUReservation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AllocationSpecificSKUReservation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder>
-
setField
public AllocationSpecificSKUReservation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder>
-
clearField
public AllocationSpecificSKUReservation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder>
-
clearOneof
public AllocationSpecificSKUReservation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder>
-
setRepeatedField
public AllocationSpecificSKUReservation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder>
-
addRepeatedField
public AllocationSpecificSKUReservation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder>
-
mergeFrom
public AllocationSpecificSKUReservation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AllocationSpecificSKUReservation.Builder>
-
mergeFrom
public AllocationSpecificSKUReservation.Builder mergeFrom(AllocationSpecificSKUReservation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder>
-
mergeFrom
public AllocationSpecificSKUReservation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AllocationSpecificSKUReservation.Builder>
- Throws:
IOException
-
hasAssuredCount
public boolean hasAssuredCount()
[Output Only] Indicates how many instances are actually usable currently.
optional int64 assured_count = 281197645;
- Specified by:
hasAssuredCount
in interfaceAllocationSpecificSKUReservationOrBuilder
- Returns:
- Whether the assuredCount field is set.
-
getAssuredCount
public long getAssuredCount()
[Output Only] Indicates how many instances are actually usable currently.
optional int64 assured_count = 281197645;
- Specified by:
getAssuredCount
in interfaceAllocationSpecificSKUReservationOrBuilder
- Returns:
- The assuredCount.
-
setAssuredCount
public AllocationSpecificSKUReservation.Builder setAssuredCount(long value)
[Output Only] Indicates how many instances are actually usable currently.
optional int64 assured_count = 281197645;
- Parameters:
value
- The assuredCount to set.- Returns:
- This builder for chaining.
-
clearAssuredCount
public AllocationSpecificSKUReservation.Builder clearAssuredCount()
[Output Only] Indicates how many instances are actually usable currently.
optional int64 assured_count = 281197645;
- Returns:
- This builder for chaining.
-
hasCount
public boolean hasCount()
Specifies the number of resources that are allocated.
optional int64 count = 94851343;
- Specified by:
hasCount
in interfaceAllocationSpecificSKUReservationOrBuilder
- Returns:
- Whether the count field is set.
-
getCount
public long getCount()
Specifies the number of resources that are allocated.
optional int64 count = 94851343;
- Specified by:
getCount
in interfaceAllocationSpecificSKUReservationOrBuilder
- Returns:
- The count.
-
setCount
public AllocationSpecificSKUReservation.Builder setCount(long value)
Specifies the number of resources that are allocated.
optional int64 count = 94851343;
- Parameters:
value
- The count to set.- Returns:
- This builder for chaining.
-
clearCount
public AllocationSpecificSKUReservation.Builder clearCount()
Specifies the number of resources that are allocated.
optional int64 count = 94851343;
- Returns:
- This builder for chaining.
-
hasInUseCount
public boolean hasInUseCount()
[Output Only] Indicates how many instances are in use.
optional int64 in_use_count = 493458877;
- Specified by:
hasInUseCount
in interfaceAllocationSpecificSKUReservationOrBuilder
- Returns:
- Whether the inUseCount field is set.
-
getInUseCount
public long getInUseCount()
[Output Only] Indicates how many instances are in use.
optional int64 in_use_count = 493458877;
- Specified by:
getInUseCount
in interfaceAllocationSpecificSKUReservationOrBuilder
- Returns:
- The inUseCount.
-
setInUseCount
public AllocationSpecificSKUReservation.Builder setInUseCount(long value)
[Output Only] Indicates how many instances are in use.
optional int64 in_use_count = 493458877;
- Parameters:
value
- The inUseCount to set.- Returns:
- This builder for chaining.
-
clearInUseCount
public AllocationSpecificSKUReservation.Builder clearInUseCount()
[Output Only] Indicates how many instances are in use.
optional int64 in_use_count = 493458877;
- Returns:
- This builder for chaining.
-
hasInstanceProperties
public boolean hasInstanceProperties()
The instance properties for the reservation.
optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;
- Specified by:
hasInstanceProperties
in interfaceAllocationSpecificSKUReservationOrBuilder
- Returns:
- Whether the instanceProperties field is set.
-
getInstanceProperties
public AllocationSpecificSKUAllocationReservedInstanceProperties getInstanceProperties()
The instance properties for the reservation.
optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;
- Specified by:
getInstanceProperties
in interfaceAllocationSpecificSKUReservationOrBuilder
- Returns:
- The instanceProperties.
-
setInstanceProperties
public AllocationSpecificSKUReservation.Builder setInstanceProperties(AllocationSpecificSKUAllocationReservedInstanceProperties value)
The instance properties for the reservation.
optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;
-
setInstanceProperties
public AllocationSpecificSKUReservation.Builder setInstanceProperties(AllocationSpecificSKUAllocationReservedInstanceProperties.Builder builderForValue)
The instance properties for the reservation.
optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;
-
mergeInstanceProperties
public AllocationSpecificSKUReservation.Builder mergeInstanceProperties(AllocationSpecificSKUAllocationReservedInstanceProperties value)
The instance properties for the reservation.
optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;
-
clearInstanceProperties
public AllocationSpecificSKUReservation.Builder clearInstanceProperties()
The instance properties for the reservation.
optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;
-
getInstancePropertiesBuilder
public AllocationSpecificSKUAllocationReservedInstanceProperties.Builder getInstancePropertiesBuilder()
The instance properties for the reservation.
optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;
-
getInstancePropertiesOrBuilder
public AllocationSpecificSKUAllocationReservedInstancePropertiesOrBuilder getInstancePropertiesOrBuilder()
The instance properties for the reservation.
optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;
- Specified by:
getInstancePropertiesOrBuilder
in interfaceAllocationSpecificSKUReservationOrBuilder
-
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;
- Specified by:
hasSourceInstanceTemplate
in interfaceAllocationSpecificSKUReservationOrBuilder
- Returns:
- Whether the sourceInstanceTemplate field is set.
-
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;
- Specified by:
getSourceInstanceTemplate
in interfaceAllocationSpecificSKUReservationOrBuilder
- Returns:
- The sourceInstanceTemplate.
-
getSourceInstanceTemplateBytes
public com.google.protobuf.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;
- Specified by:
getSourceInstanceTemplateBytes
in interfaceAllocationSpecificSKUReservationOrBuilder
- Returns:
- The bytes for sourceInstanceTemplate.
-
setSourceInstanceTemplate
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;
- Parameters:
value
- The sourceInstanceTemplate to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setSourceInstanceTemplateBytes
public AllocationSpecificSKUReservation.Builder setSourceInstanceTemplateBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for sourceInstanceTemplate to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final AllocationSpecificSKUReservation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder>
-
mergeUnknownFields
public final AllocationSpecificSKUReservation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder>
-
-