Class InstanceGroupManagerStatusInstanceStatusSummary.Builder (1.105.0)

public static final class InstanceGroupManagerStatusInstanceStatusSummary.Builder extends GeneratedMessage.Builder<InstanceGroupManagerStatusInstanceStatusSummary.Builder> implements InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder

The list of instance statuses and the number of instances in this managed instance group that have the status. For more information about how to interpret each status check the instance lifecycle documentation. Currently only shown for TPU MIGs.

Protobuf type google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary

Static Methods

getDescriptor()

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

Methods

build()

public InstanceGroupManagerStatusInstanceStatusSummary build()
Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary

buildPartial()

public InstanceGroupManagerStatusInstanceStatusSummary buildPartial()
Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary

clear()

public InstanceGroupManagerStatusInstanceStatusSummary.Builder clear()
Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder
Overrides

clearDeprovisioning()

public InstanceGroupManagerStatusInstanceStatusSummary.Builder clearDeprovisioning()

Output only. The number of instances in the managed instance group that have DEPROVISIONING status.

optional int32 deprovisioning = 462169582;

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.

clearNonExistent()

public InstanceGroupManagerStatusInstanceStatusSummary.Builder clearNonExistent()

Output only. The number of instances that have not been created yet or have been deleted. Includes only instances that would be shown in the listManagedInstances method and not all instances that have been deleted in the lifetime of the MIG. Does not include FlexStart instances that are waiting for the resources availability, they are considered as 'pending'.

optional int32 non_existent = 468485062;

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.

clearPending()

public InstanceGroupManagerStatusInstanceStatusSummary.Builder clearPending()

Output only. The number of instances in the managed instance group that have PENDING status, that is FlexStart instances that are waiting for resources. Instances that do not exist because of the other reasons are counted as 'non_existent'.

optional int32 pending = 391154071;

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.

clearPendingStop()

public InstanceGroupManagerStatusInstanceStatusSummary.Builder clearPendingStop()

Output only. The number of instances in the managed instance group that have PENDING_STOP status.

optional int32 pending_stop = 163159466;

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.

clearProvisioning()

public InstanceGroupManagerStatusInstanceStatusSummary.Builder clearProvisioning()

Output only. The number of instances in the managed instance group that have PROVISIONING status.

optional int32 provisioning = 121098989;

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.

clearRepairing()

public InstanceGroupManagerStatusInstanceStatusSummary.Builder clearRepairing()

Output only. The number of instances in the managed instance group that have REPAIRING status.

optional int32 repairing = 311243061;

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.

clearRunning()

public InstanceGroupManagerStatusInstanceStatusSummary.Builder clearRunning()

Output only. The number of instances in the managed instance group that have RUNNING status.

optional int32 running = 477042111;

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.

clearStaging()

public InstanceGroupManagerStatusInstanceStatusSummary.Builder clearStaging()

Output only. The number of instances in the managed instance group that have STAGING status.

optional int32 staging = 249960507;

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.

clearStopped()

public InstanceGroupManagerStatusInstanceStatusSummary.Builder clearStopped()

Output only. The number of instances in the managed instance group that have STOPPED status.

optional int32 stopped = 263164365;

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.

clearStopping()

public InstanceGroupManagerStatusInstanceStatusSummary.Builder clearStopping()

Output only. The number of instances in the managed instance group that have STOPPING status.

optional int32 stopping = 105035892;

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.

clearSuspended()

public InstanceGroupManagerStatusInstanceStatusSummary.Builder clearSuspended()

Output only. The number of instances in the managed instance group that have SUSPENDED status.

optional int32 suspended = 485854683;

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.

clearSuspending()

public InstanceGroupManagerStatusInstanceStatusSummary.Builder clearSuspending()

Output only. The number of instances in the managed instance group that have SUSPENDING status.

optional int32 suspending = 29113894;

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.

clearTerminated()

public InstanceGroupManagerStatusInstanceStatusSummary.Builder clearTerminated()

Output only. The number of instances in the managed instance group that have TERMINATED status.

optional int32 terminated = 301796899;

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.

getDefaultInstanceForType()

public InstanceGroupManagerStatusInstanceStatusSummary getDefaultInstanceForType()
Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary

getDeprovisioning()

public int getDeprovisioning()

Output only. The number of instances in the managed instance group that have DEPROVISIONING status.

optional int32 deprovisioning = 462169582;

Returns
Type Description
int

The deprovisioning.

getDescriptorForType()

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

getNonExistent()

public int getNonExistent()

Output only. The number of instances that have not been created yet or have been deleted. Includes only instances that would be shown in the listManagedInstances method and not all instances that have been deleted in the lifetime of the MIG. Does not include FlexStart instances that are waiting for the resources availability, they are considered as 'pending'.

optional int32 non_existent = 468485062;

Returns
Type Description
int

The nonExistent.

getPending()

public int getPending()

