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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AllocationSpecificSKUReservationbuild()AllocationSpecificSKUReservationbuildPartial()AllocationSpecificSKUReservation.Builderclear()AllocationSpecificSKUReservation.BuilderclearAssuredCount()[Output Only] Indicates how many instances are actually usable currently.AllocationSpecificSKUReservation.BuilderclearCount()Specifies the number of resources that are allocated.AllocationSpecificSKUReservation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AllocationSpecificSKUReservation.BuilderclearInstanceProperties()The instance properties for the reservation.AllocationSpecificSKUReservation.BuilderclearInUseCount()[Output Only] Indicates how many instances are in use.AllocationSpecificSKUReservation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AllocationSpecificSKUReservation.BuilderclearSourceInstanceTemplate()Specifies the instance template to create the reservation.AllocationSpecificSKUReservation.Builderclone()longgetAssuredCount()[Output Only] Indicates how many instances are actually usable currently.longgetCount()Specifies the number of resources that are allocated.AllocationSpecificSKUReservationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()AllocationSpecificSKUAllocationReservedInstancePropertiesgetInstanceProperties()The instance properties for the reservation.AllocationSpecificSKUAllocationReservedInstanceProperties.BuildergetInstancePropertiesBuilder()The instance properties for the reservation.AllocationSpecificSKUAllocationReservedInstancePropertiesOrBuildergetInstancePropertiesOrBuilder()The instance properties for the reservation.longgetInUseCount()[Output Only] Indicates how many instances are in use.StringgetSourceInstanceTemplate()Specifies the instance template to create the reservation.com.google.protobuf.ByteStringgetSourceInstanceTemplateBytes()Specifies the instance template to create the reservation.booleanhasAssuredCount()[Output Only] Indicates how many instances are actually usable currently.booleanhasCount()Specifies the number of resources that are allocated.booleanhasInstanceProperties()The instance properties for the reservation.booleanhasInUseCount()[Output Only] Indicates how many instances are in use.booleanhasSourceInstanceTemplate()Specifies the instance template to create the reservation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AllocationSpecificSKUReservation.BuildermergeFrom(AllocationSpecificSKUReservation other)AllocationSpecificSKUReservation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AllocationSpecificSKUReservation.BuildermergeFrom(com.google.protobuf.Message other)AllocationSpecificSKUReservation.BuildermergeInstanceProperties(AllocationSpecificSKUAllocationReservedInstanceProperties value)The instance properties for the reservation.AllocationSpecificSKUReservation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AllocationSpecificSKUReservation.BuildersetAssuredCount(long value)[Output Only] Indicates how many instances are actually usable currently.AllocationSpecificSKUReservation.BuildersetCount(long value)Specifies the number of resources that are allocated.AllocationSpecificSKUReservation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AllocationSpecificSKUReservation.BuildersetInstanceProperties(AllocationSpecificSKUAllocationReservedInstanceProperties value)The instance properties for the reservation.AllocationSpecificSKUReservation.BuildersetInstanceProperties(AllocationSpecificSKUAllocationReservedInstanceProperties.Builder builderForValue)The instance properties for the reservation.AllocationSpecificSKUReservation.BuildersetInUseCount(long value)[Output Only] Indicates how many instances are in use.AllocationSpecificSKUReservation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AllocationSpecificSKUReservation.BuildersetSourceInstanceTemplate(String value)Specifies the instance template to create the reservation.AllocationSpecificSKUReservation.BuildersetSourceInstanceTemplateBytes(com.google.protobuf.ByteString value)Specifies the instance template to create the reservation.AllocationSpecificSKUReservation.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder>
-
clear
public AllocationSpecificSKUReservation.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder>
-
getDefaultInstanceForType
public AllocationSpecificSKUReservation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AllocationSpecificSKUReservation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AllocationSpecificSKUReservation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AllocationSpecificSKUReservation.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder>
-
setField
public AllocationSpecificSKUReservation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder>
-
clearField
public AllocationSpecificSKUReservation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder>
-
clearOneof
public AllocationSpecificSKUReservation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder>
-
setRepeatedField
public AllocationSpecificSKUReservation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder>
-
addRepeatedField
public AllocationSpecificSKUReservation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder>
-
mergeFrom
public AllocationSpecificSKUReservation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AllocationSpecificSKUReservation.Builder>
-
mergeFrom
public AllocationSpecificSKUReservation.Builder mergeFrom(AllocationSpecificSKUReservation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasAssuredCountin 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:
getAssuredCountin 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:
hasCountin 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:
getCountin 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:
hasInUseCountin 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:
getInUseCountin 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:
hasInstancePropertiesin 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:
getInstancePropertiesin 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:
getInstancePropertiesOrBuilderin 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:
hasSourceInstanceTemplatein 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:
getSourceInstanceTemplatein 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:
getSourceInstanceTemplateBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder>
-
mergeUnknownFields
public final AllocationSpecificSKUReservation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder>
-
-