Class InstanceGroupManager.Builder

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

public static final class InstanceGroupManager.Builder extends com.google.protobuf.GeneratedMessage.Builder<InstanceGroupManager.Builder> implements InstanceGroupManagerOrBuilder
 Represents a Managed Instance Group resource.

 An instance group is a collection of VM instances that you can manage as a
 single entity. For more information, readInstance groups.

 For zonal Managed Instance Group, use the instanceGroupManagers
 resource.

 For regional Managed Instance Group, use theregionInstanceGroupManagers resource.
 
Protobuf type google.cloud.compute.v1.InstanceGroupManager
  • 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<InstanceGroupManager.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<InstanceGroupManager.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<InstanceGroupManager.Builder>
    • getDefaultInstanceForType

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

      public InstanceGroupManager build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public InstanceGroupManager buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public InstanceGroupManager.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<InstanceGroupManager.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<InstanceGroupManager.Builder>
    • mergeFrom

      public InstanceGroupManager.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<InstanceGroupManager.Builder>
      Throws:
      IOException
    • hasAllInstancesConfig

      public boolean hasAllInstancesConfig()
       Specifies configuration that overrides the instance template configuration
       for the group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig all_instances_config = 112596737;
      Specified by:
      hasAllInstancesConfig in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the allInstancesConfig field is set.
    • getAllInstancesConfig

      public InstanceGroupManagerAllInstancesConfig getAllInstancesConfig()
       Specifies configuration that overrides the instance template configuration
       for the group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig all_instances_config = 112596737;
      Specified by:
      getAllInstancesConfig in interface InstanceGroupManagerOrBuilder
      Returns:
      The allInstancesConfig.
    • setAllInstancesConfig

       Specifies configuration that overrides the instance template configuration
       for the group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig all_instances_config = 112596737;
    • setAllInstancesConfig

      public InstanceGroupManager.Builder setAllInstancesConfig(InstanceGroupManagerAllInstancesConfig.Builder builderForValue)
       Specifies configuration that overrides the instance template configuration
       for the group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig all_instances_config = 112596737;
    • mergeAllInstancesConfig

       Specifies configuration that overrides the instance template configuration
       for the group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig all_instances_config = 112596737;
    • clearAllInstancesConfig

      public InstanceGroupManager.Builder clearAllInstancesConfig()
       Specifies configuration that overrides the instance template configuration
       for the group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig all_instances_config = 112596737;
    • getAllInstancesConfigBuilder

      public InstanceGroupManagerAllInstancesConfig.Builder getAllInstancesConfigBuilder()
       Specifies configuration that overrides the instance template configuration
       for the group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig all_instances_config = 112596737;
    • getAllInstancesConfigOrBuilder

      public InstanceGroupManagerAllInstancesConfigOrBuilder getAllInstancesConfigOrBuilder()
       Specifies configuration that overrides the instance template configuration
       for the group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig all_instances_config = 112596737;
      Specified by:
      getAllInstancesConfigOrBuilder in interface InstanceGroupManagerOrBuilder
    • getAutoHealingPoliciesList

      public List<InstanceGroupManagerAutoHealingPolicy> getAutoHealingPoliciesList()
       The autohealing policy for this managed instance group. You can specify
       only one value.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;
      Specified by:
      getAutoHealingPoliciesList in interface InstanceGroupManagerOrBuilder
    • getAutoHealingPoliciesCount

      public int getAutoHealingPoliciesCount()
       The autohealing policy for this managed instance group. You can specify
       only one value.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;
      Specified by:
      getAutoHealingPoliciesCount in interface InstanceGroupManagerOrBuilder
    • getAutoHealingPolicies

      public InstanceGroupManagerAutoHealingPolicy getAutoHealingPolicies(int index)
       The autohealing policy for this managed instance group. You can specify
       only one value.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;
      Specified by:
      getAutoHealingPolicies in interface InstanceGroupManagerOrBuilder
    • setAutoHealingPolicies

      public InstanceGroupManager.Builder setAutoHealingPolicies(int index, InstanceGroupManagerAutoHealingPolicy value)
       The autohealing policy for this managed instance group. You can specify
       only one value.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;
    • setAutoHealingPolicies

      public InstanceGroupManager.Builder setAutoHealingPolicies(int index, InstanceGroupManagerAutoHealingPolicy.Builder builderForValue)
       The autohealing policy for this managed instance group. You can specify
       only one value.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;
    • addAutoHealingPolicies

       The autohealing policy for this managed instance group. You can specify
       only one value.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;
    • addAutoHealingPolicies

      public InstanceGroupManager.Builder addAutoHealingPolicies(int index, InstanceGroupManagerAutoHealingPolicy value)
       The autohealing policy for this managed instance group. You can specify
       only one value.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;
    • addAutoHealingPolicies

      public InstanceGroupManager.Builder addAutoHealingPolicies(InstanceGroupManagerAutoHealingPolicy.Builder builderForValue)
       The autohealing policy for this managed instance group. You can specify
       only one value.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;
    • addAutoHealingPolicies

      public InstanceGroupManager.Builder addAutoHealingPolicies(int index, InstanceGroupManagerAutoHealingPolicy.Builder builderForValue)
       The autohealing policy for this managed instance group. You can specify
       only one value.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;
    • addAllAutoHealingPolicies

      public InstanceGroupManager.Builder addAllAutoHealingPolicies(Iterable<? extends InstanceGroupManagerAutoHealingPolicy> values)
       The autohealing policy for this managed instance group. You can specify
       only one value.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;
    • clearAutoHealingPolicies

      public InstanceGroupManager.Builder clearAutoHealingPolicies()
       The autohealing policy for this managed instance group. You can specify
       only one value.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;
    • removeAutoHealingPolicies

      public InstanceGroupManager.Builder removeAutoHealingPolicies(int index)
       The autohealing policy for this managed instance group. You can specify
       only one value.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;
    • getAutoHealingPoliciesBuilder

      public InstanceGroupManagerAutoHealingPolicy.Builder getAutoHealingPoliciesBuilder(int index)
       The autohealing policy for this managed instance group. You can specify
       only one value.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;
    • getAutoHealingPoliciesOrBuilder

      public InstanceGroupManagerAutoHealingPolicyOrBuilder getAutoHealingPoliciesOrBuilder(int index)
       The autohealing policy for this managed instance group. You can specify
       only one value.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;
      Specified by:
      getAutoHealingPoliciesOrBuilder in interface InstanceGroupManagerOrBuilder
    • getAutoHealingPoliciesOrBuilderList

      public List<? extends InstanceGroupManagerAutoHealingPolicyOrBuilder> getAutoHealingPoliciesOrBuilderList()
       The autohealing policy for this managed instance group. You can specify
       only one value.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;
      Specified by:
      getAutoHealingPoliciesOrBuilderList in interface InstanceGroupManagerOrBuilder
    • addAutoHealingPoliciesBuilder

      public InstanceGroupManagerAutoHealingPolicy.Builder addAutoHealingPoliciesBuilder()
       The autohealing policy for this managed instance group. You can specify
       only one value.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;
    • addAutoHealingPoliciesBuilder

      public InstanceGroupManagerAutoHealingPolicy.Builder addAutoHealingPoliciesBuilder(int index)
       The autohealing policy for this managed instance group. You can specify
       only one value.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;
    • getAutoHealingPoliciesBuilderList

      public List<InstanceGroupManagerAutoHealingPolicy.Builder> getAutoHealingPoliciesBuilderList()
       The autohealing policy for this managed instance group. You can specify
       only one value.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;
    • hasBaseInstanceName

      public boolean hasBaseInstanceName()
       The base instance name is a prefix that you want to attach to the names of
       all VMs in a MIG. The maximum character length is 58 and the name must
       comply with RFC1035 format.
      
       When a VM is created in the group, the MIG appends a hyphen and a random
       four-character string to the base instance name. If you want the MIG to
       assign sequential numbers instead of a random string, then end the base
       instance name with a hyphen followed by one or more hash symbols. The hash
       symbols indicate the number of digits. For example, a base instance name of
       "vm-###" results in "vm-001" as a VM name.
       @pattern
       [a-z](([-a-z0-9]{0,57})|([-a-z0-9]{0,51}-#{1,10}(\\[[0-9]{1,10}\\])?))
       
      optional string base_instance_name = 389106439;
      Specified by:
      hasBaseInstanceName in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the baseInstanceName field is set.
    • getBaseInstanceName

      public String getBaseInstanceName()
       The base instance name is a prefix that you want to attach to the names of
       all VMs in a MIG. The maximum character length is 58 and the name must
       comply with RFC1035 format.
      
       When a VM is created in the group, the MIG appends a hyphen and a random
       four-character string to the base instance name. If you want the MIG to
       assign sequential numbers instead of a random string, then end the base
       instance name with a hyphen followed by one or more hash symbols. The hash
       symbols indicate the number of digits. For example, a base instance name of
       "vm-###" results in "vm-001" as a VM name.
       @pattern
       [a-z](([-a-z0-9]{0,57})|([-a-z0-9]{0,51}-#{1,10}(\\[[0-9]{1,10}\\])?))
       
      optional string base_instance_name = 389106439;
      Specified by:
      getBaseInstanceName in interface InstanceGroupManagerOrBuilder
      Returns:
      The baseInstanceName.
    • getBaseInstanceNameBytes

      public com.google.protobuf.ByteString getBaseInstanceNameBytes()
       The base instance name is a prefix that you want to attach to the names of
       all VMs in a MIG. The maximum character length is 58 and the name must
       comply with RFC1035 format.
      
       When a VM is created in the group, the MIG appends a hyphen and a random
       four-character string to the base instance name. If you want the MIG to
       assign sequential numbers instead of a random string, then end the base
       instance name with a hyphen followed by one or more hash symbols. The hash
       symbols indicate the number of digits. For example, a base instance name of
       "vm-###" results in "vm-001" as a VM name.
       @pattern
       [a-z](([-a-z0-9]{0,57})|([-a-z0-9]{0,51}-#{1,10}(\\[[0-9]{1,10}\\])?))
       
      optional string base_instance_name = 389106439;
      Specified by:
      getBaseInstanceNameBytes in interface InstanceGroupManagerOrBuilder
      Returns:
      The bytes for baseInstanceName.
    • setBaseInstanceName

      public InstanceGroupManager.Builder setBaseInstanceName(String value)
       The base instance name is a prefix that you want to attach to the names of
       all VMs in a MIG. The maximum character length is 58 and the name must
       comply with RFC1035 format.
      
       When a VM is created in the group, the MIG appends a hyphen and a random
       four-character string to the base instance name. If you want the MIG to
       assign sequential numbers instead of a random string, then end the base
       instance name with a hyphen followed by one or more hash symbols. The hash
       symbols indicate the number of digits. For example, a base instance name of
       "vm-###" results in "vm-001" as a VM name.
       @pattern
       [a-z](([-a-z0-9]{0,57})|([-a-z0-9]{0,51}-#{1,10}(\\[[0-9]{1,10}\\])?))
       
      optional string base_instance_name = 389106439;
      Parameters:
      value - The baseInstanceName to set.
      Returns:
      This builder for chaining.
    • clearBaseInstanceName

      public InstanceGroupManager.Builder clearBaseInstanceName()
       The base instance name is a prefix that you want to attach to the names of
       all VMs in a MIG. The maximum character length is 58 and the name must
       comply with RFC1035 format.
      
       When a VM is created in the group, the MIG appends a hyphen and a random
       four-character string to the base instance name. If you want the MIG to
       assign sequential numbers instead of a random string, then end the base
       instance name with a hyphen followed by one or more hash symbols. The hash
       symbols indicate the number of digits. For example, a base instance name of
       "vm-###" results in "vm-001" as a VM name.
       @pattern
       [a-z](([-a-z0-9]{0,57})|([-a-z0-9]{0,51}-#{1,10}(\\[[0-9]{1,10}\\])?))
       
      optional string base_instance_name = 389106439;
      Returns:
      This builder for chaining.
    • setBaseInstanceNameBytes

      public InstanceGroupManager.Builder setBaseInstanceNameBytes(com.google.protobuf.ByteString value)
       The base instance name is a prefix that you want to attach to the names of
       all VMs in a MIG. The maximum character length is 58 and the name must
       comply with RFC1035 format.
      
       When a VM is created in the group, the MIG appends a hyphen and a random
       four-character string to the base instance name. If you want the MIG to
       assign sequential numbers instead of a random string, then end the base
       instance name with a hyphen followed by one or more hash symbols. The hash
       symbols indicate the number of digits. For example, a base instance name of
       "vm-###" results in "vm-001" as a VM name.
       @pattern
       [a-z](([-a-z0-9]{0,57})|([-a-z0-9]{0,51}-#{1,10}(\\[[0-9]{1,10}\\])?))
       
      optional string base_instance_name = 389106439;
      Parameters:
      value - The bytes for baseInstanceName to set.
      Returns:
      This builder for chaining.
    • hasCreationTimestamp

      public boolean hasCreationTimestamp()
       Output only. The creation timestamp for this managed instance group inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      hasCreationTimestamp in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the creationTimestamp field is set.
    • getCreationTimestamp

      public String getCreationTimestamp()
       Output only. The creation timestamp for this managed instance group inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestamp in interface InstanceGroupManagerOrBuilder
      Returns:
      The creationTimestamp.
    • getCreationTimestampBytes

      public com.google.protobuf.ByteString getCreationTimestampBytes()
       Output only. The creation timestamp for this managed instance group inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestampBytes in interface InstanceGroupManagerOrBuilder
      Returns:
      The bytes for creationTimestamp.
    • setCreationTimestamp

      public InstanceGroupManager.Builder setCreationTimestamp(String value)
       Output only. The creation timestamp for this managed instance group inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Parameters:
      value - The creationTimestamp to set.
      Returns:
      This builder for chaining.
    • clearCreationTimestamp

      public InstanceGroupManager.Builder clearCreationTimestamp()
       Output only. The creation timestamp for this managed instance group inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Returns:
      This builder for chaining.
    • setCreationTimestampBytes

      public InstanceGroupManager.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
       Output only. The creation timestamp for this managed instance group inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Parameters:
      value - The bytes for creationTimestamp to set.
      Returns:
      This builder for chaining.
    • hasCurrentActions

      public boolean hasCurrentActions()
       Output only. The list of instance actions and the number of instances
       in this managed instance group that are scheduled for each of those
       actions.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerActionsSummary current_actions = 164045879;
      Specified by:
      hasCurrentActions in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the currentActions field is set.
    • getCurrentActions

      public InstanceGroupManagerActionsSummary getCurrentActions()
       Output only. The list of instance actions and the number of instances
       in this managed instance group that are scheduled for each of those
       actions.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerActionsSummary current_actions = 164045879;
      Specified by:
      getCurrentActions in interface InstanceGroupManagerOrBuilder
      Returns:
      The currentActions.
    • setCurrentActions

       Output only. The list of instance actions and the number of instances
       in this managed instance group that are scheduled for each of those
       actions.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerActionsSummary current_actions = 164045879;
    • setCurrentActions

       Output only. The list of instance actions and the number of instances
       in this managed instance group that are scheduled for each of those
       actions.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerActionsSummary current_actions = 164045879;
    • mergeCurrentActions

       Output only. The list of instance actions and the number of instances
       in this managed instance group that are scheduled for each of those
       actions.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerActionsSummary current_actions = 164045879;
    • clearCurrentActions

      public InstanceGroupManager.Builder clearCurrentActions()
       Output only. The list of instance actions and the number of instances
       in this managed instance group that are scheduled for each of those
       actions.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerActionsSummary current_actions = 164045879;
    • getCurrentActionsBuilder

      public InstanceGroupManagerActionsSummary.Builder getCurrentActionsBuilder()
       Output only. The list of instance actions and the number of instances
       in this managed instance group that are scheduled for each of those
       actions.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerActionsSummary current_actions = 164045879;
    • getCurrentActionsOrBuilder

      public InstanceGroupManagerActionsSummaryOrBuilder getCurrentActionsOrBuilder()
       Output only. The list of instance actions and the number of instances
       in this managed instance group that are scheduled for each of those
       actions.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerActionsSummary current_actions = 164045879;
      Specified by:
      getCurrentActionsOrBuilder in interface InstanceGroupManagerOrBuilder
    • hasDescription

      public boolean hasDescription()
       An optional description of this resource.
       
      optional string description = 422937596;
      Specified by:
      hasDescription in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
       An optional description of this resource.
       
      optional string description = 422937596;
      Specified by:
      getDescription in interface InstanceGroupManagerOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       An optional description of this resource.
       
      optional string description = 422937596;
      Specified by:
      getDescriptionBytes in interface InstanceGroupManagerOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public InstanceGroupManager.Builder setDescription(String value)
       An optional description of this resource.
       
      optional string description = 422937596;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public InstanceGroupManager.Builder clearDescription()
       An optional description of this resource.
       
      optional string description = 422937596;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public InstanceGroupManager.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       An optional description of this resource.
       
      optional string description = 422937596;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasDistributionPolicy

      public boolean hasDistributionPolicy()
       Policy specifying the intended distribution of managed instances across
       zones in a regional managed instance group.
       
      optional .google.cloud.compute.v1.DistributionPolicy distribution_policy = 534558541;
      Specified by:
      hasDistributionPolicy in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the distributionPolicy field is set.
    • getDistributionPolicy

      public DistributionPolicy getDistributionPolicy()
       Policy specifying the intended distribution of managed instances across
       zones in a regional managed instance group.
       
      optional .google.cloud.compute.v1.DistributionPolicy distribution_policy = 534558541;
      Specified by:
      getDistributionPolicy in interface InstanceGroupManagerOrBuilder
      Returns:
      The distributionPolicy.
    • setDistributionPolicy

      public InstanceGroupManager.Builder setDistributionPolicy(DistributionPolicy value)
       Policy specifying the intended distribution of managed instances across
       zones in a regional managed instance group.
       
      optional .google.cloud.compute.v1.DistributionPolicy distribution_policy = 534558541;
    • setDistributionPolicy

      public InstanceGroupManager.Builder setDistributionPolicy(DistributionPolicy.Builder builderForValue)
       Policy specifying the intended distribution of managed instances across
       zones in a regional managed instance group.
       
      optional .google.cloud.compute.v1.DistributionPolicy distribution_policy = 534558541;
    • mergeDistributionPolicy

      public InstanceGroupManager.Builder mergeDistributionPolicy(DistributionPolicy value)
       Policy specifying the intended distribution of managed instances across
       zones in a regional managed instance group.
       
      optional .google.cloud.compute.v1.DistributionPolicy distribution_policy = 534558541;
    • clearDistributionPolicy

      public InstanceGroupManager.Builder clearDistributionPolicy()
       Policy specifying the intended distribution of managed instances across
       zones in a regional managed instance group.
       
      optional .google.cloud.compute.v1.DistributionPolicy distribution_policy = 534558541;
    • getDistributionPolicyBuilder

      public DistributionPolicy.Builder getDistributionPolicyBuilder()
       Policy specifying the intended distribution of managed instances across
       zones in a regional managed instance group.
       
      optional .google.cloud.compute.v1.DistributionPolicy distribution_policy = 534558541;
    • getDistributionPolicyOrBuilder

      public DistributionPolicyOrBuilder getDistributionPolicyOrBuilder()
       Policy specifying the intended distribution of managed instances across
       zones in a regional managed instance group.
       
      optional .google.cloud.compute.v1.DistributionPolicy distribution_policy = 534558541;
      Specified by:
      getDistributionPolicyOrBuilder in interface InstanceGroupManagerOrBuilder
    • hasFingerprint

      public boolean hasFingerprint()
       Fingerprint of this resource. This field may be used in optimistic locking.
       It will be ignored when inserting an InstanceGroupManager. An up-to-date
       fingerprint must be provided in order to update the InstanceGroupManager,
       otherwise the request will fail with error412 conditionNotMet.
      
       To see the latest fingerprint, make a get() request to
       retrieve an InstanceGroupManager.
       
      optional string fingerprint = 234678500;
      Specified by:
      hasFingerprint in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the fingerprint field is set.
    • getFingerprint

      public String getFingerprint()
       Fingerprint of this resource. This field may be used in optimistic locking.
       It will be ignored when inserting an InstanceGroupManager. An up-to-date
       fingerprint must be provided in order to update the InstanceGroupManager,
       otherwise the request will fail with error412 conditionNotMet.
      
       To see the latest fingerprint, make a get() request to
       retrieve an InstanceGroupManager.
       
      optional string fingerprint = 234678500;
      Specified by:
      getFingerprint in interface InstanceGroupManagerOrBuilder
      Returns:
      The fingerprint.
    • getFingerprintBytes

      public com.google.protobuf.ByteString getFingerprintBytes()
       Fingerprint of this resource. This field may be used in optimistic locking.
       It will be ignored when inserting an InstanceGroupManager. An up-to-date
       fingerprint must be provided in order to update the InstanceGroupManager,
       otherwise the request will fail with error412 conditionNotMet.
      
       To see the latest fingerprint, make a get() request to
       retrieve an InstanceGroupManager.
       
      optional string fingerprint = 234678500;
      Specified by:
      getFingerprintBytes in interface InstanceGroupManagerOrBuilder
      Returns:
      The bytes for fingerprint.
    • setFingerprint

      public InstanceGroupManager.Builder setFingerprint(String value)
       Fingerprint of this resource. This field may be used in optimistic locking.
       It will be ignored when inserting an InstanceGroupManager. An up-to-date
       fingerprint must be provided in order to update the InstanceGroupManager,
       otherwise the request will fail with error412 conditionNotMet.
      
       To see the latest fingerprint, make a get() request to
       retrieve an InstanceGroupManager.
       
      optional string fingerprint = 234678500;
      Parameters:
      value - The fingerprint to set.
      Returns:
      This builder for chaining.
    • clearFingerprint

      public InstanceGroupManager.Builder clearFingerprint()
       Fingerprint of this resource. This field may be used in optimistic locking.
       It will be ignored when inserting an InstanceGroupManager. An up-to-date
       fingerprint must be provided in order to update the InstanceGroupManager,
       otherwise the request will fail with error412 conditionNotMet.
      
       To see the latest fingerprint, make a get() request to
       retrieve an InstanceGroupManager.
       
      optional string fingerprint = 234678500;
      Returns:
      This builder for chaining.
    • setFingerprintBytes

      public InstanceGroupManager.Builder setFingerprintBytes(com.google.protobuf.ByteString value)
       Fingerprint of this resource. This field may be used in optimistic locking.
       It will be ignored when inserting an InstanceGroupManager. An up-to-date
       fingerprint must be provided in order to update the InstanceGroupManager,
       otherwise the request will fail with error412 conditionNotMet.
      
       To see the latest fingerprint, make a get() request to
       retrieve an InstanceGroupManager.
       
      optional string fingerprint = 234678500;
      Parameters:
      value - The bytes for fingerprint to set.
      Returns:
      This builder for chaining.
    • hasId

      public boolean hasId()
       Output only. A unique identifier for this resource type. The server
       generates this identifier.
       
      optional uint64 id = 3355;
      Specified by:
      hasId in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public long getId()
       Output only. A unique identifier for this resource type. The server
       generates this identifier.
       
      optional uint64 id = 3355;
      Specified by:
      getId in interface InstanceGroupManagerOrBuilder
      Returns:
      The id.
    • setId

      public InstanceGroupManager.Builder setId(long value)
       Output only. A unique identifier for this resource type. The server
       generates this identifier.
       
      optional uint64 id = 3355;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public InstanceGroupManager.Builder clearId()
       Output only. A unique identifier for this resource type. The server
       generates this identifier.
       
      optional uint64 id = 3355;
      Returns:
      This builder for chaining.
    • hasInstanceFlexibilityPolicy

      public boolean hasInstanceFlexibilityPolicy()
       Instance flexibility allowing MIG to create VMs from multiple
       types of machines.
       Instance flexibility configuration on MIG overrides instance
       template configuration.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy instance_flexibility_policy = 26937090;
      Specified by:
      hasInstanceFlexibilityPolicy in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the instanceFlexibilityPolicy field is set.
    • getInstanceFlexibilityPolicy

      public InstanceGroupManagerInstanceFlexibilityPolicy getInstanceFlexibilityPolicy()
       Instance flexibility allowing MIG to create VMs from multiple
       types of machines.
       Instance flexibility configuration on MIG overrides instance
       template configuration.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy instance_flexibility_policy = 26937090;
      Specified by:
      getInstanceFlexibilityPolicy in interface InstanceGroupManagerOrBuilder
      Returns:
      The instanceFlexibilityPolicy.
    • setInstanceFlexibilityPolicy

       Instance flexibility allowing MIG to create VMs from multiple
       types of machines.
       Instance flexibility configuration on MIG overrides instance
       template configuration.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy instance_flexibility_policy = 26937090;
    • setInstanceFlexibilityPolicy

      public InstanceGroupManager.Builder setInstanceFlexibilityPolicy(InstanceGroupManagerInstanceFlexibilityPolicy.Builder builderForValue)
       Instance flexibility allowing MIG to create VMs from multiple
       types of machines.
       Instance flexibility configuration on MIG overrides instance
       template configuration.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy instance_flexibility_policy = 26937090;
    • mergeInstanceFlexibilityPolicy

      public InstanceGroupManager.Builder mergeInstanceFlexibilityPolicy(InstanceGroupManagerInstanceFlexibilityPolicy value)
       Instance flexibility allowing MIG to create VMs from multiple
       types of machines.
       Instance flexibility configuration on MIG overrides instance
       template configuration.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy instance_flexibility_policy = 26937090;
    • clearInstanceFlexibilityPolicy

      public InstanceGroupManager.Builder clearInstanceFlexibilityPolicy()
       Instance flexibility allowing MIG to create VMs from multiple
       types of machines.
       Instance flexibility configuration on MIG overrides instance
       template configuration.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy instance_flexibility_policy = 26937090;
    • getInstanceFlexibilityPolicyBuilder

      public InstanceGroupManagerInstanceFlexibilityPolicy.Builder getInstanceFlexibilityPolicyBuilder()
       Instance flexibility allowing MIG to create VMs from multiple
       types of machines.
       Instance flexibility configuration on MIG overrides instance
       template configuration.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy instance_flexibility_policy = 26937090;
    • getInstanceFlexibilityPolicyOrBuilder

      public InstanceGroupManagerInstanceFlexibilityPolicyOrBuilder getInstanceFlexibilityPolicyOrBuilder()
       Instance flexibility allowing MIG to create VMs from multiple
       types of machines.
       Instance flexibility configuration on MIG overrides instance
       template configuration.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerInstanceFlexibilityPolicy instance_flexibility_policy = 26937090;
      Specified by:
      getInstanceFlexibilityPolicyOrBuilder in interface InstanceGroupManagerOrBuilder
    • hasInstanceGroup

      public boolean hasInstanceGroup()
       Output only. The URL of the Instance Group resource.
       
      optional string instance_group = 81095253;
      Specified by:
      hasInstanceGroup in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the instanceGroup field is set.
    • getInstanceGroup

      public String getInstanceGroup()
       Output only. The URL of the Instance Group resource.
       
      optional string instance_group = 81095253;
      Specified by:
      getInstanceGroup in interface InstanceGroupManagerOrBuilder
      Returns:
      The instanceGroup.
    • getInstanceGroupBytes

      public com.google.protobuf.ByteString getInstanceGroupBytes()
       Output only. The URL of the Instance Group resource.
       
      optional string instance_group = 81095253;
      Specified by:
      getInstanceGroupBytes in interface InstanceGroupManagerOrBuilder
      Returns:
      The bytes for instanceGroup.
    • setInstanceGroup

      public InstanceGroupManager.Builder setInstanceGroup(String value)
       Output only. The URL of the Instance Group resource.
       
      optional string instance_group = 81095253;
      Parameters:
      value - The instanceGroup to set.
      Returns:
      This builder for chaining.
    • clearInstanceGroup

      public InstanceGroupManager.Builder clearInstanceGroup()
       Output only. The URL of the Instance Group resource.
       
      optional string instance_group = 81095253;
      Returns:
      This builder for chaining.
    • setInstanceGroupBytes

      public InstanceGroupManager.Builder setInstanceGroupBytes(com.google.protobuf.ByteString value)
       Output only. The URL of the Instance Group resource.
       
      optional string instance_group = 81095253;
      Parameters:
      value - The bytes for instanceGroup to set.
      Returns:
      This builder for chaining.
    • hasInstanceLifecyclePolicy

      public boolean hasInstanceLifecyclePolicy()
       The repair policy for this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy instance_lifecycle_policy = 447961617;
      Specified by:
      hasInstanceLifecyclePolicy in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the instanceLifecyclePolicy field is set.
    • getInstanceLifecyclePolicy

      public InstanceGroupManagerInstanceLifecyclePolicy getInstanceLifecyclePolicy()
       The repair policy for this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy instance_lifecycle_policy = 447961617;
      Specified by:
      getInstanceLifecyclePolicy in interface InstanceGroupManagerOrBuilder
      Returns:
      The instanceLifecyclePolicy.
    • setInstanceLifecyclePolicy

       The repair policy for this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy instance_lifecycle_policy = 447961617;
    • setInstanceLifecyclePolicy

      public InstanceGroupManager.Builder setInstanceLifecyclePolicy(InstanceGroupManagerInstanceLifecyclePolicy.Builder builderForValue)
       The repair policy for this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy instance_lifecycle_policy = 447961617;
    • mergeInstanceLifecyclePolicy

       The repair policy for this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy instance_lifecycle_policy = 447961617;
    • clearInstanceLifecyclePolicy

      public InstanceGroupManager.Builder clearInstanceLifecyclePolicy()
       The repair policy for this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy instance_lifecycle_policy = 447961617;
    • getInstanceLifecyclePolicyBuilder

      public InstanceGroupManagerInstanceLifecyclePolicy.Builder getInstanceLifecyclePolicyBuilder()
       The repair policy for this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy instance_lifecycle_policy = 447961617;
    • getInstanceLifecyclePolicyOrBuilder

      public InstanceGroupManagerInstanceLifecyclePolicyOrBuilder getInstanceLifecyclePolicyOrBuilder()
       The repair policy for this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy instance_lifecycle_policy = 447961617;
      Specified by:
      getInstanceLifecyclePolicyOrBuilder in interface InstanceGroupManagerOrBuilder
    • hasInstanceTemplate

      public boolean hasInstanceTemplate()
       The URL of the instance template that is specified for this managed
       instance group. The group uses this template to create all new instances
       in the managed instance group. The templates for existing instances in the
       group do not change unless you run recreateInstances, runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE.
       
      optional string instance_template = 309248228;
      Specified by:
      hasInstanceTemplate in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the instanceTemplate field is set.
    • getInstanceTemplate

      public String getInstanceTemplate()
       The URL of the instance template that is specified for this managed
       instance group. The group uses this template to create all new instances
       in the managed instance group. The templates for existing instances in the
       group do not change unless you run recreateInstances, runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE.
       
      optional string instance_template = 309248228;
      Specified by:
      getInstanceTemplate in interface InstanceGroupManagerOrBuilder
      Returns:
      The instanceTemplate.
    • getInstanceTemplateBytes

      public com.google.protobuf.ByteString getInstanceTemplateBytes()
       The URL of the instance template that is specified for this managed
       instance group. The group uses this template to create all new instances
       in the managed instance group. The templates for existing instances in the
       group do not change unless you run recreateInstances, runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE.
       
      optional string instance_template = 309248228;
      Specified by:
      getInstanceTemplateBytes in interface InstanceGroupManagerOrBuilder
      Returns:
      The bytes for instanceTemplate.
    • setInstanceTemplate

      public InstanceGroupManager.Builder setInstanceTemplate(String value)
       The URL of the instance template that is specified for this managed
       instance group. The group uses this template to create all new instances
       in the managed instance group. The templates for existing instances in the
       group do not change unless you run recreateInstances, runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE.
       
      optional string instance_template = 309248228;
      Parameters:
      value - The instanceTemplate to set.
      Returns:
      This builder for chaining.
    • clearInstanceTemplate

      public InstanceGroupManager.Builder clearInstanceTemplate()
       The URL of the instance template that is specified for this managed
       instance group. The group uses this template to create all new instances
       in the managed instance group. The templates for existing instances in the
       group do not change unless you run recreateInstances, runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE.
       
      optional string instance_template = 309248228;
      Returns:
      This builder for chaining.
    • setInstanceTemplateBytes

      public InstanceGroupManager.Builder setInstanceTemplateBytes(com.google.protobuf.ByteString value)
       The URL of the instance template that is specified for this managed
       instance group. The group uses this template to create all new instances
       in the managed instance group. The templates for existing instances in the
       group do not change unless you run recreateInstances, runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE.
       
      optional string instance_template = 309248228;
      Parameters:
      value - The bytes for instanceTemplate to set.
      Returns:
      This builder for chaining.
    • hasKind

      public boolean hasKind()
       Output only. The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
       
      optional string kind = 3292052;
      Specified by:
      hasKind in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the kind field is set.
    • getKind

      public String getKind()
       Output only. The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
       
      optional string kind = 3292052;
      Specified by:
      getKind in interface InstanceGroupManagerOrBuilder
      Returns:
      The kind.
    • getKindBytes

      public com.google.protobuf.ByteString getKindBytes()
       Output only. The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
       
      optional string kind = 3292052;
      Specified by:
      getKindBytes in interface InstanceGroupManagerOrBuilder
      Returns:
      The bytes for kind.
    • setKind

      public InstanceGroupManager.Builder setKind(String value)
       Output only. The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
       
      optional string kind = 3292052;
      Parameters:
      value - The kind to set.
      Returns:
      This builder for chaining.
    • clearKind

      public InstanceGroupManager.Builder clearKind()
       Output only. The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
       
      optional string kind = 3292052;
      Returns:
      This builder for chaining.
    • setKindBytes

      public InstanceGroupManager.Builder setKindBytes(com.google.protobuf.ByteString value)
       Output only. The resource type, which is alwayscompute#instanceGroupManager for managed instance groups.
       
      optional string kind = 3292052;
      Parameters:
      value - The bytes for kind to set.
      Returns:
      This builder for chaining.
    • hasListManagedInstancesResults

      public boolean hasListManagedInstancesResults()
       Pagination behavior of the listManagedInstances API method for
       this managed instance group.
       Check the ListManagedInstancesResults enum for the list of possible values.
       
      optional string list_managed_instances_results = 296047156;
      Specified by:
      hasListManagedInstancesResults in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the listManagedInstancesResults field is set.
    • getListManagedInstancesResults

      public String getListManagedInstancesResults()
       Pagination behavior of the listManagedInstances API method for
       this managed instance group.
       Check the ListManagedInstancesResults enum for the list of possible values.
       
      optional string list_managed_instances_results = 296047156;
      Specified by:
      getListManagedInstancesResults in interface InstanceGroupManagerOrBuilder
      Returns:
      The listManagedInstancesResults.
    • getListManagedInstancesResultsBytes

      public com.google.protobuf.ByteString getListManagedInstancesResultsBytes()
       Pagination behavior of the listManagedInstances API method for
       this managed instance group.
       Check the ListManagedInstancesResults enum for the list of possible values.
       
      optional string list_managed_instances_results = 296047156;
      Specified by:
      getListManagedInstancesResultsBytes in interface InstanceGroupManagerOrBuilder
      Returns:
      The bytes for listManagedInstancesResults.
    • setListManagedInstancesResults

      public InstanceGroupManager.Builder setListManagedInstancesResults(String value)
       Pagination behavior of the listManagedInstances API method for
       this managed instance group.
       Check the ListManagedInstancesResults enum for the list of possible values.
       
      optional string list_managed_instances_results = 296047156;
      Parameters:
      value - The listManagedInstancesResults to set.
      Returns:
      This builder for chaining.
    • clearListManagedInstancesResults

      public InstanceGroupManager.Builder clearListManagedInstancesResults()
       Pagination behavior of the listManagedInstances API method for
       this managed instance group.
       Check the ListManagedInstancesResults enum for the list of possible values.
       
      optional string list_managed_instances_results = 296047156;
      Returns:
      This builder for chaining.
    • setListManagedInstancesResultsBytes

      public InstanceGroupManager.Builder setListManagedInstancesResultsBytes(com.google.protobuf.ByteString value)
       Pagination behavior of the listManagedInstances API method for
       this managed instance group.
       Check the ListManagedInstancesResults enum for the list of possible values.
       
      optional string list_managed_instances_results = 296047156;
      Parameters:
      value - The bytes for listManagedInstancesResults to set.
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       The name of the managed instance group. The name must be 1-63 characters
       long, and comply withRFC1035.
       
      optional string name = 3373707;
      Specified by:
      hasName in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       The name of the managed instance group. The name must be 1-63 characters
       long, and comply withRFC1035.
       
      optional string name = 3373707;
      Specified by:
      getName in interface InstanceGroupManagerOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the managed instance group. The name must be 1-63 characters
       long, and comply withRFC1035.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface InstanceGroupManagerOrBuilder
      Returns:
      The bytes for name.
    • setName

      public InstanceGroupManager.Builder setName(String value)
       The name of the managed instance group. The name must be 1-63 characters
       long, and comply withRFC1035.
       
      optional string name = 3373707;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public InstanceGroupManager.Builder clearName()
       The name of the managed instance group. The name must be 1-63 characters
       long, and comply withRFC1035.
       
      optional string name = 3373707;
      Returns:
      This builder for chaining.
    • setNameBytes

      public InstanceGroupManager.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the managed instance group. The name must be 1-63 characters
       long, and comply withRFC1035.
       
      optional string name = 3373707;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getNamedPortsList

      public List<NamedPort> getNamedPortsList()
       [Output Only] Named ports configured on the Instance Groups complementary
       to this Instance Group Manager.
       
      repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
      Specified by:
      getNamedPortsList in interface InstanceGroupManagerOrBuilder
    • getNamedPortsCount

      public int getNamedPortsCount()
       [Output Only] Named ports configured on the Instance Groups complementary
       to this Instance Group Manager.
       
      repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
      Specified by:
      getNamedPortsCount in interface InstanceGroupManagerOrBuilder
    • getNamedPorts

      public NamedPort getNamedPorts(int index)
       [Output Only] Named ports configured on the Instance Groups complementary
       to this Instance Group Manager.
       
      repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
      Specified by:
      getNamedPorts in interface InstanceGroupManagerOrBuilder
    • setNamedPorts

      public InstanceGroupManager.Builder setNamedPorts(int index, NamedPort value)
       [Output Only] Named ports configured on the Instance Groups complementary
       to this Instance Group Manager.
       
      repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
    • setNamedPorts

      public InstanceGroupManager.Builder setNamedPorts(int index, NamedPort.Builder builderForValue)
       [Output Only] Named ports configured on the Instance Groups complementary
       to this Instance Group Manager.
       
      repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
    • addNamedPorts

      public InstanceGroupManager.Builder addNamedPorts(NamedPort value)
       [Output Only] Named ports configured on the Instance Groups complementary
       to this Instance Group Manager.
       
      repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
    • addNamedPorts

      public InstanceGroupManager.Builder addNamedPorts(int index, NamedPort value)
       [Output Only] Named ports configured on the Instance Groups complementary
       to this Instance Group Manager.
       
      repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
    • addNamedPorts

      public InstanceGroupManager.Builder addNamedPorts(NamedPort.Builder builderForValue)
       [Output Only] Named ports configured on the Instance Groups complementary
       to this Instance Group Manager.
       
      repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
    • addNamedPorts

      public InstanceGroupManager.Builder addNamedPorts(int index, NamedPort.Builder builderForValue)
       [Output Only] Named ports configured on the Instance Groups complementary
       to this Instance Group Manager.
       
      repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
    • addAllNamedPorts

      public InstanceGroupManager.Builder addAllNamedPorts(Iterable<? extends NamedPort> values)
       [Output Only] Named ports configured on the Instance Groups complementary
       to this Instance Group Manager.
       
      repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
    • clearNamedPorts

      public InstanceGroupManager.Builder clearNamedPorts()
       [Output Only] Named ports configured on the Instance Groups complementary
       to this Instance Group Manager.
       
      repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
    • removeNamedPorts

      public InstanceGroupManager.Builder removeNamedPorts(int index)
       [Output Only] Named ports configured on the Instance Groups complementary
       to this Instance Group Manager.
       
      repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
    • getNamedPortsBuilder

      public NamedPort.Builder getNamedPortsBuilder(int index)
       [Output Only] Named ports configured on the Instance Groups complementary
       to this Instance Group Manager.
       
      repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
    • getNamedPortsOrBuilder

      public NamedPortOrBuilder getNamedPortsOrBuilder(int index)
       [Output Only] Named ports configured on the Instance Groups complementary
       to this Instance Group Manager.
       
      repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
      Specified by:
      getNamedPortsOrBuilder in interface InstanceGroupManagerOrBuilder
    • getNamedPortsOrBuilderList

      public List<? extends NamedPortOrBuilder> getNamedPortsOrBuilderList()
       [Output Only] Named ports configured on the Instance Groups complementary
       to this Instance Group Manager.
       
      repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
      Specified by:
      getNamedPortsOrBuilderList in interface InstanceGroupManagerOrBuilder
    • addNamedPortsBuilder

      public NamedPort.Builder addNamedPortsBuilder()
       [Output Only] Named ports configured on the Instance Groups complementary
       to this Instance Group Manager.
       
      repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
    • addNamedPortsBuilder

      public NamedPort.Builder addNamedPortsBuilder(int index)
       [Output Only] Named ports configured on the Instance Groups complementary
       to this Instance Group Manager.
       
      repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
    • getNamedPortsBuilderList

      public List<NamedPort.Builder> getNamedPortsBuilderList()
       [Output Only] Named ports configured on the Instance Groups complementary
       to this Instance Group Manager.
       
      repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
    • hasRegion

      public boolean hasRegion()
       Output only. [Output Only] The URL of theregion
       where the managed instance group resides (for regional resources).
       
      optional string region = 138946292;
      Specified by:
      hasRegion in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the region field is set.
    • getRegion

      public String getRegion()
       Output only. [Output Only] The URL of theregion
       where the managed instance group resides (for regional resources).
       
      optional string region = 138946292;
      Specified by:
      getRegion in interface InstanceGroupManagerOrBuilder
      Returns:
      The region.
    • getRegionBytes

      public com.google.protobuf.ByteString getRegionBytes()
       Output only. [Output Only] The URL of theregion
       where the managed instance group resides (for regional resources).
       
      optional string region = 138946292;
      Specified by:
      getRegionBytes in interface InstanceGroupManagerOrBuilder
      Returns:
      The bytes for region.
    • setRegion

      public InstanceGroupManager.Builder setRegion(String value)
       Output only. [Output Only] The URL of theregion
       where the managed instance group resides (for regional resources).
       
      optional string region = 138946292;
      Parameters:
      value - The region to set.
      Returns:
      This builder for chaining.
    • clearRegion

      public InstanceGroupManager.Builder clearRegion()
       Output only. [Output Only] The URL of theregion
       where the managed instance group resides (for regional resources).
       
      optional string region = 138946292;
      Returns:
      This builder for chaining.
    • setRegionBytes

      public InstanceGroupManager.Builder setRegionBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] The URL of theregion
       where the managed instance group resides (for regional resources).
       
      optional string region = 138946292;
      Parameters:
      value - The bytes for region to set.
      Returns:
      This builder for chaining.
    • hasResourcePolicies

      public boolean hasResourcePolicies()
       Resource policies for this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerResourcePolicies resource_policies = 22220385;
      Specified by:
      hasResourcePolicies in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the resourcePolicies field is set.
    • getResourcePolicies

      public InstanceGroupManagerResourcePolicies getResourcePolicies()
       Resource policies for this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerResourcePolicies resource_policies = 22220385;
      Specified by:
      getResourcePolicies in interface InstanceGroupManagerOrBuilder
      Returns:
      The resourcePolicies.
    • setResourcePolicies

       Resource policies for this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerResourcePolicies resource_policies = 22220385;
    • setResourcePolicies

      public InstanceGroupManager.Builder setResourcePolicies(InstanceGroupManagerResourcePolicies.Builder builderForValue)
       Resource policies for this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerResourcePolicies resource_policies = 22220385;
    • mergeResourcePolicies

       Resource policies for this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerResourcePolicies resource_policies = 22220385;
    • clearResourcePolicies

      public InstanceGroupManager.Builder clearResourcePolicies()
       Resource policies for this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerResourcePolicies resource_policies = 22220385;
    • getResourcePoliciesBuilder

      public InstanceGroupManagerResourcePolicies.Builder getResourcePoliciesBuilder()
       Resource policies for this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerResourcePolicies resource_policies = 22220385;
    • getResourcePoliciesOrBuilder

      public InstanceGroupManagerResourcePoliciesOrBuilder getResourcePoliciesOrBuilder()
       Resource policies for this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerResourcePolicies resource_policies = 22220385;
      Specified by:
      getResourcePoliciesOrBuilder in interface InstanceGroupManagerOrBuilder
    • hasSatisfiesPzi

      public boolean hasSatisfiesPzi()
       Output only. Reserved for future use.
       
      optional bool satisfies_pzi = 480964257;
      Specified by:
      hasSatisfiesPzi in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the satisfiesPzi field is set.
    • getSatisfiesPzi

      public boolean getSatisfiesPzi()
       Output only. Reserved for future use.
       
      optional bool satisfies_pzi = 480964257;
      Specified by:
      getSatisfiesPzi in interface InstanceGroupManagerOrBuilder
      Returns:
      The satisfiesPzi.
    • setSatisfiesPzi

      public InstanceGroupManager.Builder setSatisfiesPzi(boolean value)
       Output only. Reserved for future use.
       
      optional bool satisfies_pzi = 480964257;
      Parameters:
      value - The satisfiesPzi to set.
      Returns:
      This builder for chaining.
    • clearSatisfiesPzi

      public InstanceGroupManager.Builder clearSatisfiesPzi()
       Output only. Reserved for future use.
       
      optional bool satisfies_pzi = 480964257;
      Returns:
      This builder for chaining.
    • hasSatisfiesPzs

      public boolean hasSatisfiesPzs()
       Output only. Reserved for future use.
       
      optional bool satisfies_pzs = 480964267;
      Specified by:
      hasSatisfiesPzs in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the satisfiesPzs field is set.
    • getSatisfiesPzs

      public boolean getSatisfiesPzs()
       Output only. Reserved for future use.
       
      optional bool satisfies_pzs = 480964267;
      Specified by:
      getSatisfiesPzs in interface InstanceGroupManagerOrBuilder
      Returns:
      The satisfiesPzs.
    • setSatisfiesPzs

      public InstanceGroupManager.Builder setSatisfiesPzs(boolean value)
       Output only. Reserved for future use.
       
      optional bool satisfies_pzs = 480964267;
      Parameters:
      value - The satisfiesPzs to set.
      Returns:
      This builder for chaining.
    • clearSatisfiesPzs

      public InstanceGroupManager.Builder clearSatisfiesPzs()
       Output only. Reserved for future use.
       
      optional bool satisfies_pzs = 480964267;
      Returns:
      This builder for chaining.
    • hasSelfLink

      public boolean hasSelfLink()
       Output only. The URL for this managed instance group. The server defines
       this URL.
       
      optional string self_link = 456214797;
      Specified by:
      hasSelfLink in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the selfLink field is set.
    • getSelfLink

      public String getSelfLink()
       Output only. The URL for this managed instance group. The server defines
       this URL.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLink in interface InstanceGroupManagerOrBuilder
      Returns:
      The selfLink.
    • getSelfLinkBytes

      public com.google.protobuf.ByteString getSelfLinkBytes()
       Output only. The URL for this managed instance group. The server defines
       this URL.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLinkBytes in interface InstanceGroupManagerOrBuilder
      Returns:
      The bytes for selfLink.
    • setSelfLink

      public InstanceGroupManager.Builder setSelfLink(String value)
       Output only. The URL for this managed instance group. The server defines
       this URL.
       
      optional string self_link = 456214797;
      Parameters:
      value - The selfLink to set.
      Returns:
      This builder for chaining.
    • clearSelfLink

      public InstanceGroupManager.Builder clearSelfLink()
       Output only. The URL for this managed instance group. The server defines
       this URL.
       
      optional string self_link = 456214797;
      Returns:
      This builder for chaining.
    • setSelfLinkBytes

      public InstanceGroupManager.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
       Output only. The URL for this managed instance group. The server defines
       this URL.
       
      optional string self_link = 456214797;
      Parameters:
      value - The bytes for selfLink to set.
      Returns:
      This builder for chaining.
    • hasStandbyPolicy

      public boolean hasStandbyPolicy()
       Standby policy for stopped and suspended instances.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy standby_policy = 499352324;
      Specified by:
      hasStandbyPolicy in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the standbyPolicy field is set.
    • getStandbyPolicy

      public InstanceGroupManagerStandbyPolicy getStandbyPolicy()
       Standby policy for stopped and suspended instances.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy standby_policy = 499352324;
      Specified by:
      getStandbyPolicy in interface InstanceGroupManagerOrBuilder
      Returns:
      The standbyPolicy.
    • setStandbyPolicy

       Standby policy for stopped and suspended instances.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy standby_policy = 499352324;
    • setStandbyPolicy

       Standby policy for stopped and suspended instances.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy standby_policy = 499352324;
    • mergeStandbyPolicy

       Standby policy for stopped and suspended instances.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy standby_policy = 499352324;
    • clearStandbyPolicy

      public InstanceGroupManager.Builder clearStandbyPolicy()
       Standby policy for stopped and suspended instances.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy standby_policy = 499352324;
    • getStandbyPolicyBuilder

      public InstanceGroupManagerStandbyPolicy.Builder getStandbyPolicyBuilder()
       Standby policy for stopped and suspended instances.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy standby_policy = 499352324;
    • getStandbyPolicyOrBuilder

      public InstanceGroupManagerStandbyPolicyOrBuilder getStandbyPolicyOrBuilder()
       Standby policy for stopped and suspended instances.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerStandbyPolicy standby_policy = 499352324;
      Specified by:
      getStandbyPolicyOrBuilder in interface InstanceGroupManagerOrBuilder
    • hasStatefulPolicy

      public boolean hasStatefulPolicy()
       Stateful configuration for this Instanced Group Manager
       
      optional .google.cloud.compute.v1.StatefulPolicy stateful_policy = 47538565;
      Specified by:
      hasStatefulPolicy in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the statefulPolicy field is set.
    • getStatefulPolicy

      public StatefulPolicy getStatefulPolicy()
       Stateful configuration for this Instanced Group Manager
       
      optional .google.cloud.compute.v1.StatefulPolicy stateful_policy = 47538565;
      Specified by:
      getStatefulPolicy in interface InstanceGroupManagerOrBuilder
      Returns:
      The statefulPolicy.
    • setStatefulPolicy

      public InstanceGroupManager.Builder setStatefulPolicy(StatefulPolicy value)
       Stateful configuration for this Instanced Group Manager
       
      optional .google.cloud.compute.v1.StatefulPolicy stateful_policy = 47538565;
    • setStatefulPolicy

      public InstanceGroupManager.Builder setStatefulPolicy(StatefulPolicy.Builder builderForValue)
       Stateful configuration for this Instanced Group Manager
       
      optional .google.cloud.compute.v1.StatefulPolicy stateful_policy = 47538565;
    • mergeStatefulPolicy

      public InstanceGroupManager.Builder mergeStatefulPolicy(StatefulPolicy value)
       Stateful configuration for this Instanced Group Manager
       
      optional .google.cloud.compute.v1.StatefulPolicy stateful_policy = 47538565;
    • clearStatefulPolicy

      public InstanceGroupManager.Builder clearStatefulPolicy()
       Stateful configuration for this Instanced Group Manager
       
      optional .google.cloud.compute.v1.StatefulPolicy stateful_policy = 47538565;
    • getStatefulPolicyBuilder

      public StatefulPolicy.Builder getStatefulPolicyBuilder()
       Stateful configuration for this Instanced Group Manager
       
      optional .google.cloud.compute.v1.StatefulPolicy stateful_policy = 47538565;
    • getStatefulPolicyOrBuilder

      public StatefulPolicyOrBuilder getStatefulPolicyOrBuilder()
       Stateful configuration for this Instanced Group Manager
       
      optional .google.cloud.compute.v1.StatefulPolicy stateful_policy = 47538565;
      Specified by:
      getStatefulPolicyOrBuilder in interface InstanceGroupManagerOrBuilder
    • hasStatus

      public boolean hasStatus()
       Output only. The status of this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274;
      Specified by:
      hasStatus in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public InstanceGroupManagerStatus getStatus()
       Output only. The status of this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274;
      Specified by:
      getStatus in interface InstanceGroupManagerOrBuilder
      Returns:
      The status.
    • setStatus

       Output only. The status of this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274;
    • setStatus

       Output only. The status of this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274;
    • mergeStatus

       Output only. The status of this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274;
    • clearStatus

      public InstanceGroupManager.Builder clearStatus()
       Output only. The status of this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274;
    • getStatusBuilder

      public InstanceGroupManagerStatus.Builder getStatusBuilder()
       Output only. The status of this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274;
    • getStatusOrBuilder

      public InstanceGroupManagerStatusOrBuilder getStatusOrBuilder()
       Output only. The status of this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274;
      Specified by:
      getStatusOrBuilder in interface InstanceGroupManagerOrBuilder
    • getTargetPoolsList

      public com.google.protobuf.ProtocolStringList getTargetPoolsList()
       The URLs for all TargetPool resources to which instances in theinstanceGroup field are added. The target pools automatically
       apply to all of the instances in the managed instance group.
       
      repeated string target_pools = 336072617;
      Specified by:
      getTargetPoolsList in interface InstanceGroupManagerOrBuilder
      Returns:
      A list containing the targetPools.
    • getTargetPoolsCount

      public int getTargetPoolsCount()
       The URLs for all TargetPool resources to which instances in theinstanceGroup field are added. The target pools automatically
       apply to all of the instances in the managed instance group.
       
      repeated string target_pools = 336072617;
      Specified by:
      getTargetPoolsCount in interface InstanceGroupManagerOrBuilder
      Returns:
      The count of targetPools.
    • getTargetPools

      public String getTargetPools(int index)
       The URLs for all TargetPool resources to which instances in theinstanceGroup field are added. The target pools automatically
       apply to all of the instances in the managed instance group.
       
      repeated string target_pools = 336072617;
      Specified by:
      getTargetPools in interface InstanceGroupManagerOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The targetPools at the given index.
    • getTargetPoolsBytes

      public com.google.protobuf.ByteString getTargetPoolsBytes(int index)
       The URLs for all TargetPool resources to which instances in theinstanceGroup field are added. The target pools automatically
       apply to all of the instances in the managed instance group.
       
      repeated string target_pools = 336072617;
      Specified by:
      getTargetPoolsBytes in interface InstanceGroupManagerOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the targetPools at the given index.
    • setTargetPools

      public InstanceGroupManager.Builder setTargetPools(int index, String value)
       The URLs for all TargetPool resources to which instances in theinstanceGroup field are added. The target pools automatically
       apply to all of the instances in the managed instance group.
       
      repeated string target_pools = 336072617;
      Parameters:
      index - The index to set the value at.
      value - The targetPools to set.
      Returns:
      This builder for chaining.
    • addTargetPools

      public InstanceGroupManager.Builder addTargetPools(String value)
       The URLs for all TargetPool resources to which instances in theinstanceGroup field are added. The target pools automatically
       apply to all of the instances in the managed instance group.
       
      repeated string target_pools = 336072617;
      Parameters:
      value - The targetPools to add.
      Returns:
      This builder for chaining.
    • addAllTargetPools

      public InstanceGroupManager.Builder addAllTargetPools(Iterable<String> values)
       The URLs for all TargetPool resources to which instances in theinstanceGroup field are added. The target pools automatically
       apply to all of the instances in the managed instance group.
       
      repeated string target_pools = 336072617;
      Parameters:
      values - The targetPools to add.
      Returns:
      This builder for chaining.
    • clearTargetPools

      public InstanceGroupManager.Builder clearTargetPools()
       The URLs for all TargetPool resources to which instances in theinstanceGroup field are added. The target pools automatically
       apply to all of the instances in the managed instance group.
       
      repeated string target_pools = 336072617;
      Returns:
      This builder for chaining.
    • addTargetPoolsBytes

      public InstanceGroupManager.Builder addTargetPoolsBytes(com.google.protobuf.ByteString value)
       The URLs for all TargetPool resources to which instances in theinstanceGroup field are added. The target pools automatically
       apply to all of the instances in the managed instance group.
       
      repeated string target_pools = 336072617;
      Parameters:
      value - The bytes of the targetPools to add.
      Returns:
      This builder for chaining.
    • hasTargetSize

      public boolean hasTargetSize()
       The target number of running instances for this managed instance group.
       You can reduce this number by using the instanceGroupManager
       deleteInstances or abandonInstances methods. Resizing the group also
       changes this number.
       
      optional int32 target_size = 62880239;
      Specified by:
      hasTargetSize in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the targetSize field is set.
    • getTargetSize

      public int getTargetSize()
       The target number of running instances for this managed instance group.
       You can reduce this number by using the instanceGroupManager
       deleteInstances or abandonInstances methods. Resizing the group also
       changes this number.
       
      optional int32 target_size = 62880239;
      Specified by:
      getTargetSize in interface InstanceGroupManagerOrBuilder
      Returns:
      The targetSize.
    • setTargetSize

      public InstanceGroupManager.Builder setTargetSize(int value)
       The target number of running instances for this managed instance group.
       You can reduce this number by using the instanceGroupManager
       deleteInstances or abandonInstances methods. Resizing the group also
       changes this number.
       
      optional int32 target_size = 62880239;
      Parameters:
      value - The targetSize to set.
      Returns:
      This builder for chaining.
    • clearTargetSize

      public InstanceGroupManager.Builder clearTargetSize()
       The target number of running instances for this managed instance group.
       You can reduce this number by using the instanceGroupManager
       deleteInstances or abandonInstances methods. Resizing the group also
       changes this number.
       
      optional int32 target_size = 62880239;
      Returns:
      This builder for chaining.
    • hasTargetSizePolicy

      public boolean hasTargetSizePolicy()
       The policy that specifies how the MIG creates its VMs to achieve the target
       size.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy target_size_policy = 128773506;
      Specified by:
      hasTargetSizePolicy in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the targetSizePolicy field is set.
    • getTargetSizePolicy

      public InstanceGroupManagerTargetSizePolicy getTargetSizePolicy()
       The policy that specifies how the MIG creates its VMs to achieve the target
       size.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy target_size_policy = 128773506;
      Specified by:
      getTargetSizePolicy in interface InstanceGroupManagerOrBuilder
      Returns:
      The targetSizePolicy.
    • setTargetSizePolicy

       The policy that specifies how the MIG creates its VMs to achieve the target
       size.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy target_size_policy = 128773506;
    • setTargetSizePolicy

      public InstanceGroupManager.Builder setTargetSizePolicy(InstanceGroupManagerTargetSizePolicy.Builder builderForValue)
       The policy that specifies how the MIG creates its VMs to achieve the target
       size.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy target_size_policy = 128773506;
    • mergeTargetSizePolicy

       The policy that specifies how the MIG creates its VMs to achieve the target
       size.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy target_size_policy = 128773506;
    • clearTargetSizePolicy

      public InstanceGroupManager.Builder clearTargetSizePolicy()
       The policy that specifies how the MIG creates its VMs to achieve the target
       size.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy target_size_policy = 128773506;
    • getTargetSizePolicyBuilder

      public InstanceGroupManagerTargetSizePolicy.Builder getTargetSizePolicyBuilder()
       The policy that specifies how the MIG creates its VMs to achieve the target
       size.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy target_size_policy = 128773506;
    • getTargetSizePolicyOrBuilder

      public InstanceGroupManagerTargetSizePolicyOrBuilder getTargetSizePolicyOrBuilder()
       The policy that specifies how the MIG creates its VMs to achieve the target
       size.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerTargetSizePolicy target_size_policy = 128773506;
      Specified by:
      getTargetSizePolicyOrBuilder in interface InstanceGroupManagerOrBuilder
    • hasTargetStoppedSize

      public boolean hasTargetStoppedSize()
       The target number of stopped instances for this managed instance group.
       This number changes when you:
      
       - Stop instance using the stopInstances
       method or start instances using the startInstances
       method.
       - Manually change the targetStoppedSize using the update
       method.
       
      optional int32 target_stopped_size = 2419489;
      Specified by:
      hasTargetStoppedSize in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the targetStoppedSize field is set.
    • getTargetStoppedSize

      public int getTargetStoppedSize()
       The target number of stopped instances for this managed instance group.
       This number changes when you:
      
       - Stop instance using the stopInstances
       method or start instances using the startInstances
       method.
       - Manually change the targetStoppedSize using the update
       method.
       
      optional int32 target_stopped_size = 2419489;
      Specified by:
      getTargetStoppedSize in interface InstanceGroupManagerOrBuilder
      Returns:
      The targetStoppedSize.
    • setTargetStoppedSize

      public InstanceGroupManager.Builder setTargetStoppedSize(int value)
       The target number of stopped instances for this managed instance group.
       This number changes when you:
      
       - Stop instance using the stopInstances
       method or start instances using the startInstances
       method.
       - Manually change the targetStoppedSize using the update
       method.
       
      optional int32 target_stopped_size = 2419489;
      Parameters:
      value - The targetStoppedSize to set.
      Returns:
      This builder for chaining.
    • clearTargetStoppedSize

      public InstanceGroupManager.Builder clearTargetStoppedSize()
       The target number of stopped instances for this managed instance group.
       This number changes when you:
      
       - Stop instance using the stopInstances
       method or start instances using the startInstances
       method.
       - Manually change the targetStoppedSize using the update
       method.
       
      optional int32 target_stopped_size = 2419489;
      Returns:
      This builder for chaining.
    • hasTargetSuspendedSize

      public boolean hasTargetSuspendedSize()
       The target number of suspended instances for this managed instance group.
       This number changes when you:
      
       - Suspend instance using the suspendInstances
       method or resume instances using the resumeInstances
       method.
       - Manually change the targetSuspendedSize using the update
       method.
       
      optional int32 target_suspended_size = 308085843;
      Specified by:
      hasTargetSuspendedSize in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the targetSuspendedSize field is set.
    • getTargetSuspendedSize

      public int getTargetSuspendedSize()
       The target number of suspended instances for this managed instance group.
       This number changes when you:
      
       - Suspend instance using the suspendInstances
       method or resume instances using the resumeInstances
       method.
       - Manually change the targetSuspendedSize using the update
       method.
       
      optional int32 target_suspended_size = 308085843;
      Specified by:
      getTargetSuspendedSize in interface InstanceGroupManagerOrBuilder
      Returns:
      The targetSuspendedSize.
    • setTargetSuspendedSize

      public InstanceGroupManager.Builder setTargetSuspendedSize(int value)
       The target number of suspended instances for this managed instance group.
       This number changes when you:
      
       - Suspend instance using the suspendInstances
       method or resume instances using the resumeInstances
       method.
       - Manually change the targetSuspendedSize using the update
       method.
       
      optional int32 target_suspended_size = 308085843;
      Parameters:
      value - The targetSuspendedSize to set.
      Returns:
      This builder for chaining.
    • clearTargetSuspendedSize

      public InstanceGroupManager.Builder clearTargetSuspendedSize()
       The target number of suspended instances for this managed instance group.
       This number changes when you:
      
       - Suspend instance using the suspendInstances
       method or resume instances using the resumeInstances
       method.
       - Manually change the targetSuspendedSize using the update
       method.
       
      optional int32 target_suspended_size = 308085843;
      Returns:
      This builder for chaining.
    • hasUpdatePolicy

      public boolean hasUpdatePolicy()
       The update policy for this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerUpdatePolicy update_policy = 175809896;
      Specified by:
      hasUpdatePolicy in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the updatePolicy field is set.
    • getUpdatePolicy

      public InstanceGroupManagerUpdatePolicy getUpdatePolicy()
       The update policy for this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerUpdatePolicy update_policy = 175809896;
      Specified by:
      getUpdatePolicy in interface InstanceGroupManagerOrBuilder
      Returns:
      The updatePolicy.
    • setUpdatePolicy

       The update policy for this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerUpdatePolicy update_policy = 175809896;
    • setUpdatePolicy

       The update policy for this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerUpdatePolicy update_policy = 175809896;
    • mergeUpdatePolicy

       The update policy for this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerUpdatePolicy update_policy = 175809896;
    • clearUpdatePolicy

      public InstanceGroupManager.Builder clearUpdatePolicy()
       The update policy for this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerUpdatePolicy update_policy = 175809896;
    • getUpdatePolicyBuilder

      public InstanceGroupManagerUpdatePolicy.Builder getUpdatePolicyBuilder()
       The update policy for this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerUpdatePolicy update_policy = 175809896;
    • getUpdatePolicyOrBuilder

      public InstanceGroupManagerUpdatePolicyOrBuilder getUpdatePolicyOrBuilder()
       The update policy for this managed instance group.
       
      optional .google.cloud.compute.v1.InstanceGroupManagerUpdatePolicy update_policy = 175809896;
      Specified by:
      getUpdatePolicyOrBuilder in interface InstanceGroupManagerOrBuilder
    • getVersionsList

      public List<InstanceGroupManagerVersion> getVersionsList()
       Specifies the instance templates used by this managed instance group to
       create instances.
      
       Each version is defined by an instanceTemplate and aname. Every version can appear at most once per instance
       group. This field overrides the top-level instanceTemplate
       field. Read more about therelationships
       between these fields. Exactly one version must leave thetargetSize field unset. That version will be applied to all
       remaining instances. For more information, read aboutcanary
       updates.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerVersion versions = 162430619;
      Specified by:
      getVersionsList in interface InstanceGroupManagerOrBuilder
    • getVersionsCount

      public int getVersionsCount()
       Specifies the instance templates used by this managed instance group to
       create instances.
      
       Each version is defined by an instanceTemplate and aname. Every version can appear at most once per instance
       group. This field overrides the top-level instanceTemplate
       field. Read more about therelationships
       between these fields. Exactly one version must leave thetargetSize field unset. That version will be applied to all
       remaining instances. For more information, read aboutcanary
       updates.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerVersion versions = 162430619;
      Specified by:
      getVersionsCount in interface InstanceGroupManagerOrBuilder
    • getVersions

      public InstanceGroupManagerVersion getVersions(int index)
       Specifies the instance templates used by this managed instance group to
       create instances.
      
       Each version is defined by an instanceTemplate and aname. Every version can appear at most once per instance
       group. This field overrides the top-level instanceTemplate
       field. Read more about therelationships
       between these fields. Exactly one version must leave thetargetSize field unset. That version will be applied to all
       remaining instances. For more information, read aboutcanary
       updates.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerVersion versions = 162430619;
      Specified by:
      getVersions in interface InstanceGroupManagerOrBuilder
    • setVersions

      public InstanceGroupManager.Builder setVersions(int index, InstanceGroupManagerVersion value)
       Specifies the instance templates used by this managed instance group to
       create instances.
      
       Each version is defined by an instanceTemplate and aname. Every version can appear at most once per instance
       group. This field overrides the top-level instanceTemplate
       field. Read more about therelationships
       between these fields. Exactly one version must leave thetargetSize field unset. That version will be applied to all
       remaining instances. For more information, read aboutcanary
       updates.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerVersion versions = 162430619;
    • setVersions

      public InstanceGroupManager.Builder setVersions(int index, InstanceGroupManagerVersion.Builder builderForValue)
       Specifies the instance templates used by this managed instance group to
       create instances.
      
       Each version is defined by an instanceTemplate and aname. Every version can appear at most once per instance
       group. This field overrides the top-level instanceTemplate
       field. Read more about therelationships
       between these fields. Exactly one version must leave thetargetSize field unset. That version will be applied to all
       remaining instances. For more information, read aboutcanary
       updates.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerVersion versions = 162430619;
    • addVersions

       Specifies the instance templates used by this managed instance group to
       create instances.
      
       Each version is defined by an instanceTemplate and aname. Every version can appear at most once per instance
       group. This field overrides the top-level instanceTemplate
       field. Read more about therelationships
       between these fields. Exactly one version must leave thetargetSize field unset. That version will be applied to all
       remaining instances. For more information, read aboutcanary
       updates.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerVersion versions = 162430619;
    • addVersions

      public InstanceGroupManager.Builder addVersions(int index, InstanceGroupManagerVersion value)
       Specifies the instance templates used by this managed instance group to
       create instances.
      
       Each version is defined by an instanceTemplate and aname. Every version can appear at most once per instance
       group. This field overrides the top-level instanceTemplate
       field. Read more about therelationships
       between these fields. Exactly one version must leave thetargetSize field unset. That version will be applied to all
       remaining instances. For more information, read aboutcanary
       updates.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerVersion versions = 162430619;
    • addVersions

       Specifies the instance templates used by this managed instance group to
       create instances.
      
       Each version is defined by an instanceTemplate and aname. Every version can appear at most once per instance
       group. This field overrides the top-level instanceTemplate
       field. Read more about therelationships
       between these fields. Exactly one version must leave thetargetSize field unset. That version will be applied to all
       remaining instances. For more information, read aboutcanary
       updates.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerVersion versions = 162430619;
    • addVersions

      public InstanceGroupManager.Builder addVersions(int index, InstanceGroupManagerVersion.Builder builderForValue)
       Specifies the instance templates used by this managed instance group to
       create instances.
      
       Each version is defined by an instanceTemplate and aname. Every version can appear at most once per instance
       group. This field overrides the top-level instanceTemplate
       field. Read more about therelationships
       between these fields. Exactly one version must leave thetargetSize field unset. That version will be applied to all
       remaining instances. For more information, read aboutcanary
       updates.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerVersion versions = 162430619;
    • addAllVersions

      public InstanceGroupManager.Builder addAllVersions(Iterable<? extends InstanceGroupManagerVersion> values)
       Specifies the instance templates used by this managed instance group to
       create instances.
      
       Each version is defined by an instanceTemplate and aname. Every version can appear at most once per instance
       group. This field overrides the top-level instanceTemplate
       field. Read more about therelationships
       between these fields. Exactly one version must leave thetargetSize field unset. That version will be applied to all
       remaining instances. For more information, read aboutcanary
       updates.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerVersion versions = 162430619;
    • clearVersions

      public InstanceGroupManager.Builder clearVersions()
       Specifies the instance templates used by this managed instance group to
       create instances.
      
       Each version is defined by an instanceTemplate and aname. Every version can appear at most once per instance
       group. This field overrides the top-level instanceTemplate
       field. Read more about therelationships
       between these fields. Exactly one version must leave thetargetSize field unset. That version will be applied to all
       remaining instances. For more information, read aboutcanary
       updates.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerVersion versions = 162430619;
    • removeVersions

      public InstanceGroupManager.Builder removeVersions(int index)
       Specifies the instance templates used by this managed instance group to
       create instances.
      
       Each version is defined by an instanceTemplate and aname. Every version can appear at most once per instance
       group. This field overrides the top-level instanceTemplate
       field. Read more about therelationships
       between these fields. Exactly one version must leave thetargetSize field unset. That version will be applied to all
       remaining instances. For more information, read aboutcanary
       updates.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerVersion versions = 162430619;
    • getVersionsBuilder

      public InstanceGroupManagerVersion.Builder getVersionsBuilder(int index)
       Specifies the instance templates used by this managed instance group to
       create instances.
      
       Each version is defined by an instanceTemplate and aname. Every version can appear at most once per instance
       group. This field overrides the top-level instanceTemplate
       field. Read more about therelationships
       between these fields. Exactly one version must leave thetargetSize field unset. That version will be applied to all
       remaining instances. For more information, read aboutcanary
       updates.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerVersion versions = 162430619;
    • getVersionsOrBuilder

      public InstanceGroupManagerVersionOrBuilder getVersionsOrBuilder(int index)
       Specifies the instance templates used by this managed instance group to
       create instances.
      
       Each version is defined by an instanceTemplate and aname. Every version can appear at most once per instance
       group. This field overrides the top-level instanceTemplate
       field. Read more about therelationships
       between these fields. Exactly one version must leave thetargetSize field unset. That version will be applied to all
       remaining instances. For more information, read aboutcanary
       updates.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerVersion versions = 162430619;
      Specified by:
      getVersionsOrBuilder in interface InstanceGroupManagerOrBuilder
    • getVersionsOrBuilderList

      public List<? extends InstanceGroupManagerVersionOrBuilder> getVersionsOrBuilderList()
       Specifies the instance templates used by this managed instance group to
       create instances.
      
       Each version is defined by an instanceTemplate and aname. Every version can appear at most once per instance
       group. This field overrides the top-level instanceTemplate
       field. Read more about therelationships
       between these fields. Exactly one version must leave thetargetSize field unset. That version will be applied to all
       remaining instances. For more information, read aboutcanary
       updates.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerVersion versions = 162430619;
      Specified by:
      getVersionsOrBuilderList in interface InstanceGroupManagerOrBuilder
    • addVersionsBuilder

      public InstanceGroupManagerVersion.Builder addVersionsBuilder()
       Specifies the instance templates used by this managed instance group to
       create instances.
      
       Each version is defined by an instanceTemplate and aname. Every version can appear at most once per instance
       group. This field overrides the top-level instanceTemplate
       field. Read more about therelationships
       between these fields. Exactly one version must leave thetargetSize field unset. That version will be applied to all
       remaining instances. For more information, read aboutcanary
       updates.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerVersion versions = 162430619;
    • addVersionsBuilder

      public InstanceGroupManagerVersion.Builder addVersionsBuilder(int index)
       Specifies the instance templates used by this managed instance group to
       create instances.
      
       Each version is defined by an instanceTemplate and aname. Every version can appear at most once per instance
       group. This field overrides the top-level instanceTemplate
       field. Read more about therelationships
       between these fields. Exactly one version must leave thetargetSize field unset. That version will be applied to all
       remaining instances. For more information, read aboutcanary
       updates.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerVersion versions = 162430619;
    • getVersionsBuilderList

      public List<InstanceGroupManagerVersion.Builder> getVersionsBuilderList()
       Specifies the instance templates used by this managed instance group to
       create instances.
      
       Each version is defined by an instanceTemplate and aname. Every version can appear at most once per instance
       group. This field overrides the top-level instanceTemplate
       field. Read more about therelationships
       between these fields. Exactly one version must leave thetargetSize field unset. That version will be applied to all
       remaining instances. For more information, read aboutcanary
       updates.
       
      repeated .google.cloud.compute.v1.InstanceGroupManagerVersion versions = 162430619;
    • hasZone

      public boolean hasZone()
       Output only. The URL of azone
       where the managed instance group is located (for zonal resources).
       
      optional string zone = 3744684;
      Specified by:
      hasZone in interface InstanceGroupManagerOrBuilder
      Returns:
      Whether the zone field is set.
    • getZone

      public String getZone()
       Output only. The URL of azone
       where the managed instance group is located (for zonal resources).
       
      optional string zone = 3744684;
      Specified by:
      getZone in interface InstanceGroupManagerOrBuilder
      Returns:
      The zone.
    • getZoneBytes

      public com.google.protobuf.ByteString getZoneBytes()
       Output only. The URL of azone
       where the managed instance group is located (for zonal resources).
       
      optional string zone = 3744684;
      Specified by:
      getZoneBytes in interface InstanceGroupManagerOrBuilder
      Returns:
      The bytes for zone.
    • setZone

      public InstanceGroupManager.Builder setZone(String value)
       Output only. The URL of azone
       where the managed instance group is located (for zonal resources).
       
      optional string zone = 3744684;
      Parameters:
      value - The zone to set.
      Returns:
      This builder for chaining.
    • clearZone

      public InstanceGroupManager.Builder clearZone()
       Output only. The URL of azone
       where the managed instance group is located (for zonal resources).
       
      optional string zone = 3744684;
      Returns:
      This builder for chaining.
    • setZoneBytes

      public InstanceGroupManager.Builder setZoneBytes(com.google.protobuf.ByteString value)
       Output only. The URL of azone
       where the managed instance group is located (for zonal resources).
       
      optional string zone = 3744684;
      Parameters:
      value - The bytes for zone to set.
      Returns:
      This builder for chaining.