Class 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.GeneratedMessageV3.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, read Instance groups. For zonal Managed Instance Group, use the instanceGroupManagers resource. For regional Managed Instance Group, use the regionInstanceGroupManagers resource.
     
    Protobuf type google.cloud.compute.v1.InstanceGroupManager
    • Method Detail

      • getDescriptor

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

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public InstanceGroupManager.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroupManager.Builder>
      • setField

        public InstanceGroupManager.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroupManager.Builder>
      • clearField

        public InstanceGroupManager.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroupManager.Builder>
      • clearOneof

        public InstanceGroupManager.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroupManager.Builder>
      • setRepeatedField

        public InstanceGroupManager.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             int index,
                                                             Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroupManager.Builder>
      • addRepeatedField

        public InstanceGroupManager.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroupManager.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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
      • 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;
      • addAutoHealingPolicies

        public InstanceGroupManager.Builder addAutoHealingPolicies​(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​(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;
      • 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;
      • 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 to use for instances in this group. The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with RFC1035.
         
        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 to use for instances in this group. The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with RFC1035.
         
        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 to use for instances in this group. The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with RFC1035.
         
        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 to use for instances in this group. The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with RFC1035.
         
        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 to use for instances in this group. The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with RFC1035.
         
        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 to use for instances in this group. The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with RFC1035.
         
        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 in RFC3339 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 in RFC3339 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 in RFC3339 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 in RFC3339 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 in RFC3339 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 in RFC3339 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

        public InstanceGroupManager.Builder setCurrentActions​(InstanceGroupManagerActionsSummary value)
         [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

        public InstanceGroupManager.Builder setCurrentActions​(InstanceGroupManagerActionsSummary.Builder builderForValue)
         [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

        public InstanceGroupManager.Builder mergeCurrentActions​(InstanceGroupManagerActionsSummary value)
         [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;
      • 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.
      • 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;
      • 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 error 412 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 error 412 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 error 412 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 error 412 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 error 412 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 error 412 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.
      • 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.
      • 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.
      • 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;
      • 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, run applyUpdatesToInstances, or set the group's updatePolicy.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, run applyUpdatesToInstances, or set the group's updatePolicy.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, run applyUpdatesToInstances, or set the group's updatePolicy.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, run applyUpdatesToInstances, or set the group's updatePolicy.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, run applyUpdatesToInstances, or set the group's updatePolicy.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, run applyUpdatesToInstances, or set the group's updatePolicy.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 always compute#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 always compute#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 always compute#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 always compute#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 always compute#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 always compute#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 with RFC1035.
         
        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 with RFC1035.
         
        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 with RFC1035.
         
        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 with RFC1035.
         
        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 with RFC1035.
         
        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 with RFC1035.
         
        optional string name = 3373707;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getNamedPortsList

        public List<NamedPort> getNamedPortsList()
         Named ports configured for 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()
         Named ports configured for 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)
         Named ports configured for 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)
         Named ports configured for 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)
         Named ports configured for 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)
         Named ports configured for 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)
         Named ports configured for 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)
         Named ports configured for 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)
         Named ports configured for 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)
         Named ports configured for the Instance Groups complementary to this Instance Group Manager.
         
        repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
      • clearNamedPorts

        public InstanceGroupManager.Builder clearNamedPorts()
         Named ports configured for 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)
         Named ports configured for 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)
         Named ports configured for the Instance Groups complementary to this Instance Group Manager.
         
        repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
      • addNamedPortsBuilder

        public NamedPort.Builder addNamedPortsBuilder()
         Named ports configured for 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)
         Named ports configured for the Instance Groups complementary to this Instance Group Manager.
         
        repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;
      • getNamedPortsBuilderList

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

        public boolean hasRegion()
         [Output Only] The URL of the region 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] The URL of the region 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] The URL of the region 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] The URL of the region 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] The URL of the region 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] The URL of the region 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.
      • 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.
      • 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;
      • 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.
      • 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;
      • getTargetPoolsList

        public com.google.protobuf.ProtocolStringList getTargetPoolsList()
         The URLs for all TargetPool resources to which instances in the instanceGroup 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 the instanceGroup 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 the instanceGroup 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 the instanceGroup 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 the instanceGroup 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 the instanceGroup 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 the instanceGroup 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 the instanceGroup 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 the instanceGroup 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.
      • 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.
      • 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;
      • 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 a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary 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 a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary 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 a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary 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 a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary 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 a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary updates.
         
        repeated .google.cloud.compute.v1.InstanceGroupManagerVersion versions = 162430619;
      • addVersions

        public InstanceGroupManager.Builder addVersions​(InstanceGroupManagerVersion value)
         Specifies the instance templates used by this managed instance group to create instances. Each version is defined by an instanceTemplate and a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary 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 a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary updates.
         
        repeated .google.cloud.compute.v1.InstanceGroupManagerVersion versions = 162430619;
      • addVersions

        public InstanceGroupManager.Builder addVersions​(InstanceGroupManagerVersion.Builder builderForValue)
         Specifies the instance templates used by this managed instance group to create instances. Each version is defined by an instanceTemplate and a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary 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 a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary 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 a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary 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 a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary 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 a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary 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 a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary 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 a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary 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 a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary 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 a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary 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 a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary 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 a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary updates.
         
        repeated .google.cloud.compute.v1.InstanceGroupManagerVersion versions = 162430619;
      • hasZone

        public boolean hasZone()
         [Output Only] The URL of a zone 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 a zone 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 a zone 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 a zone 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 a zone 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 a zone 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.
      • setUnknownFields

        public final InstanceGroupManager.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroupManager.Builder>
      • mergeUnknownFields

        public final InstanceGroupManager.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceGroupManager.Builder>