Class InstanceGroupManager.Builder (1.45.0)

public static final class InstanceGroupManager.Builder extends 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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllAutoHealingPolicies(Iterable<? extends InstanceGroupManagerAutoHealingPolicy> values)

public InstanceGroupManager.Builder addAllAutoHealingPolicies(Iterable<? extends InstanceGroupManagerAutoHealingPolicy> values)

The autohealing policy for this managed instance group. You can specify only one value.

repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy>
Returns
TypeDescription
InstanceGroupManager.Builder

addAllNamedPorts(Iterable<? extends NamedPort> values)

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;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.NamedPort>
Returns
TypeDescription
InstanceGroupManager.Builder

addAllTargetPools(Iterable<String> values)

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;

Parameter
NameDescription
valuesIterable<String>

The targetPools to add.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

addAllVersions(Iterable<? extends InstanceGroupManagerVersion> values)

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;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.InstanceGroupManagerVersion>
Returns
TypeDescription
InstanceGroupManager.Builder

addAutoHealingPolicies(InstanceGroupManagerAutoHealingPolicy value)

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;

Parameter
NameDescription
valueInstanceGroupManagerAutoHealingPolicy
Returns
TypeDescription
InstanceGroupManager.Builder

addAutoHealingPolicies(InstanceGroupManagerAutoHealingPolicy.Builder builderForValue)

public InstanceGroupManager.Builder addAutoHealingPolicies(InstanceGroupManagerAutoHealingPolicy.Builder builderForValue)

The autohealing policy for this managed instance group. You can specify only one value.

repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;

Parameter
NameDescription
builderForValueInstanceGroupManagerAutoHealingPolicy.Builder
Returns
TypeDescription
InstanceGroupManager.Builder

addAutoHealingPolicies(int index, InstanceGroupManagerAutoHealingPolicy value)

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;

Parameters
NameDescription
indexint
valueInstanceGroupManagerAutoHealingPolicy
Returns
TypeDescription
InstanceGroupManager.Builder

addAutoHealingPolicies(int index, InstanceGroupManagerAutoHealingPolicy.Builder builderForValue)

public InstanceGroupManager.Builder addAutoHealingPolicies(int index, InstanceGroupManagerAutoHealingPolicy.Builder builderForValue)

The autohealing policy for this managed instance group. You can specify only one value.

repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;

Parameters
NameDescription
indexint
builderForValueInstanceGroupManagerAutoHealingPolicy.Builder
Returns
TypeDescription
InstanceGroupManager.Builder

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;

Returns
TypeDescription
InstanceGroupManagerAutoHealingPolicy.Builder

addAutoHealingPoliciesBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
InstanceGroupManagerAutoHealingPolicy.Builder

addNamedPorts(NamedPort value)

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;

Parameter
NameDescription
valueNamedPort
Returns
TypeDescription
InstanceGroupManager.Builder

