Class InstanceConsumptionInfo.Builder (1.19.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InstanceConsumptionInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InstanceConsumptionInfo.Builder
Overrides

build()

public InstanceConsumptionInfo build()
Returns
TypeDescription
InstanceConsumptionInfo

buildPartial()

public InstanceConsumptionInfo buildPartial()
Returns
TypeDescription
InstanceConsumptionInfo

clear()

public InstanceConsumptionInfo.Builder clear()
Returns
TypeDescription
InstanceConsumptionInfo.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public InstanceConsumptionInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
InstanceConsumptionInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public InstanceConsumptionInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
InstanceConsumptionInfo.Builder
Overrides

clone()

public InstanceConsumptionInfo.Builder clone()
Returns
TypeDescription
InstanceConsumptionInfo.Builder
Overrides

getDefaultInstanceForType()

public InstanceConsumptionInfo getDefaultInstanceForType()
Returns
TypeDescription
InstanceConsumptionInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGuestCpus()

public int getGuestCpus()

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

optional int32 guest_cpus = 393356754;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The memoryMb.

getMinNodeCpus()

public int getMinNodeCpus()

The minimal guaranteed number of virtual CPUs that are reserved.

optional int32 min_node_cpus = 317231675;

Returns
TypeDescription
int

The minNodeCpus.

hasGuestCpus()

public boolean hasGuestCpus()

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

optional int32 guest_cpus = 393356754;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the minNodeCpus field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InstanceConsumptionInfo other)

public InstanceConsumptionInfo.Builder mergeFrom(InstanceConsumptionInfo other)
Parameter
NameDescription
otherInstanceConsumptionInfo
Returns
TypeDescription
InstanceConsumptionInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InstanceConsumptionInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstanceConsumptionInfo.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public InstanceConsumptionInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
InstanceConsumptionInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstanceConsumptionInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InstanceConsumptionInfo.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public InstanceConsumptionInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The guestCpus to set.

Returns
TypeDescription
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
NameDescription
valueint

The localSsdGb to set.

Returns
TypeDescription
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
NameDescription
valueint

The memoryMb to set.

Returns
TypeDescription
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
NameDescription
valueint

The minNodeCpus to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
InstanceConsumptionInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final InstanceConsumptionInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InstanceConsumptionInfo.Builder
Overrides