Class InstanceGroupManagerStatusInstanceStatusSummary.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InstanceGroupManagerStatusInstanceStatusSummary.Builder>
com.google.cloud.compute.v1.InstanceGroupManagerStatusInstanceStatusSummary.Builder
All Implemented Interfaces:
InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
InstanceGroupManagerStatusInstanceStatusSummary

public static final class InstanceGroupManagerStatusInstanceStatusSummary.Builder extends com.google.protobuf.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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<InstanceGroupManagerStatusInstanceStatusSummary.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<InstanceGroupManagerStatusInstanceStatusSummary.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<InstanceGroupManagerStatusInstanceStatusSummary.Builder>
    • getDefaultInstanceForType

      public InstanceGroupManagerStatusInstanceStatusSummary getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public InstanceGroupManagerStatusInstanceStatusSummary.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstanceGroupManagerStatusInstanceStatusSummary.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<InstanceGroupManagerStatusInstanceStatusSummary.Builder>
    • mergeFrom

      public InstanceGroupManagerStatusInstanceStatusSummary.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstanceGroupManagerStatusInstanceStatusSummary.Builder>
      Throws:
      IOException
    • hasDeprovisioning

      public boolean hasDeprovisioning()
       Output only. The number of instances in the managed instance group
       that have DEPROVISIONING status.
       
      optional int32 deprovisioning = 462169582;
      Specified by:
      hasDeprovisioning in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      Whether the deprovisioning field is set.
    • getDeprovisioning

      public int getDeprovisioning()
       Output only. The number of instances in the managed instance group
       that have DEPROVISIONING status.
       
      optional int32 deprovisioning = 462169582;
      Specified by:
      getDeprovisioning in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      The deprovisioning.
    • setDeprovisioning

      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;
      Parameters:
      value - The deprovisioning to set.
      Returns:
      This builder for chaining.
    • clearDeprovisioning

       Output only. The number of instances in the managed instance group
       that have DEPROVISIONING status.
       
      optional int32 deprovisioning = 462169582;
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      hasNonExistent in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      Whether the nonExistent field is set.
    • 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;
      Specified by:
      getNonExistent in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      The nonExistent.
    • setNonExistent

       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;
      Parameters:
      value - The nonExistent to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • 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;
      Specified by:
      hasPending in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      Whether the pending field is set.
    • 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;
      Specified by:
      getPending in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      The pending.
    • setPending

       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;
      Parameters:
      value - The pending to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • 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;
      Specified by:
      hasPendingStop in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      Whether the pendingStop field is set.
    • 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;
      Specified by:
      getPendingStop in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      The pendingStop.
    • setPendingStop

       Output only. The number of instances in the managed instance group
       that have PENDING_STOP status.
       
      optional int32 pending_stop = 163159466;
      Parameters:
      value - The pendingStop to set.
      Returns:
      This builder for chaining.
    • clearPendingStop

       Output only. The number of instances in the managed instance group
       that have PENDING_STOP status.
       
      optional int32 pending_stop = 163159466;
      Returns:
      This builder for chaining.
    • hasProvisioning

      public boolean hasProvisioning()
       Output only. The number of instances in the managed instance group
       that have PROVISIONING status.
       
      optional int32 provisioning = 121098989;
      Specified by:
      hasProvisioning in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      Whether the provisioning field is set.
    • getProvisioning

      public int getProvisioning()
       Output only. The number of instances in the managed instance group
       that have PROVISIONING status.
       
      optional int32 provisioning = 121098989;
      Specified by:
      getProvisioning in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      The provisioning.
    • setProvisioning

      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;
      Parameters:
      value - The provisioning to set.
      Returns:
      This builder for chaining.
    • clearProvisioning

       Output only. The number of instances in the managed instance group
       that have PROVISIONING status.
       
      optional int32 provisioning = 121098989;
      Returns:
      This builder for chaining.
    • hasRepairing

      public boolean hasRepairing()
       Output only. The number of instances in the managed instance group
       that have REPAIRING status.
       
      optional int32 repairing = 311243061;
      Specified by:
      hasRepairing in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      Whether the repairing field is set.
    • getRepairing

      public int getRepairing()
       Output only. The number of instances in the managed instance group
       that have REPAIRING status.
       
      optional int32 repairing = 311243061;
      Specified by:
      getRepairing in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      The repairing.
    • setRepairing

       Output only. The number of instances in the managed instance group
       that have REPAIRING status.
       
      optional int32 repairing = 311243061;
      Parameters:
      value - The repairing to set.
      Returns:
      This builder for chaining.
    • clearRepairing

       Output only. The number of instances in the managed instance group
       that have REPAIRING status.
       
      optional int32 repairing = 311243061;
      Returns:
      This builder for chaining.
    • hasRunning

      public boolean hasRunning()
       Output only. The number of instances in the managed instance group
       that have RUNNING status.
       
      optional int32 running = 477042111;
      Specified by:
      hasRunning in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      Whether the running field is set.
    • getRunning

      public int getRunning()
       Output only. The number of instances in the managed instance group
       that have RUNNING status.
       
      optional int32 running = 477042111;
      Specified by:
      getRunning in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      The running.
    • setRunning

       Output only. The number of instances in the managed instance group
       that have RUNNING status.
       
      optional int32 running = 477042111;
      Parameters:
      value - The running to set.
      Returns:
      This builder for chaining.
    • clearRunning

       Output only. The number of instances in the managed instance group
       that have RUNNING status.
       
      optional int32 running = 477042111;
      Returns:
      This builder for chaining.
    • hasStaging

      public boolean hasStaging()
       Output only. The number of instances in the managed instance group
       that have STAGING status.
       
      optional int32 staging = 249960507;
      Specified by:
      hasStaging in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      Whether the staging field is set.
    • getStaging

      public int getStaging()
       Output only. The number of instances in the managed instance group
       that have STAGING status.
       
      optional int32 staging = 249960507;
      Specified by:
      getStaging in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      The staging.
    • setStaging

       Output only. The number of instances in the managed instance group
       that have STAGING status.
       
      optional int32 staging = 249960507;
      Parameters:
      value - The staging to set.
      Returns:
      This builder for chaining.
    • clearStaging

       Output only. The number of instances in the managed instance group
       that have STAGING status.
       
      optional int32 staging = 249960507;
      Returns:
      This builder for chaining.
    • hasStopped

      public boolean hasStopped()
       Output only. The number of instances in the managed instance group
       that have STOPPED status.
       
      optional int32 stopped = 263164365;
      Specified by:
      hasStopped in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      Whether the stopped field is set.
    • getStopped

      public int getStopped()
       Output only. The number of instances in the managed instance group
       that have STOPPED status.
       
      optional int32 stopped = 263164365;
      Specified by:
      getStopped in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      The stopped.
    • setStopped

       Output only. The number of instances in the managed instance group
       that have STOPPED status.
       
      optional int32 stopped = 263164365;
      Parameters:
      value - The stopped to set.
      Returns:
      This builder for chaining.
    • clearStopped

       Output only. The number of instances in the managed instance group
       that have STOPPED status.
       
      optional int32 stopped = 263164365;
      Returns:
      This builder for chaining.
    • hasStopping

      public boolean hasStopping()
       Output only. The number of instances in the managed instance group
       that have STOPPING status.
       
      optional int32 stopping = 105035892;
      Specified by:
      hasStopping in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      Whether the stopping field is set.
    • getStopping

      public int getStopping()
       Output only. The number of instances in the managed instance group
       that have STOPPING status.
       
      optional int32 stopping = 105035892;
      Specified by:
      getStopping in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      The stopping.
    • setStopping

       Output only. The number of instances in the managed instance group
       that have STOPPING status.
       
      optional int32 stopping = 105035892;
      Parameters:
      value - The stopping to set.
      Returns:
      This builder for chaining.
    • clearStopping

       Output only. The number of instances in the managed instance group
       that have STOPPING status.
       
      optional int32 stopping = 105035892;
      Returns:
      This builder for chaining.
    • hasSuspended

      public boolean hasSuspended()
       Output only. The number of instances in the managed instance group
       that have SUSPENDED status.
       
      optional int32 suspended = 485854683;
      Specified by:
      hasSuspended in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      Whether the suspended field is set.
    • getSuspended

      public int getSuspended()
       Output only. The number of instances in the managed instance group
       that have SUSPENDED status.
       
      optional int32 suspended = 485854683;
      Specified by:
      getSuspended in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      The suspended.
    • setSuspended

       Output only. The number of instances in the managed instance group
       that have SUSPENDED status.
       
      optional int32 suspended = 485854683;
      Parameters:
      value - The suspended to set.
      Returns:
      This builder for chaining.
    • clearSuspended

       Output only. The number of instances in the managed instance group
       that have SUSPENDED status.
       
      optional int32 suspended = 485854683;
      Returns:
      This builder for chaining.
    • hasSuspending

      public boolean hasSuspending()
       Output only. The number of instances in the managed instance group
       that have SUSPENDING status.
       
      optional int32 suspending = 29113894;
      Specified by:
      hasSuspending in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      Whether the suspending field is set.
    • getSuspending

      public int getSuspending()
       Output only. The number of instances in the managed instance group
       that have SUSPENDING status.
       
      optional int32 suspending = 29113894;
      Specified by:
      getSuspending in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      The suspending.
    • setSuspending

       Output only. The number of instances in the managed instance group
       that have SUSPENDING status.
       
      optional int32 suspending = 29113894;
      Parameters:
      value - The suspending to set.
      Returns:
      This builder for chaining.
    • clearSuspending

       Output only. The number of instances in the managed instance group
       that have SUSPENDING status.
       
      optional int32 suspending = 29113894;
      Returns:
      This builder for chaining.
    • hasTerminated

      public boolean hasTerminated()
       Output only. The number of instances in the managed instance group
       that have TERMINATED status.
       
      optional int32 terminated = 301796899;
      Specified by:
      hasTerminated in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      Whether the terminated field is set.
    • getTerminated

      public int getTerminated()
       Output only. The number of instances in the managed instance group
       that have TERMINATED status.
       
      optional int32 terminated = 301796899;
      Specified by:
      getTerminated in interface InstanceGroupManagerStatusInstanceStatusSummaryOrBuilder
      Returns:
      The terminated.
    • setTerminated

       Output only. The number of instances in the managed instance group
       that have TERMINATED status.
       
      optional int32 terminated = 301796899;
      Parameters:
      value - The terminated to set.
      Returns:
      This builder for chaining.
    • clearTerminated

       Output only. The number of instances in the managed instance group
       that have TERMINATED status.
       
      optional int32 terminated = 301796899;
      Returns:
      This builder for chaining.