public static final class InstanceConsumptionInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<InstanceConsumptionInfo.Builder> implements InstanceConsumptionInfoOrBuilder
Protobuf type
google.cloud.compute.v1.InstanceConsumptionInfo| Modifier and Type | Method and Description |
|---|---|
InstanceConsumptionInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
InstanceConsumptionInfo |
build() |
InstanceConsumptionInfo |
buildPartial() |
InstanceConsumptionInfo.Builder |
clear() |
InstanceConsumptionInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
InstanceConsumptionInfo.Builder |
clearGuestCpus()
The number of virtual CPUs that are available to the instance.
|
InstanceConsumptionInfo.Builder |
clearLocalSsdGb()
The amount of local SSD storage available to the instance, defined in GiB.
|
InstanceConsumptionInfo.Builder |
clearMemoryMb()
The amount of physical memory available to the instance, defined in MiB.
|
InstanceConsumptionInfo.Builder |
clearMinNodeCpus()
The minimal guaranteed number of virtual CPUs that are reserved.
|
InstanceConsumptionInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
InstanceConsumptionInfo.Builder |
clone() |
InstanceConsumptionInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getGuestCpus()
The number of virtual CPUs that are available to the instance.
|
int |
getLocalSsdGb()
The amount of local SSD storage available to the instance, defined in GiB.
|
int |
getMemoryMb()
The amount of physical memory available to the instance, defined in MiB.
|
int |
getMinNodeCpus()
The minimal guaranteed number of virtual CPUs that are reserved.
|
boolean |
hasGuestCpus()
The number of virtual CPUs that are available to the instance.
|
boolean |
hasLocalSsdGb()
The amount of local SSD storage available to the instance, defined in GiB.
|
boolean |
hasMemoryMb()
The amount of physical memory available to the instance, defined in MiB.
|
boolean |
hasMinNodeCpus()
The minimal guaranteed number of virtual CPUs that are reserved.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
InstanceConsumptionInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
InstanceConsumptionInfo.Builder |
mergeFrom(InstanceConsumptionInfo other) |
InstanceConsumptionInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
InstanceConsumptionInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
InstanceConsumptionInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
InstanceConsumptionInfo.Builder |
setGuestCpus(int value)
The number of virtual CPUs that are available to the instance.
|
InstanceConsumptionInfo.Builder |
setLocalSsdGb(int value)
The amount of local SSD storage available to the instance, defined in GiB.
|
InstanceConsumptionInfo.Builder |
setMemoryMb(int value)
The amount of physical memory available to the instance, defined in MiB.
|
InstanceConsumptionInfo.Builder |
setMinNodeCpus(int value)
The minimal guaranteed number of virtual CPUs that are reserved.
|
InstanceConsumptionInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
InstanceConsumptionInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceConsumptionInfo.Builder>public InstanceConsumptionInfo.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceConsumptionInfo.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceConsumptionInfo.Builder>public InstanceConsumptionInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic InstanceConsumptionInfo build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic InstanceConsumptionInfo buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic InstanceConsumptionInfo.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceConsumptionInfo.Builder>public InstanceConsumptionInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceConsumptionInfo.Builder>public InstanceConsumptionInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceConsumptionInfo.Builder>public InstanceConsumptionInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceConsumptionInfo.Builder>public InstanceConsumptionInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceConsumptionInfo.Builder>public InstanceConsumptionInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceConsumptionInfo.Builder>public InstanceConsumptionInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstanceConsumptionInfo.Builder>public InstanceConsumptionInfo.Builder mergeFrom(InstanceConsumptionInfo other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceConsumptionInfo.Builder>public InstanceConsumptionInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstanceConsumptionInfo.Builder>IOExceptionpublic boolean hasGuestCpus()
The number of virtual CPUs that are available to the instance.
optional int32 guest_cpus = 393356754;hasGuestCpus in interface InstanceConsumptionInfoOrBuilderpublic int getGuestCpus()
The number of virtual CPUs that are available to the instance.
optional int32 guest_cpus = 393356754;getGuestCpus in interface InstanceConsumptionInfoOrBuilderpublic InstanceConsumptionInfo.Builder setGuestCpus(int value)
The number of virtual CPUs that are available to the instance.
optional int32 guest_cpus = 393356754;value - The guestCpus to set.public InstanceConsumptionInfo.Builder clearGuestCpus()
The number of virtual CPUs that are available to the instance.
optional int32 guest_cpus = 393356754;public boolean hasLocalSsdGb()
The amount of local SSD storage available to the instance, defined in GiB.
optional int32 local_ssd_gb = 329237578;hasLocalSsdGb in interface InstanceConsumptionInfoOrBuilderpublic int getLocalSsdGb()
The amount of local SSD storage available to the instance, defined in GiB.
optional int32 local_ssd_gb = 329237578;getLocalSsdGb in interface InstanceConsumptionInfoOrBuilderpublic InstanceConsumptionInfo.Builder setLocalSsdGb(int value)
The amount of local SSD storage available to the instance, defined in GiB.
optional int32 local_ssd_gb = 329237578;value - The localSsdGb to set.public InstanceConsumptionInfo.Builder clearLocalSsdGb()
The amount of local SSD storage available to the instance, defined in GiB.
optional int32 local_ssd_gb = 329237578;public boolean hasMemoryMb()
The amount of physical memory available to the instance, defined in MiB.
optional int32 memory_mb = 116001171;hasMemoryMb in interface InstanceConsumptionInfoOrBuilderpublic int getMemoryMb()
The amount of physical memory available to the instance, defined in MiB.
optional int32 memory_mb = 116001171;getMemoryMb in interface InstanceConsumptionInfoOrBuilderpublic InstanceConsumptionInfo.Builder setMemoryMb(int value)
The amount of physical memory available to the instance, defined in MiB.
optional int32 memory_mb = 116001171;value - The memoryMb to set.public InstanceConsumptionInfo.Builder clearMemoryMb()
The amount of physical memory available to the instance, defined in MiB.
optional int32 memory_mb = 116001171;public boolean hasMinNodeCpus()
The minimal guaranteed number of virtual CPUs that are reserved.
optional int32 min_node_cpus = 317231675;hasMinNodeCpus in interface InstanceConsumptionInfoOrBuilderpublic int getMinNodeCpus()
The minimal guaranteed number of virtual CPUs that are reserved.
optional int32 min_node_cpus = 317231675;getMinNodeCpus in interface InstanceConsumptionInfoOrBuilderpublic InstanceConsumptionInfo.Builder setMinNodeCpus(int value)
The minimal guaranteed number of virtual CPUs that are reserved.
optional int32 min_node_cpus = 317231675;value - The minNodeCpus to set.public InstanceConsumptionInfo.Builder clearMinNodeCpus()
The minimal guaranteed number of virtual CPUs that are reserved.
optional int32 min_node_cpus = 317231675;public final InstanceConsumptionInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceConsumptionInfo.Builder>public final InstanceConsumptionInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceConsumptionInfo.Builder>Copyright © 2023 Google LLC. All rights reserved.