Output only. The number of instances in the managed instance group that have PENDING status, that is FlexStart instances that are waiting for resources. Instances that do not exist because of the other reasons are counted as 'non_existent'.

optional int32 pending = 391154071;

Returns
Type Description
int

The pending.

getPendingStop()

public int getPendingStop()

Output only. The number of instances in the managed instance group that have PENDING_STOP status.

optional int32 pending_stop = 163159466;

Returns
Type Description
int

The pendingStop.

getProvisioning()

public int getProvisioning()

Output only. The number of instances in the managed instance group that have PROVISIONING status.

optional int32 provisioning = 121098989;

Returns
Type Description
int

The provisioning.

getRepairing()

public int getRepairing()

Output only. The number of instances in the managed instance group that have REPAIRING status.

optional int32 repairing = 311243061;

Returns
Type Description
int

The repairing.

getRunning()

public int getRunning()

Output only. The number of instances in the managed instance group that have RUNNING status.

optional int32 running = 477042111;

Returns
Type Description
int

The running.

getStaging()

public int getStaging()

Output only. The number of instances in the managed instance group that have STAGING status.

optional int32 staging = 249960507;

Returns
Type Description
int

The staging.

getStopped()

public int getStopped()

Output only. The number of instances in the managed instance group that have STOPPED status.

optional int32 stopped = 263164365;

Returns
Type Description
int

The stopped.

getStopping()

public int getStopping()

Output only. The number of instances in the managed instance group that have STOPPING status.

optional int32 stopping = 105035892;

Returns
Type Description
int

The stopping.

getSuspended()

public int getSuspended()

Output only. The number of instances in the managed instance group that have SUSPENDED status.

optional int32 suspended = 485854683;

Returns
Type Description
int

The suspended.

getSuspending()

public int getSuspending()

Output only. The number of instances in the managed instance group that have SUSPENDING status.

optional int32 suspending = 29113894;

Returns
Type Description
int

The suspending.

getTerminated()

public int getTerminated()

Output only. The number of instances in the managed instance group that have TERMINATED status.

optional int32 terminated = 301796899;

Returns
Type Description
int

The terminated.

hasDeprovisioning()

public boolean hasDeprovisioning()

Output only. The number of instances in the managed instance group that have DEPROVISIONING status.

optional int32 deprovisioning = 462169582;

Returns
Type Description
boolean

Whether the deprovisioning field is set.

hasNonExistent()

public boolean hasNonExistent()

Output only. The number of instances that have not been created yet or have been deleted. Includes only instances that would be shown in the listManagedInstances method and not all instances that have been deleted in the lifetime of the MIG. Does not include FlexStart instances that are waiting for the resources availability, they are considered as 'pending'.

optional int32 non_existent = 468485062;

Returns
Type Description
boolean

Whether the nonExistent field is set.

hasPending()

public boolean hasPending()

Output only. The number of instances in the managed instance group that have PENDING status, that is FlexStart instances that are waiting for resources. Instances that do not exist because of the other reasons are counted as 'non_existent'.

optional int32 pending = 391154071;

Returns
Type Description
boolean

Whether the pending field is set.

hasPendingStop()

public boolean hasPendingStop()

Output only. The number of instances in the managed instance group that have PENDING_STOP status.

optional int32 pending_stop = 163159466;

Returns
Type Description
boolean

Whether the pendingStop field is set.

hasProvisioning()

public boolean hasProvisioning()

Output only. The number of instances in the managed instance group that have PROVISIONING status.

optional int32 provisioning = 121098989;

Returns
Type Description
boolean

Whether the provisioning field is set.

hasRepairing()

public boolean hasRepairing()

Output only. The number of instances in the managed instance group that have REPAIRING status.

optional int32 repairing = 311243061;

Returns
Type Description
boolean

Whether the repairing field is set.

hasRunning()

public boolean hasRunning()

Output only. The number of instances in the managed instance group that have RUNNING status.

optional int32 running = 477042111;

Returns
Type Description
boolean

Whether the running field is set.

hasStaging()

public boolean hasStaging()

Output only. The number of instances in the managed instance group that have STAGING status.

optional int32 staging = 249960507;

Returns
Type Description
boolean

Whether the staging field is set.

hasStopped()

public boolean hasStopped()

Output only. The number of instances in the managed instance group that have STOPPED status.

optional int32 stopped = 263164365;

Returns
Type Description
boolean

Whether the stopped field is set.

hasStopping()

public boolean hasStopping()

Output only. The number of instances in the managed instance group that have STOPPING status.

optional int32 stopping = 105035892;

Returns
Type Description
boolean

Whether the stopping field is set.

hasSuspended()

public boolean hasSuspended()

Output only. The number of instances in the managed instance group that have SUSPENDED status.

optional int32 suspended = 485854683;

Returns
Type Description
boolean

Whether the suspended field is set.

hasSuspending()

public boolean hasSuspending()

