Class InstanceConsumptionInfo.Builder (1.65.0)

public static final class InstanceConsumptionInfo.Builder extends GeneratedMessageV3.Builder<InstanceConsumptionInfo.Builder> implements InstanceConsumptionInfoOrBuilder

Protobuf type google.cloud.compute.v1.InstanceConsumptionInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InstanceConsumptionInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InstanceConsumptionInfo.Builder
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public InstanceConsumptionInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
InstanceConsumptionInfo.Builder
Overrides

clearGuestCpus()

public InstanceConsumptionInfo.Builder clearGuestCpus()

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()

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()

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()

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public InstanceConsumptionInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
InstanceConsumptionInfo.Builder
Overrides

clone()

public InstanceConsumptionInfo.Builder clone()
Returns
Type Description
InstanceConsumptionInfo.Builder
Overrides

getDefaultInstanceForType()

public InstanceConsumptionInfo getDefaultInstanceForType()
Returns
Type Description
InstanceConsumptionInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGuestCpus()

public int getGuestCpus()

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()

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()

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()

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()

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()

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()

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()

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InstanceConsumptionInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InstanceConsumptionInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstanceConsumptionInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InstanceConsumptionInfo.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public InstanceConsumptionInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InstanceConsumptionInfo.Builder
Overrides

setGuestCpus(int value)

public InstanceConsumptionInfo.Builder setGuestCpus(int value)

The number of virtual CPUs that are available to the instance.

optional int32 guest_cpus = 393356754;

Parameter
Name Description
value int

The guestCpus to set.

Returns
Type Description
InstanceConsumptionInfo.Builder

This builder for chaining.

setLocalSsdGb(int value)

public InstanceConsumptionInfo.Builder setLocalSsdGb(int value)

The amount of local SSD storage available to the instance, defined in GiB.

optional int32 local_ssd_gb = 329237578;

Parameter
Name Description
value int

The localSsdGb to set.

Returns
Type Description
InstanceConsumptionInfo.Builder

This builder for chaining.

setMemoryMb(int value)

public InstanceConsumptionInfo.Builder setMemoryMb(int value)

The amount of physical memory available to the instance, defined in MiB.

optional int32 memory_mb = 116001171;

Parameter
Name Description
value int

The memoryMb to set.

Returns
Type Description
InstanceConsumptionInfo.Builder

This builder for chaining.

setMinNodeCpus(int value)

public InstanceConsumptionInfo.Builder setMinNodeCpus(int value)

The minimal guaranteed number of virtual CPUs that are reserved.

optional int32 min_node_cpus = 317231675;

Parameter
Name Description
value int

The minNodeCpus to set.

Returns
Type Description
InstanceConsumptionInfo.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public InstanceConsumptionInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
InstanceConsumptionInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final InstanceConsumptionInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InstanceConsumptionInfo.Builder
Overrides