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.GeneratedMessage.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.GeneratedMessage.Builder<AllocationSpecificSKUReservation.Builder>
implements AllocationSpecificSKUReservationOrBuilder
This reservation type allows to pre allocate specific instance configuration.Protobuf type
google.cloud.compute.v1.AllocationSpecificSKUReservation-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Specifies the number of resources that are allocated.The instance properties for the reservation.Output only.Specifies the instance template to create the reservation.longOutput only.longgetCount()Specifies the number of resources that are allocated.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe instance properties for the reservation.The instance properties for the reservation.The instance properties for the reservation.longOutput only.Specifies the instance template to create the reservation.com.google.protobuf.ByteStringSpecifies the instance template to create the reservation.booleanOutput only.booleanhasCount()Specifies the number of resources that are allocated.booleanThe instance properties for the reservation.booleanOutput only.booleanSpecifies the instance template to create the reservation.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The instance properties for the reservation.setAssuredCount(long value) Output only.setCount(long value) Specifies the number of resources that are allocated.The instance properties for the reservation.setInstanceProperties(AllocationSpecificSKUAllocationReservedInstanceProperties.Builder builderForValue) The instance properties for the reservation.setInUseCount(long value) Output only.setSourceInstanceTemplate(String value) Specifies the instance template to create the reservation.setSourceInstanceTemplateBytes(com.google.protobuf.ByteString value) Specifies the instance template to create the reservation.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AllocationSpecificSKUReservation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<AllocationSpecificSKUReservation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AllocationSpecificSKUReservation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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. [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. [Output Only] Indicates how many instances are actually usable currently.
optional int64 assured_count = 281197645;- Specified by:
getAssuredCountin interfaceAllocationSpecificSKUReservationOrBuilder- Returns:
- The assuredCount.
-
setAssuredCount
Output only. [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
Output only. [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
Specifies the number of resources that are allocated.
optional int64 count = 94851343;- Parameters:
value- The count to set.- Returns:
- This builder for chaining.
-
clearCount
Specifies the number of resources that are allocated.
optional int64 count = 94851343;- Returns:
- This builder for chaining.
-
hasInUseCount
public boolean hasInUseCount()Output only. [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. [Output Only] Indicates how many instances are in use.
optional int64 in_use_count = 493458877;- Specified by:
getInUseCountin interfaceAllocationSpecificSKUReservationOrBuilder- Returns:
- The inUseCount.
-
setInUseCount
Output only. [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
Output only. [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
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
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
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
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
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.
-