public static final class InstanceConsumptionInfo.Builder extends GeneratedMessage.Builder<InstanceConsumptionInfo.Builder> implements InstanceConsumptionInfoOrBuilder Protobuf type google.cloud.compute.v1.InstanceConsumptionInfo
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > InstanceConsumptionInfo.BuilderImplements
InstanceConsumptionInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public InstanceConsumptionInfo build()| Returns | |
|---|---|
| Type | Description |
InstanceConsumptionInfo |
|
buildPartial()
public InstanceConsumptionInfo buildPartial()| Returns | |
|---|---|
| Type | Description |
InstanceConsumptionInfo |
|
clear()
public InstanceConsumptionInfo.Builder clear()| Returns | |
|---|---|
| Type | Description |
InstanceConsumptionInfo.Builder |
|
clearGuestCpus()
public InstanceConsumptionInfo.Builder clearGuestCpus()Output only. The number of virtual CPUs that are available to the instance.
optional int32 guest_cpus = 393356754;
| Returns | |
|---|---|
| Type | Description |
InstanceConsumptionInfo.Builder |
This builder for chaining. |
clearLocalSsdGb()
public InstanceConsumptionInfo.Builder clearLocalSsdGb()Output only. The amount of local SSD storage available to the instance, defined in GiB.
optional int32 local_ssd_gb = 329237578;
| Returns | |
|---|---|
| Type | Description |
InstanceConsumptionInfo.Builder |
This builder for chaining. |
clearMemoryMb()
public InstanceConsumptionInfo.Builder clearMemoryMb()Output only. The amount of physical memory available to the instance, defined in MiB.
optional int32 memory_mb = 116001171;
| Returns | |
|---|---|
| Type | Description |
InstanceConsumptionInfo.Builder |
This builder for chaining. |
clearMinNodeCpus()
public InstanceConsumptionInfo.Builder clearMinNodeCpus()Output only. The minimal guaranteed number of virtual CPUs that are reserved.
optional int32 min_node_cpus = 317231675;
| Returns | |
|---|---|
| Type | Description |
InstanceConsumptionInfo.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public InstanceConsumptionInfo getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
InstanceConsumptionInfo |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getGuestCpus()
public int getGuestCpus()Output only. The number of virtual CPUs that are available to the instance.
optional int32 guest_cpus = 393356754;
| Returns | |
|---|---|
| Type | Description |
int |
The guestCpus. |
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;
| Returns | |
|---|---|
| Type | Description |
int |
The localSsdGb. |
getMemoryMb()
public int getMemoryMb()Output only. The amount of physical memory available to the instance, defined in MiB.
optional int32 memory_mb = 116001171;
| Returns | |
|---|---|
| Type | Description |
int |
The memoryMb. |
getMinNodeCpus()
public int getMinNodeCpus()Output only. The minimal guaranteed number of virtual CPUs that are reserved.
optional int32 min_node_cpus = 317231675;
| Returns | |
|---|---|
| Type | Description |
int |
The minNodeCpus. |
hasGuestCpus()
public boolean hasGuestCpus()Output only. The number of virtual CPUs that are available to the instance.
optional int32 guest_cpus = 393356754;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the guestCpus field is set. |
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;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the localSsdGb field is set. |
hasMemoryMb()
public boolean hasMemoryMb()Output only. The amount of physical memory available to the instance, defined in MiB.
optional int32 memory_mb = 116001171;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the memoryMb field is set. |
hasMinNodeCpus()
public boolean hasMinNodeCpus()Output only. The minimal guaranteed number of virtual CPUs that are reserved.
optional int32 min_node_cpus = 317231675;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the minNodeCpus field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(InstanceConsumptionInfo other)
public InstanceConsumptionInfo.Builder mergeFrom(InstanceConsumptionInfo other)| Parameter | |
|---|---|
| Name | Description |
other |
InstanceConsumptionInfo |
| Returns | |
|---|---|
| Type | Description |
InstanceConsumptionInfo.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public InstanceConsumptionInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
InstanceConsumptionInfo.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public InstanceConsumptionInfo.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
InstanceConsumptionInfo.Builder |
|
setGuestCpus(int value)
public InstanceConsumptionInfo.Builder setGuestCpus(int value)Output only. The number of virtual CPUs that are available to the instance.
optional int32 guest_cpus = 393356754;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe guestCpus to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceConsumptionInfo.Builder |
This builder for chaining. |
setLocalSsdGb(int value)
public InstanceConsumptionInfo.Builder setLocalSsdGb(int value)Output only. The amount of local SSD storage available to the instance, defined in GiB.
optional int32 local_ssd_gb = 329237578;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe localSsdGb to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceConsumptionInfo.Builder |
This builder for chaining. |
setMemoryMb(int value)
public InstanceConsumptionInfo.Builder setMemoryMb(int value)Output only. The amount of physical memory available to the instance, defined in MiB.
optional int32 memory_mb = 116001171;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe memoryMb to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceConsumptionInfo.Builder |
This builder for chaining. |
setMinNodeCpus(int value)
public InstanceConsumptionInfo.Builder setMinNodeCpus(int value)Output only. The minimal guaranteed number of virtual CPUs that are reserved.
optional int32 min_node_cpus = 317231675;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe minNodeCpus to set. |
| Returns | |
|---|---|
| Type | Description |
InstanceConsumptionInfo.Builder |
This builder for chaining. |