Package com.google.cloud.compute.v1
Class InstanceConsumptionInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InstanceConsumptionInfo.Builder>
com.google.cloud.compute.v1.InstanceConsumptionInfo.Builder
- All Implemented Interfaces:
InstanceConsumptionInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- InstanceConsumptionInfo
public static final class InstanceConsumptionInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<InstanceConsumptionInfo.Builder>
implements InstanceConsumptionInfoOrBuilder
Protobuf type
google.cloud.compute.v1.InstanceConsumptionInfo-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintOutput only.intOutput only.intOutput only.intOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(InstanceConsumptionInfo other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setGuestCpus(int value) Output only.setLocalSsdGb(int value) Output only.setMemoryMb(int value) Output only.setMinNodeCpus(int value) Output only.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<InstanceConsumptionInfo.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<InstanceConsumptionInfo.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<InstanceConsumptionInfo.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<InstanceConsumptionInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<InstanceConsumptionInfo.Builder>
-
mergeFrom
public InstanceConsumptionInfo.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<InstanceConsumptionInfo.Builder>- Throws:
IOException
-
hasGuestCpus
public boolean hasGuestCpus()Output only. The number of virtual CPUs that are available to the instance.
optional int32 guest_cpus = 393356754;- Specified by:
hasGuestCpusin interfaceInstanceConsumptionInfoOrBuilder- Returns:
- Whether the guestCpus field is set.
-
getGuestCpus
public int getGuestCpus()Output only. The number of virtual CPUs that are available to the instance.
optional int32 guest_cpus = 393356754;- Specified by:
getGuestCpusin interfaceInstanceConsumptionInfoOrBuilder- Returns:
- The guestCpus.
-
setGuestCpus
Output only. The number of virtual CPUs that are available to the instance.
optional int32 guest_cpus = 393356754;- Parameters:
value- The guestCpus to set.- Returns:
- This builder for chaining.
-
clearGuestCpus
Output only. The number of virtual CPUs that are available to the instance.
optional int32 guest_cpus = 393356754;- Returns:
- This builder for chaining.
-
hasLocalSsdGb
public boolean hasLocalSsdGb()Output only. The amount of local SSD storage available to the instance, defined in GiB.
optional int32 local_ssd_gb = 329237578;- Specified by:
hasLocalSsdGbin interfaceInstanceConsumptionInfoOrBuilder- Returns:
- Whether the localSsdGb field is set.
-
getLocalSsdGb
public int getLocalSsdGb()Output only. The amount of local SSD storage available to the instance, defined in GiB.
optional int32 local_ssd_gb = 329237578;- Specified by:
getLocalSsdGbin interfaceInstanceConsumptionInfoOrBuilder- Returns:
- The localSsdGb.
-
setLocalSsdGb
Output only. The amount of local SSD storage available to the instance, defined in GiB.
optional int32 local_ssd_gb = 329237578;- Parameters:
value- The localSsdGb to set.- Returns:
- This builder for chaining.
-
clearLocalSsdGb
Output only. The amount of local SSD storage available to the instance, defined in GiB.
optional int32 local_ssd_gb = 329237578;- Returns:
- This builder for chaining.
-
hasMemoryMb
public boolean hasMemoryMb()Output only. The amount of physical memory available to the instance, defined in MiB.
optional int32 memory_mb = 116001171;- Specified by:
hasMemoryMbin interfaceInstanceConsumptionInfoOrBuilder- Returns:
- Whether the memoryMb field is set.
-
getMemoryMb
public int getMemoryMb()Output only. The amount of physical memory available to the instance, defined in MiB.
optional int32 memory_mb = 116001171;- Specified by:
getMemoryMbin interfaceInstanceConsumptionInfoOrBuilder- Returns:
- The memoryMb.
-
setMemoryMb
Output only. The amount of physical memory available to the instance, defined in MiB.
optional int32 memory_mb = 116001171;- Parameters:
value- The memoryMb to set.- Returns:
- This builder for chaining.
-
clearMemoryMb
Output only. The amount of physical memory available to the instance, defined in MiB.
optional int32 memory_mb = 116001171;- Returns:
- This builder for chaining.
-
hasMinNodeCpus
public boolean hasMinNodeCpus()Output only. The minimal guaranteed number of virtual CPUs that are reserved.
optional int32 min_node_cpus = 317231675;- Specified by:
hasMinNodeCpusin interfaceInstanceConsumptionInfoOrBuilder- Returns:
- Whether the minNodeCpus field is set.
-
getMinNodeCpus
public int getMinNodeCpus()Output only. The minimal guaranteed number of virtual CPUs that are reserved.
optional int32 min_node_cpus = 317231675;- Specified by:
getMinNodeCpusin interfaceInstanceConsumptionInfoOrBuilder- Returns:
- The minNodeCpus.
-
setMinNodeCpus
Output only. The minimal guaranteed number of virtual CPUs that are reserved.
optional int32 min_node_cpus = 317231675;- Parameters:
value- The minNodeCpus to set.- Returns:
- This builder for chaining.
-
clearMinNodeCpus
Output only. The minimal guaranteed number of virtual CPUs that are reserved.
optional int32 min_node_cpus = 317231675;- Returns:
- This builder for chaining.
-