Class InstanceGroupManager

  • All Implemented Interfaces:
    InstanceGroupManagerOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class InstanceGroupManager
    extends com.google.protobuf.GeneratedMessageV3
    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
    See Also:
    Serialized Form
    • Field Detail

      • AUTO_HEALING_POLICIES_FIELD_NUMBER

        public static final int AUTO_HEALING_POLICIES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BASE_INSTANCE_NAME_FIELD_NUMBER

        public static final int BASE_INSTANCE_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CREATION_TIMESTAMP_FIELD_NUMBER

        public static final int CREATION_TIMESTAMP_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CURRENT_ACTIONS_FIELD_NUMBER

        public static final int CURRENT_ACTIONS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DESCRIPTION_FIELD_NUMBER

        public static final int DESCRIPTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DISTRIBUTION_POLICY_FIELD_NUMBER

        public static final int DISTRIBUTION_POLICY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • FINGERPRINT_FIELD_NUMBER

        public static final int FINGERPRINT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • INSTANCE_GROUP_FIELD_NUMBER

        public static final int INSTANCE_GROUP_FIELD_NUMBER
        See Also:
        Constant Field Values
      • INSTANCE_LIFECYCLE_POLICY_FIELD_NUMBER

        public static final int INSTANCE_LIFECYCLE_POLICY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • INSTANCE_TEMPLATE_FIELD_NUMBER

        public static final int INSTANCE_TEMPLATE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LIST_MANAGED_INSTANCES_RESULTS_FIELD_NUMBER

        public static final int LIST_MANAGED_INSTANCES_RESULTS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • NAMED_PORTS_FIELD_NUMBER

        public static final int NAMED_PORTS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • STATEFUL_POLICY_FIELD_NUMBER

        public static final int STATEFUL_POLICY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TARGET_POOLS_FIELD_NUMBER

        public static final int TARGET_POOLS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TARGET_SIZE_FIELD_NUMBER

        public static final int TARGET_SIZE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • UPDATE_POLICY_FIELD_NUMBER

        public static final int UPDATE_POLICY_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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
      • 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
      • 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
      • 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
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static InstanceGroupManager parseFrom​(ByteBuffer data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static InstanceGroupManager parseFrom​(ByteBuffer data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static InstanceGroupManager parseFrom​(com.google.protobuf.ByteString data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static InstanceGroupManager parseFrom​(com.google.protobuf.ByteString data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static InstanceGroupManager parseFrom​(byte[] data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static InstanceGroupManager parseFrom​(byte[] data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

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

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

        protected InstanceGroupManager.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<InstanceGroupManager> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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