Output only. The number of instances in the managed instance group that have SUSPENDING status.

optional int32 suspending = 29113894;

Returns
Type Description
boolean

Whether the suspending field is set.

hasTerminated()

public boolean hasTerminated()

Output only. The number of instances in the managed instance group that have TERMINATED status.

optional int32 terminated = 301796899;

Returns
Type Description
boolean

Whether the terminated field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InstanceGroupManagerStatusInstanceStatusSummary other)

public InstanceGroupManagerStatusInstanceStatusSummary.Builder mergeFrom(InstanceGroupManagerStatusInstanceStatusSummary other)
Parameter
Name Description
other InstanceGroupManagerStatusInstanceStatusSummary
Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InstanceGroupManagerStatusInstanceStatusSummary.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

setDeprovisioning(int value)

public InstanceGroupManagerStatusInstanceStatusSummary.Builder setDeprovisioning(int value)

Output only. The number of instances in the managed instance group that have DEPROVISIONING status.

optional int32 deprovisioning = 462169582;

Parameter
Name Description
value int

The deprovisioning to set.

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.

setNonExistent(int value)

public InstanceGroupManagerStatusInstanceStatusSummary.Builder setNonExistent(int value)

Output only. The number of instances that have not been created yet or have been deleted. Includes only instances that would be shown in the listManagedInstances method and not all instances that have been deleted in the lifetime of the MIG. Does not include FlexStart instances that are waiting for the resources availability, they are considered as 'pending'.

optional int32 non_existent = 468485062;

Parameter
Name Description
value int

The nonExistent to set.

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.

setPending(int value)

public InstanceGroupManagerStatusInstanceStatusSummary.Builder setPending(int value)

Output only. The number of instances in the managed instance group that have PENDING status, that is FlexStart instances that are waiting for resources. Instances that do not exist because of the other reasons are counted as 'non_existent'.

optional int32 pending = 391154071;

Parameter
Name Description
value int

The pending to set.

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.

setPendingStop(int value)

public InstanceGroupManagerStatusInstanceStatusSummary.Builder setPendingStop(int value)

Output only. The number of instances in the managed instance group that have PENDING_STOP status.

optional int32 pending_stop = 163159466;

Parameter
Name Description
value int

The pendingStop to set.

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.

setProvisioning(int value)

public InstanceGroupManagerStatusInstanceStatusSummary.Builder setProvisioning(int value)

Output only. The number of instances in the managed instance group that have PROVISIONING status.

optional int32 provisioning = 121098989;

Parameter
Name Description
value int

The provisioning to set.

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.

setRepairing(int value)

public InstanceGroupManagerStatusInstanceStatusSummary.Builder setRepairing(int value)

Output only. The number of instances in the managed instance group that have REPAIRING status.

optional int32 repairing = 311243061;

Parameter
Name Description
value int

The repairing to set.

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.

setRunning(int value)

public InstanceGroupManagerStatusInstanceStatusSummary.Builder setRunning(int value)

Output only. The number of instances in the managed instance group that have RUNNING status.

optional int32 running = 477042111;

Parameter
Name Description
value int

The running to set.

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.

setStaging(int value)

public InstanceGroupManagerStatusInstanceStatusSummary.Builder setStaging(int value)

Output only. The number of instances in the managed instance group that have STAGING status.

optional int32 staging = 249960507;

Parameter
Name Description
value int

The staging to set.

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.

setStopped(int value)

public InstanceGroupManagerStatusInstanceStatusSummary.Builder setStopped(int value)

Output only. The number of instances in the managed instance group that have STOPPED status.

optional int32 stopped = 263164365;

Parameter
Name Description
value int

The stopped to set.

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.

setStopping(int value)

public InstanceGroupManagerStatusInstanceStatusSummary.Builder setStopping(int value)

Output only. The number of instances in the managed instance group that have STOPPING status.

optional int32 stopping = 105035892;

Parameter
Name Description
value int

The stopping to set.

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.

setSuspended(int value)

public InstanceGroupManagerStatusInstanceStatusSummary.Builder setSuspended(int value)

Output only. The number of instances in the managed instance group that have SUSPENDED status.

optional int32 suspended = 485854683;

Parameter
Name Description
value int

The suspended to set.

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.

setSuspending(int value)

public InstanceGroupManagerStatusInstanceStatusSummary.Builder setSuspending(int value)

Output only. The number of instances in the managed instance group that have SUSPENDING status.

optional int32 suspending = 29113894;

Parameter
Name Description
value int

The suspending to set.

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.

setTerminated(int value)

public InstanceGroupManagerStatusInstanceStatusSummary.Builder setTerminated(int value)

Output only. The number of instances in the managed instance group that have TERMINATED status.

optional int32 terminated = 301796899;

Parameter
Name Description
value int

The terminated to set.

Returns
Type Description
InstanceGroupManagerStatusInstanceStatusSummary.Builder

This builder for chaining.