addNamedPorts(NamedPort.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueNamedPort.Builder
Returns
TypeDescription
InstanceGroupManager.Builder

addNamedPorts(int index, NamedPort value)

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;

Parameters
NameDescription
indexint
valueNamedPort
Returns
TypeDescription
InstanceGroupManager.Builder

addNamedPorts(int index, NamedPort.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueNamedPort.Builder
Returns
TypeDescription
InstanceGroupManager.Builder

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;

Returns
TypeDescription
NamedPort.Builder

addNamedPortsBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
NamedPort.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InstanceGroupManager.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InstanceGroupManager.Builder
Overrides

addTargetPools(String value)

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;

Parameter
NameDescription
valueString

The targetPools to add.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

addTargetPoolsBytes(ByteString value)

public InstanceGroupManager.Builder addTargetPoolsBytes(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;

Parameter
NameDescription
valueByteString

The bytes of the targetPools to add.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

addVersions(InstanceGroupManagerVersion value)

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;

Parameter
NameDescription
valueInstanceGroupManagerVersion
Returns
TypeDescription
InstanceGroupManager.Builder

addVersions(InstanceGroupManagerVersion.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueInstanceGroupManagerVersion.Builder
Returns
TypeDescription
InstanceGroupManager.Builder

addVersions(int index, InstanceGroupManagerVersion value)

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;

Parameters
NameDescription
indexint
valueInstanceGroupManagerVersion
Returns
TypeDescription
InstanceGroupManager.Builder

addVersions(int index, InstanceGroupManagerVersion.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueInstanceGroupManagerVersion.Builder
Returns
TypeDescription
InstanceGroupManager.Builder

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;

Returns
TypeDescription
InstanceGroupManagerVersion.Builder

addVersionsBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
InstanceGroupManagerVersion.Builder

build()

public InstanceGroupManager build()
Returns
TypeDescription
InstanceGroupManager

buildPartial()

public InstanceGroupManager buildPartial()
Returns
TypeDescription
InstanceGroupManager

clear()

public InstanceGroupManager.Builder clear()
Returns
TypeDescription
InstanceGroupManager.Builder
Overrides

clearAllInstancesConfig()

public InstanceGroupManager.Builder clearAllInstancesConfig()

Specifies configuration that overrides the instance template configuration for the group.

optional .google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig all_instances_config = 112596737;

Returns
TypeDescription
InstanceGroupManager.Builder

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;

Returns
TypeDescription
InstanceGroupManager.Builder

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
TypeDescription
InstanceGroupManager.Builder

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
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

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;

Returns
TypeDescription
InstanceGroupManager.Builder

clearDescription()

public InstanceGroupManager.Builder clearDescription()

An optional description of this resource.

optional string description = 422937596;

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

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;

Returns
TypeDescription
InstanceGroupManager.Builder

clearField(Descriptors.FieldDescriptor field)

public InstanceGroupManager.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
InstanceGroupManager.Builder
Overrides

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
TypeDescription
InstanceGroupManager.Builder

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
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

clearInstanceGroup()

public InstanceGroupManager.Builder clearInstanceGroup()

[Output Only] The URL of the Instance Group resource.

optional string instance_group = 81095253;

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

clearInstanceLifecyclePolicy()

public InstanceGroupManager.Builder clearInstanceLifecyclePolicy()

The repair policy for this managed instance group.

optional .google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy instance_lifecycle_policy = 447961617;

Returns
TypeDescription
InstanceGroupManager.Builder

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
TypeDescription
InstanceGroupManager.Builder

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
TypeDescription
InstanceGroupManager.Builder

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
TypeDescription
InstanceGroupManager.Builder

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
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

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;

Returns
TypeDescription
InstanceGroupManager.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public InstanceGroupManager.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
InstanceGroupManager.Builder
Overrides

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
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

public InstanceGroupManager.Builder clearSelfLink()

[Output Only] The URL for this managed instance group. The server defines this URL.

optional string self_link = 456214797;

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

clearStatefulPolicy()

public InstanceGroupManager.Builder clearStatefulPolicy()

Stateful configuration for this Instanced Group Manager

optional .google.cloud.compute.v1.StatefulPolicy stateful_policy = 47538565;

Returns
TypeDescription
InstanceGroupManager.Builder

clearStatus()

public InstanceGroupManager.Builder clearStatus()

[Output Only] The status of this managed instance group.

optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274;

Returns
TypeDescription
InstanceGroupManager.Builder

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
TypeDescription
InstanceGroupManager.Builder

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
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

clearUpdatePolicy()

public InstanceGroupManager.Builder clearUpdatePolicy()

The update policy for this managed instance group.

optional .google.cloud.compute.v1.InstanceGroupManagerUpdatePolicy update_policy = 175809896;

Returns
TypeDescription
InstanceGroupManager.Builder

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;

Returns
TypeDescription
InstanceGroupManager.Builder

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
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

clone()

public InstanceGroupManager.Builder clone()
Returns
TypeDescription
InstanceGroupManager.Builder
Overrides

getAllInstancesConfig()

public InstanceGroupManagerAllInstancesConfig getAllInstancesConfig()

Specifies configuration that overrides the instance template configuration for the group.

optional .google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig all_instances_config = 112596737;

Returns
TypeDescription
InstanceGroupManagerAllInstancesConfig

The allInstancesConfig.

getAllInstancesConfigBuilder()

public InstanceGroupManagerAllInstancesConfig.Builder getAllInstancesConfigBuilder()

Specifies configuration that overrides the instance template configuration for the group.

optional .google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig all_instances_config = 112596737;

Returns
TypeDescription
InstanceGroupManagerAllInstancesConfig.Builder

getAllInstancesConfigOrBuilder()

public InstanceGroupManagerAllInstancesConfigOrBuilder getAllInstancesConfigOrBuilder()

Specifies configuration that overrides the instance template configuration for the group.

optional .google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig all_instances_config = 112596737;

Returns
TypeDescription
InstanceGroupManagerAllInstancesConfigOrBuilder

getAutoHealingPolicies(int index)

public InstanceGroupManagerAutoHealingPolicy getAutoHealingPolicies(int index)

The autohealing policy for this managed instance group. You can specify only one value.

repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;

Parameter
NameDescription
indexint
Returns
TypeDescription
InstanceGroupManagerAutoHealingPolicy

getAutoHealingPoliciesBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
InstanceGroupManagerAutoHealingPolicy.Builder

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;

Returns
TypeDescription
List<Builder>

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;

Returns
TypeDescription
int

getAutoHealingPoliciesList()

public List<InstanceGroupManagerAutoHealingPolicy> getAutoHealingPoliciesList()

The autohealing policy for this managed instance group. You can specify only one value.

repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;

Returns
TypeDescription
List<InstanceGroupManagerAutoHealingPolicy>

getAutoHealingPoliciesOrBuilder(int index)

public InstanceGroupManagerAutoHealingPolicyOrBuilder getAutoHealingPoliciesOrBuilder(int index)

The autohealing policy for this managed instance group. You can specify only one value.

repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;

Parameter
NameDescription
indexint
Returns
TypeDescription
InstanceGroupManagerAutoHealingPolicyOrBuilder

getAutoHealingPoliciesOrBuilderList()

public List<? extends InstanceGroupManagerAutoHealingPolicyOrBuilder> getAutoHealingPoliciesOrBuilderList()

The autohealing policy for this managed instance group. You can specify only one value.

repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicyOrBuilder>

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;

Returns
TypeDescription
String

The baseInstanceName.

getBaseInstanceNameBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for baseInstanceName.

getCreationTimestamp()

public String getCreationTimestamp()

[Output Only] The creation timestamp for this managed instance group in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
String

The creationTimestamp.

getCreationTimestampBytes()

public ByteString getCreationTimestampBytes()

[Output Only] The creation timestamp for this managed instance group in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
ByteString

The bytes for creationTimestamp.

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;

Returns
TypeDescription
InstanceGroupManagerActionsSummary

The currentActions.

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;

Returns
TypeDescription
InstanceGroupManagerActionsSummary.Builder

getCurrentActionsOrBuilder()

public InstanceGroupManagerActionsSummaryOrBuilder getCurrentActionsOrBuilder()

[Output Only] The list of instance actions and the number of instances in this managed instance group that are scheduled for each of those actions.

optional .google.cloud.compute.v1.InstanceGroupManagerActionsSummary current_actions = 164045879;

Returns
TypeDescription
InstanceGroupManagerActionsSummaryOrBuilder

getDefaultInstanceForType()

public InstanceGroupManager getDefaultInstanceForType()
Returns
TypeDescription
InstanceGroupManager

getDescription()

public String getDescription()

An optional description of this resource.

optional string description = 422937596;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

An optional description of this resource.

optional string description = 422937596;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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;

Returns
TypeDescription
DistributionPolicy

The distributionPolicy.

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;

Returns
TypeDescription
DistributionPolicy.Builder

getDistributionPolicyOrBuilder()

public DistributionPolicyOrBuilder getDistributionPolicyOrBuilder()

Policy specifying the intended distribution of managed instances across zones in a regional managed instance group.

optional .google.cloud.compute.v1.DistributionPolicy distribution_policy = 534558541;

Returns
TypeDescription
DistributionPolicyOrBuilder

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;

Returns
TypeDescription
String

The fingerprint.

getFingerprintBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for fingerprint.

getId()

public long getId()

[Output Only] A unique identifier for this resource type. The server generates this identifier.

optional uint64 id = 3355;

Returns
TypeDescription
long

The id.

getInstanceGroup()

public String getInstanceGroup()

[Output Only] The URL of the Instance Group resource.

optional string instance_group = 81095253;

Returns
TypeDescription
String

The instanceGroup.

getInstanceGroupBytes()

public ByteString getInstanceGroupBytes()

[Output Only] The URL of the Instance Group resource.

optional string instance_group = 81095253;

Returns
TypeDescription
ByteString

The bytes for instanceGroup.

getInstanceLifecyclePolicy()

public InstanceGroupManagerInstanceLifecyclePolicy getInstanceLifecyclePolicy()

The repair policy for this managed instance group.

optional .google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy instance_lifecycle_policy = 447961617;

Returns
TypeDescription
InstanceGroupManagerInstanceLifecyclePolicy

The instanceLifecyclePolicy.

getInstanceLifecyclePolicyBuilder()

public InstanceGroupManagerInstanceLifecyclePolicy.Builder getInstanceLifecyclePolicyBuilder()

The repair policy for this managed instance group.

optional .google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy instance_lifecycle_policy = 447961617;

Returns
TypeDescription
InstanceGroupManagerInstanceLifecyclePolicy.Builder

getInstanceLifecyclePolicyOrBuilder()

public InstanceGroupManagerInstanceLifecyclePolicyOrBuilder getInstanceLifecyclePolicyOrBuilder()

The repair policy for this managed instance group.

optional .google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy instance_lifecycle_policy = 447961617;

Returns
TypeDescription
InstanceGroupManagerInstanceLifecyclePolicyOrBuilder

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;

Returns
TypeDescription
String

The instanceTemplate.

getInstanceTemplateBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for instanceTemplate.

getKind()

public String getKind()

[Output Only] The resource type, which is always compute#instanceGroupManager for managed instance groups.

optional string kind = 3292052;

Returns
TypeDescription
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] The resource type, which is always compute#instanceGroupManager for managed instance groups.

optional string kind = 3292052;

Returns
TypeDescription
ByteString

The bytes for kind.

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;

Returns
TypeDescription
String

The listManagedInstancesResults.

getListManagedInstancesResultsBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for listManagedInstancesResults.

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;

Returns
TypeDescription
String

The name.

getNameBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for name.

getNamedPorts(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
NamedPort

getNamedPortsBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
NamedPort.Builder

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;

Returns
TypeDescription
List<Builder>

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;

Returns
TypeDescription
int

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;

Returns
TypeDescription
List<NamedPort>

getNamedPortsOrBuilder(int index)

public NamedPortOrBuilder getNamedPortsOrBuilder(int index)

Named ports configured for the Instance Groups complementary to this Instance Group Manager.

repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;

Parameter
NameDescription
indexint
Returns
TypeDescription
NamedPortOrBuilder

getNamedPortsOrBuilderList()

public List<? extends NamedPortOrBuilder> getNamedPortsOrBuilderList()

Named ports configured for the Instance Groups complementary to this Instance Group Manager.

repeated .google.cloud.compute.v1.NamedPort named_ports = 427598732;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.NamedPortOrBuilder>

getRegion()

public String getRegion()

[Output Only] The URL of the region where the managed instance group resides (for regional resources).

optional string region = 138946292;

Returns
TypeDescription
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

[Output Only] The URL of the region where the managed instance group resides (for regional resources).

optional string region = 138946292;

Returns
TypeDescription
ByteString

The bytes for region.

public String getSelfLink()

[Output Only] The URL for this managed instance group. The server defines this URL.

optional string self_link = 456214797;

Returns
TypeDescription
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

[Output Only] The URL for this managed instance group. The server defines this URL.

optional string self_link = 456214797;

Returns
TypeDescription
ByteString

The bytes for selfLink.

getStatefulPolicy()

public StatefulPolicy getStatefulPolicy()

Stateful configuration for this Instanced Group Manager

optional .google.cloud.compute.v1.StatefulPolicy stateful_policy = 47538565;

Returns
TypeDescription
StatefulPolicy

The statefulPolicy.

getStatefulPolicyBuilder()

public StatefulPolicy.Builder getStatefulPolicyBuilder()

Stateful configuration for this Instanced Group Manager

optional .google.cloud.compute.v1.StatefulPolicy stateful_policy = 47538565;

Returns
TypeDescription
StatefulPolicy.Builder

getStatefulPolicyOrBuilder()

public StatefulPolicyOrBuilder getStatefulPolicyOrBuilder()

Stateful configuration for this Instanced Group Manager

optional .google.cloud.compute.v1.StatefulPolicy stateful_policy = 47538565;

Returns
TypeDescription
StatefulPolicyOrBuilder

getStatus()

public InstanceGroupManagerStatus getStatus()

[Output Only] The status of this managed instance group.

optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274;

Returns
TypeDescription
InstanceGroupManagerStatus

The status.

getStatusBuilder()

public InstanceGroupManagerStatus.Builder getStatusBuilder()

[Output Only] The status of this managed instance group.

optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274;

Returns
TypeDescription
InstanceGroupManagerStatus.Builder

getStatusOrBuilder()

public InstanceGroupManagerStatusOrBuilder getStatusOrBuilder()

[Output Only] The status of this managed instance group.

optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274;

Returns
TypeDescription
InstanceGroupManagerStatusOrBuilder

getTargetPools(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The targetPools at the given index.

getTargetPoolsBytes(int index)

public 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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the targetPools at the given index.

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;

Returns
TypeDescription
int

The count of targetPools.

getTargetPoolsList()

public 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;

Returns
TypeDescription
ProtocolStringList

A list containing the targetPools.

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;

Returns
TypeDescription
int

The targetSize.

getUpdatePolicy()

public InstanceGroupManagerUpdatePolicy getUpdatePolicy()

The update policy for this managed instance group.

optional .google.cloud.compute.v1.InstanceGroupManagerUpdatePolicy update_policy = 175809896;

Returns
TypeDescription
InstanceGroupManagerUpdatePolicy

The updatePolicy.

getUpdatePolicyBuilder()

public InstanceGroupManagerUpdatePolicy.Builder getUpdatePolicyBuilder()

The update policy for this managed instance group.

optional .google.cloud.compute.v1.InstanceGroupManagerUpdatePolicy update_policy = 175809896;

Returns
TypeDescription
InstanceGroupManagerUpdatePolicy.Builder

getUpdatePolicyOrBuilder()

public InstanceGroupManagerUpdatePolicyOrBuilder getUpdatePolicyOrBuilder()

The update policy for this managed instance group.

optional .google.cloud.compute.v1.InstanceGroupManagerUpdatePolicy update_policy = 175809896;

Returns
TypeDescription
InstanceGroupManagerUpdatePolicyOrBuilder

getVersions(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
InstanceGroupManagerVersion

getVersionsBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
InstanceGroupManagerVersion.Builder

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;

Returns
TypeDescription
List<Builder>

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;

Returns
TypeDescription
int

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;

Returns
TypeDescription
List<InstanceGroupManagerVersion>

getVersionsOrBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
InstanceGroupManagerVersionOrBuilder

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;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.InstanceGroupManagerVersionOrBuilder>

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;

Returns
TypeDescription
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

[Output Only] The URL of a zone where the managed instance group is located (for zonal resources).

optional string zone = 3744684;

Returns
TypeDescription
ByteString

The bytes for zone.

hasAllInstancesConfig()

public boolean hasAllInstancesConfig()

Specifies configuration that overrides the instance template configuration for the group.

optional .google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig all_instances_config = 112596737;

Returns
TypeDescription
boolean

Whether the allInstancesConfig field is set.

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;

Returns
TypeDescription
boolean

Whether the baseInstanceName field is set.

hasCreationTimestamp()

public boolean hasCreationTimestamp()

[Output Only] The creation timestamp for this managed instance group in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
boolean

Whether the creationTimestamp field is set.

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;

Returns
TypeDescription
boolean

Whether the currentActions field is set.

hasDescription()

public boolean hasDescription()

An optional description of this resource.

optional string description = 422937596;

Returns
TypeDescription
boolean

Whether the description field is set.

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;

Returns
TypeDescription
boolean

Whether the distributionPolicy field is set.

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;

Returns
TypeDescription
boolean

Whether the fingerprint field is set.

hasId()

public boolean hasId()

[Output Only] A unique identifier for this resource type. The server generates this identifier.

optional uint64 id = 3355;

Returns
TypeDescription
boolean

Whether the id field is set.

hasInstanceGroup()

public boolean hasInstanceGroup()

[Output Only] The URL of the Instance Group resource.

optional string instance_group = 81095253;

Returns
TypeDescription
boolean

Whether the instanceGroup field is set.

hasInstanceLifecyclePolicy()

public boolean hasInstanceLifecyclePolicy()

The repair policy for this managed instance group.

optional .google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy instance_lifecycle_policy = 447961617;

Returns
TypeDescription
boolean

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;

Returns
TypeDescription
boolean

Whether the instanceTemplate field is set.

hasKind()

public boolean hasKind()

[Output Only] The resource type, which is always compute#instanceGroupManager for managed instance groups.

optional string kind = 3292052;

Returns
TypeDescription
boolean

Whether the kind field is set.

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;

Returns
TypeDescription
boolean

Whether the listManagedInstancesResults field is set.

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;

Returns
TypeDescription
boolean

Whether the name field is set.

hasRegion()

public boolean hasRegion()

[Output Only] The URL of the region where the managed instance group resides (for regional resources).

optional string region = 138946292;

Returns
TypeDescription
boolean

Whether the region field is set.

public boolean hasSelfLink()

[Output Only] The URL for this managed instance group. The server defines this URL.

optional string self_link = 456214797;

Returns
TypeDescription
boolean

Whether the selfLink field is set.

hasStatefulPolicy()

public boolean hasStatefulPolicy()

Stateful configuration for this Instanced Group Manager

optional .google.cloud.compute.v1.StatefulPolicy stateful_policy = 47538565;

Returns
TypeDescription
boolean

Whether the statefulPolicy field is set.

hasStatus()

public boolean hasStatus()

[Output Only] The status of this managed instance group.

optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274;

Returns
TypeDescription
boolean

Whether the status field is set.

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;

Returns
TypeDescription
boolean

Whether the targetSize field is set.

hasUpdatePolicy()

public boolean hasUpdatePolicy()

The update policy for this managed instance group.

optional .google.cloud.compute.v1.InstanceGroupManagerUpdatePolicy update_policy = 175809896;

Returns
TypeDescription
boolean

Whether the updatePolicy field is set.

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;

Returns
TypeDescription
boolean

Whether the zone field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAllInstancesConfig(InstanceGroupManagerAllInstancesConfig value)

public InstanceGroupManager.Builder mergeAllInstancesConfig(InstanceGroupManagerAllInstancesConfig value)

Specifies configuration that overrides the instance template configuration for the group.

optional .google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig all_instances_config = 112596737;

Parameter
NameDescription
valueInstanceGroupManagerAllInstancesConfig
Returns
TypeDescription
InstanceGroupManager.Builder

mergeCurrentActions(InstanceGroupManagerActionsSummary value)

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;

Parameter
NameDescription
valueInstanceGroupManagerActionsSummary
Returns
TypeDescription
InstanceGroupManager.Builder

mergeDistributionPolicy(DistributionPolicy value)

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;

Parameter
NameDescription
valueDistributionPolicy
Returns
TypeDescription
InstanceGroupManager.Builder

mergeFrom(InstanceGroupManager other)

public InstanceGroupManager.Builder mergeFrom(InstanceGroupManager other)
Parameter
NameDescription
otherInstanceGroupManager
Returns
TypeDescription
InstanceGroupManager.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InstanceGroupManager.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InstanceGroupManager.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public InstanceGroupManager.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
InstanceGroupManager.Builder
Overrides

mergeInstanceLifecyclePolicy(InstanceGroupManagerInstanceLifecyclePolicy value)

public InstanceGroupManager.Builder mergeInstanceLifecyclePolicy(InstanceGroupManagerInstanceLifecyclePolicy value)

The repair policy for this managed instance group.

optional .google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy instance_lifecycle_policy = 447961617;

Parameter
NameDescription
valueInstanceGroupManagerInstanceLifecyclePolicy
Returns
TypeDescription
InstanceGroupManager.Builder

mergeStatefulPolicy(StatefulPolicy value)

public InstanceGroupManager.Builder mergeStatefulPolicy(StatefulPolicy value)

Stateful configuration for this Instanced Group Manager

optional .google.cloud.compute.v1.StatefulPolicy stateful_policy = 47538565;

Parameter
NameDescription
valueStatefulPolicy
Returns
TypeDescription
InstanceGroupManager.Builder

mergeStatus(InstanceGroupManagerStatus value)

public InstanceGroupManager.Builder mergeStatus(InstanceGroupManagerStatus value)

[Output Only] The status of this managed instance group.

optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274;

Parameter
NameDescription
valueInstanceGroupManagerStatus
Returns
TypeDescription
InstanceGroupManager.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InstanceGroupManager.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InstanceGroupManager.Builder
Overrides

mergeUpdatePolicy(InstanceGroupManagerUpdatePolicy value)

public InstanceGroupManager.Builder mergeUpdatePolicy(InstanceGroupManagerUpdatePolicy value)

The update policy for this managed instance group.

optional .google.cloud.compute.v1.InstanceGroupManagerUpdatePolicy update_policy = 175809896;

Parameter
NameDescription
valueInstanceGroupManagerUpdatePolicy
Returns
TypeDescription
InstanceGroupManager.Builder

removeAutoHealingPolicies(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
InstanceGroupManager.Builder

removeNamedPorts(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
InstanceGroupManager.Builder

removeVersions(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
InstanceGroupManager.Builder

setAllInstancesConfig(InstanceGroupManagerAllInstancesConfig value)

public InstanceGroupManager.Builder setAllInstancesConfig(InstanceGroupManagerAllInstancesConfig value)

Specifies configuration that overrides the instance template configuration for the group.

optional .google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig all_instances_config = 112596737;

Parameter
NameDescription
valueInstanceGroupManagerAllInstancesConfig
Returns
TypeDescription
InstanceGroupManager.Builder

setAllInstancesConfig(InstanceGroupManagerAllInstancesConfig.Builder builderForValue)

public InstanceGroupManager.Builder setAllInstancesConfig(InstanceGroupManagerAllInstancesConfig.Builder builderForValue)

Specifies configuration that overrides the instance template configuration for the group.

optional .google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig all_instances_config = 112596737;

Parameter
NameDescription
builderForValueInstanceGroupManagerAllInstancesConfig.Builder
Returns
TypeDescription
InstanceGroupManager.Builder

setAutoHealingPolicies(int index, InstanceGroupManagerAutoHealingPolicy value)

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;

Parameters
NameDescription
indexint
valueInstanceGroupManagerAutoHealingPolicy
Returns
TypeDescription
InstanceGroupManager.Builder

setAutoHealingPolicies(int index, InstanceGroupManagerAutoHealingPolicy.Builder builderForValue)

public InstanceGroupManager.Builder setAutoHealingPolicies(int index, InstanceGroupManagerAutoHealingPolicy.Builder builderForValue)

The autohealing policy for this managed instance group. You can specify only one value.

repeated .google.cloud.compute.v1.InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109;

Parameters
NameDescription
indexint
builderForValueInstanceGroupManagerAutoHealingPolicy.Builder
Returns
TypeDescription
InstanceGroupManager.Builder

setBaseInstanceName(String value)

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;

Parameter
NameDescription
valueString

The baseInstanceName to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setBaseInstanceNameBytes(ByteString value)

public InstanceGroupManager.Builder setBaseInstanceNameBytes(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;

Parameter
NameDescription
valueByteString

The bytes for baseInstanceName to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setCreationTimestamp(String value)

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;

Parameter
NameDescription
valueString

The creationTimestamp to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setCreationTimestampBytes(ByteString value)

public InstanceGroupManager.Builder setCreationTimestampBytes(ByteString value)

[Output Only] The creation timestamp for this managed instance group in RFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
NameDescription
valueByteString

The bytes for creationTimestamp to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setCurrentActions(InstanceGroupManagerActionsSummary value)

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;

Parameter
NameDescription
valueInstanceGroupManagerActionsSummary
Returns
TypeDescription
InstanceGroupManager.Builder

setCurrentActions(InstanceGroupManagerActionsSummary.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueInstanceGroupManagerActionsSummary.Builder
Returns
TypeDescription
InstanceGroupManager.Builder

setDescription(String value)

public InstanceGroupManager.Builder setDescription(String value)

An optional description of this resource.

optional string description = 422937596;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public InstanceGroupManager.Builder setDescriptionBytes(ByteString value)

An optional description of this resource.

optional string description = 422937596;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setDistributionPolicy(DistributionPolicy value)

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;

Parameter
NameDescription
valueDistributionPolicy
Returns
TypeDescription
InstanceGroupManager.Builder

setDistributionPolicy(DistributionPolicy.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueDistributionPolicy.Builder
Returns
TypeDescription
InstanceGroupManager.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public InstanceGroupManager.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InstanceGroupManager.Builder
Overrides

setFingerprint(String value)

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;

Parameter
NameDescription
valueString

The fingerprint to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setFingerprintBytes(ByteString value)

public InstanceGroupManager.Builder setFingerprintBytes(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;

Parameter
NameDescription
valueByteString

The bytes for fingerprint to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setId(long value)

public InstanceGroupManager.Builder setId(long value)

[Output Only] A unique identifier for this resource type. The server generates this identifier.

optional uint64 id = 3355;

Parameter
NameDescription
valuelong

The id to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setInstanceGroup(String value)

public InstanceGroupManager.Builder setInstanceGroup(String value)

[Output Only] The URL of the Instance Group resource.

optional string instance_group = 81095253;

Parameter
NameDescription
valueString

The instanceGroup to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setInstanceGroupBytes(ByteString value)

public InstanceGroupManager.Builder setInstanceGroupBytes(ByteString value)

[Output Only] The URL of the Instance Group resource.

optional string instance_group = 81095253;

Parameter
NameDescription
valueByteString

The bytes for instanceGroup to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setInstanceLifecyclePolicy(InstanceGroupManagerInstanceLifecyclePolicy value)

public InstanceGroupManager.Builder setInstanceLifecyclePolicy(InstanceGroupManagerInstanceLifecyclePolicy value)

The repair policy for this managed instance group.

optional .google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy instance_lifecycle_policy = 447961617;

Parameter
NameDescription
valueInstanceGroupManagerInstanceLifecyclePolicy
Returns
TypeDescription
InstanceGroupManager.Builder

setInstanceLifecyclePolicy(InstanceGroupManagerInstanceLifecyclePolicy.Builder builderForValue)

public InstanceGroupManager.Builder setInstanceLifecyclePolicy(InstanceGroupManagerInstanceLifecyclePolicy.Builder builderForValue)

The repair policy for this managed instance group.

optional .google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy instance_lifecycle_policy = 447961617;

Parameter
NameDescription
builderForValueInstanceGroupManagerInstanceLifecyclePolicy.Builder
Returns
TypeDescription
InstanceGroupManager.Builder

setInstanceTemplate(String value)

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;

Parameter
NameDescription
valueString

The instanceTemplate to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setInstanceTemplateBytes(ByteString value)

public InstanceGroupManager.Builder setInstanceTemplateBytes(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;

Parameter
NameDescription
valueByteString

The bytes for instanceTemplate to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setKind(String value)

public InstanceGroupManager.Builder setKind(String value)

[Output Only] The resource type, which is always compute#instanceGroupManager for managed instance groups.

optional string kind = 3292052;

Parameter
NameDescription
valueString

The kind to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setKindBytes(ByteString value)

public InstanceGroupManager.Builder setKindBytes(ByteString value)

[Output Only] The resource type, which is always compute#instanceGroupManager for managed instance groups.

optional string kind = 3292052;

Parameter
NameDescription
valueByteString

The bytes for kind to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setListManagedInstancesResults(String value)

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;

Parameter
NameDescription
valueString

The listManagedInstancesResults to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setListManagedInstancesResultsBytes(ByteString value)

public InstanceGroupManager.Builder setListManagedInstancesResultsBytes(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;

Parameter
NameDescription
valueByteString

The bytes for listManagedInstancesResults to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setName(String value)

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;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setNameBytes(ByteString value)

public InstanceGroupManager.Builder setNameBytes(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;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setNamedPorts(int index, NamedPort value)

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;

Parameters
NameDescription
indexint
valueNamedPort
Returns
TypeDescription
InstanceGroupManager.Builder

setNamedPorts(int index, NamedPort.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueNamedPort.Builder
Returns
TypeDescription
InstanceGroupManager.Builder

setRegion(String value)

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;

Parameter
NameDescription
valueString

The region to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public InstanceGroupManager.Builder setRegionBytes(ByteString value)

[Output Only] The URL of the region where the managed instance group resides (for regional resources).

optional string region = 138946292;

Parameter
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public InstanceGroupManager.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
InstanceGroupManager.Builder
Overrides
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;

Parameter
NameDescription
valueString

The selfLink to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setSelfLinkBytes(ByteString value)

public InstanceGroupManager.Builder setSelfLinkBytes(ByteString value)

[Output Only] The URL for this managed instance group. The server defines this URL.

optional string self_link = 456214797;

Parameter
NameDescription
valueByteString

The bytes for selfLink to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setStatefulPolicy(StatefulPolicy value)

public InstanceGroupManager.Builder setStatefulPolicy(StatefulPolicy value)

Stateful configuration for this Instanced Group Manager

optional .google.cloud.compute.v1.StatefulPolicy stateful_policy = 47538565;

Parameter
NameDescription
valueStatefulPolicy
Returns
TypeDescription
InstanceGroupManager.Builder

setStatefulPolicy(StatefulPolicy.Builder builderForValue)

public InstanceGroupManager.Builder setStatefulPolicy(StatefulPolicy.Builder builderForValue)

Stateful configuration for this Instanced Group Manager

optional .google.cloud.compute.v1.StatefulPolicy stateful_policy = 47538565;

Parameter
NameDescription
builderForValueStatefulPolicy.Builder
Returns
TypeDescription
InstanceGroupManager.Builder

setStatus(InstanceGroupManagerStatus value)

public InstanceGroupManager.Builder setStatus(InstanceGroupManagerStatus value)

[Output Only] The status of this managed instance group.

optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274;

Parameter
NameDescription
valueInstanceGroupManagerStatus
Returns
TypeDescription
InstanceGroupManager.Builder

setStatus(InstanceGroupManagerStatus.Builder builderForValue)

public InstanceGroupManager.Builder setStatus(InstanceGroupManagerStatus.Builder builderForValue)

[Output Only] The status of this managed instance group.

optional .google.cloud.compute.v1.InstanceGroupManagerStatus status = 181260274;

Parameter
NameDescription
builderForValueInstanceGroupManagerStatus.Builder
Returns
TypeDescription
InstanceGroupManager.Builder

setTargetPools(int index, String value)

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
NameDescription
indexint

The index to set the value at.

valueString

The targetPools to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setTargetSize(int value)

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;

Parameter
NameDescription
valueint

The targetSize to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final InstanceGroupManager.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InstanceGroupManager.Builder
Overrides

setUpdatePolicy(InstanceGroupManagerUpdatePolicy value)

public InstanceGroupManager.Builder setUpdatePolicy(InstanceGroupManagerUpdatePolicy value)

The update policy for this managed instance group.

optional .google.cloud.compute.v1.InstanceGroupManagerUpdatePolicy update_policy = 175809896;

Parameter
NameDescription
valueInstanceGroupManagerUpdatePolicy
Returns
TypeDescription
InstanceGroupManager.Builder

setUpdatePolicy(InstanceGroupManagerUpdatePolicy.Builder builderForValue)

public InstanceGroupManager.Builder setUpdatePolicy(InstanceGroupManagerUpdatePolicy.Builder builderForValue)

The update policy for this managed instance group.

optional .google.cloud.compute.v1.InstanceGroupManagerUpdatePolicy update_policy = 175809896;

Parameter
NameDescription
builderForValueInstanceGroupManagerUpdatePolicy.Builder
Returns
TypeDescription
InstanceGroupManager.Builder

setVersions(int index, InstanceGroupManagerVersion value)

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;

Parameters
NameDescription
indexint
valueInstanceGroupManagerVersion
Returns
TypeDescription
InstanceGroupManager.Builder

setVersions(int index, InstanceGroupManagerVersion.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueInstanceGroupManagerVersion.Builder
Returns
TypeDescription
InstanceGroupManager.Builder

setZone(String value)

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;

Parameter
NameDescription
valueString

The zone to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public InstanceGroupManager.Builder setZoneBytes(ByteString value)

[Output Only] The URL of a zone where the managed instance group is located (for zonal resources).

optional string zone = 3744684;

Parameter
NameDescription
valueByteString

The bytes for zone to set.

Returns
TypeDescription
InstanceGroupManager.Builder

This builder for chaining.