Class InstanceGroupManagerResizeRequest.Builder (1.105.0)

public static final class InstanceGroupManagerResizeRequest.Builder extends GeneratedMessage.Builder<InstanceGroupManagerResizeRequest.Builder> implements InstanceGroupManagerResizeRequestOrBuilder

InstanceGroupManagerResizeRequest represents a request to create a number of VMs: either immediately or by queuing the request for the specified time. This resize request is nested under InstanceGroupManager and the VMs created by this request are added to the owning InstanceGroupManager.

Protobuf type google.cloud.compute.v1.InstanceGroupManagerResizeRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllInstances(Iterable<? extends PerInstanceConfig> values)

public InstanceGroupManagerResizeRequest.Builder addAllInstances(Iterable<? extends PerInstanceConfig> values)

The names of instances to be created by this resize request. The number of names specified determines the number of instances to create. The group's target size will be increased by this number. This field cannot be used together with 'resize_by'.

repeated .google.cloud.compute.v1.PerInstanceConfig instances = 29097598;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.PerInstanceConfig>
Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

addInstances(PerInstanceConfig value)

public InstanceGroupManagerResizeRequest.Builder addInstances(PerInstanceConfig value)

The names of instances to be created by this resize request. The number of names specified determines the number of instances to create. The group's target size will be increased by this number. This field cannot be used together with 'resize_by'.

repeated .google.cloud.compute.v1.PerInstanceConfig instances = 29097598;

Parameter
Name Description
value PerInstanceConfig
Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

addInstances(PerInstanceConfig.Builder builderForValue)

public InstanceGroupManagerResizeRequest.Builder addInstances(PerInstanceConfig.Builder builderForValue)

The names of instances to be created by this resize request. The number of names specified determines the number of instances to create. The group's target size will be increased by this number. This field cannot be used together with 'resize_by'.

repeated .google.cloud.compute.v1.PerInstanceConfig instances = 29097598;

Parameter
Name Description
builderForValue PerInstanceConfig.Builder
Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

addInstances(int index, PerInstanceConfig value)

public InstanceGroupManagerResizeRequest.Builder addInstances(int index, PerInstanceConfig value)

The names of instances to be created by this resize request. The number of names specified determines the number of instances to create. The group's target size will be increased by this number. This field cannot be used together with 'resize_by'.

repeated .google.cloud.compute.v1.PerInstanceConfig instances = 29097598;

Parameters
Name Description
index int
value PerInstanceConfig
Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

addInstances(int index, PerInstanceConfig.Builder builderForValue)

public InstanceGroupManagerResizeRequest.Builder addInstances(int index, PerInstanceConfig.Builder builderForValue)

The names of instances to be created by this resize request. The number of names specified determines the number of instances to create. The group's target size will be increased by this number. This field cannot be used together with 'resize_by'.

repeated .google.cloud.compute.v1.PerInstanceConfig instances = 29097598;

Parameters
Name Description
index int
builderForValue PerInstanceConfig.Builder
Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

addInstancesBuilder()

public PerInstanceConfig.Builder addInstancesBuilder()

The names of instances to be created by this resize request. The number of names specified determines the number of instances to create. The group's target size will be increased by this number. This field cannot be used together with 'resize_by'.

repeated .google.cloud.compute.v1.PerInstanceConfig instances = 29097598;

Returns
Type Description
PerInstanceConfig.Builder

addInstancesBuilder(int index)

public PerInstanceConfig.Builder addInstancesBuilder(int index)

The names of instances to be created by this resize request. The number of names specified determines the number of instances to create. The group's target size will be increased by this number. This field cannot be used together with 'resize_by'.

repeated .google.cloud.compute.v1.PerInstanceConfig instances = 29097598;

Parameter
Name Description
index int
Returns
Type Description
PerInstanceConfig.Builder

build()

public InstanceGroupManagerResizeRequest build()
Returns
Type Description
InstanceGroupManagerResizeRequest

buildPartial()

public InstanceGroupManagerResizeRequest buildPartial()
Returns
Type Description
InstanceGroupManagerResizeRequest

clear()

public InstanceGroupManagerResizeRequest.Builder clear()
Returns
Type Description
InstanceGroupManagerResizeRequest.Builder
Overrides

clearCreationTimestamp()

public InstanceGroupManagerResizeRequest.Builder clearCreationTimestamp()

Output only. The creation timestamp for this resize request inRFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

clearDescription()

public InstanceGroupManagerResizeRequest.Builder clearDescription()

An optional description of this resource.

optional string description = 422937596;

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

clearId()

public InstanceGroupManagerResizeRequest.Builder clearId()

Output only. A unique identifier for this resource type. The server generates this identifier.

optional uint64 id = 3355;

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

clearInstances()

public InstanceGroupManagerResizeRequest.Builder clearInstances()

The names of instances to be created by this resize request. The number of names specified determines the number of instances to create. The group's target size will be increased by this number. This field cannot be used together with 'resize_by'.

repeated .google.cloud.compute.v1.PerInstanceConfig instances = 29097598;

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

clearKind()

public InstanceGroupManagerResizeRequest.Builder clearKind()

Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for resize requests.

optional string kind = 3292052;

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

clearName()

public InstanceGroupManagerResizeRequest.Builder clearName()

The name of this resize request. The name must be 1-63 characters long, and comply withRFC1035.

optional string name = 3373707;

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

clearRegion()

public InstanceGroupManagerResizeRequest.Builder clearRegion()

Output only. The URL of a region where the resize request is located. Populated only for regional resize requests.

optional string region = 138946292;

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

clearRequestedRunDuration()

public InstanceGroupManagerResizeRequest.Builder clearRequestedRunDuration()

Requested run duration for instances that will be created by this request. At the end of the run duration instance will be deleted.

optional .google.cloud.compute.v1.Duration requested_run_duration = 232146425;

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

clearResizeBy()

public InstanceGroupManagerResizeRequest.Builder clearResizeBy()

The number of instances to be created by this resize request. The group's target size will be increased by this number. This field cannot be used together with 'instances'.

optional int32 resize_by = 533735362;

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

public InstanceGroupManagerResizeRequest.Builder clearSelfLink()

Output only. The URL for this resize request. The server defines this URL.

optional string self_link = 456214797;

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

clearSelfLinkWithId()

public InstanceGroupManagerResizeRequest.Builder clearSelfLinkWithId()

Output only. Server-defined URL for this resource with the resource id.

optional string self_link_with_id = 44520962;

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

clearState()

public InstanceGroupManagerResizeRequest.Builder clearState()

Output only. Current state of the request. Check the State enum for the list of possible values.

optional string state = 109757585;

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

clearStatus()

public InstanceGroupManagerResizeRequest.Builder clearStatus()

Output only. Status of the request.

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

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

clearZone()

public InstanceGroupManagerResizeRequest.Builder clearZone()

Output only. The URL of a zone where the resize request is located. Populated only for zonal resize requests.

optional string zone = 3744684;

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

getCreationTimestamp()

public String getCreationTimestamp()

Output only. The creation timestamp for this resize request inRFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
String

The creationTimestamp.

getCreationTimestampBytes()

public ByteString getCreationTimestampBytes()

Output only. The creation timestamp for this resize request inRFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
ByteString

The bytes for creationTimestamp.

getDefaultInstanceForType()

public InstanceGroupManagerResizeRequest getDefaultInstanceForType()
Returns
Type Description
InstanceGroupManagerResizeRequest

getDescription()

public String getDescription()

An optional description of this resource.

optional string description = 422937596;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

An optional description of this resource.

optional string description = 422937596;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getId()

public long getId()

Output only. A unique identifier for this resource type. The server generates this identifier.

optional uint64 id = 3355;

Returns
Type Description
long

The id.

getInstances(int index)

public PerInstanceConfig getInstances(int index)

The names of instances to be created by this resize request. The number of names specified determines the number of instances to create. The group's target size will be increased by this number. This field cannot be used together with 'resize_by'.

repeated .google.cloud.compute.v1.PerInstanceConfig instances = 29097598;

Parameter
Name Description
index int
Returns
Type Description
PerInstanceConfig

getInstancesBuilder(int index)

public PerInstanceConfig.Builder getInstancesBuilder(int index)

The names of instances to be created by this resize request. The number of names specified determines the number of instances to create. The group's target size will be increased by this number. This field cannot be used together with 'resize_by'.

repeated .google.cloud.compute.v1.PerInstanceConfig instances = 29097598;

Parameter
Name Description
index int
Returns
Type Description
PerInstanceConfig.Builder

getInstancesBuilderList()

public List<PerInstanceConfig.Builder> getInstancesBuilderList()

The names of instances to be created by this resize request. The number of names specified determines the number of instances to create. The group's target size will be increased by this number. This field cannot be used together with 'resize_by'.

repeated .google.cloud.compute.v1.PerInstanceConfig instances = 29097598;

Returns
Type Description
List<Builder>

getInstancesCount()

public int getInstancesCount()

The names of instances to be created by this resize request. The number of names specified determines the number of instances to create. The group's target size will be increased by this number. This field cannot be used together with 'resize_by'.

repeated .google.cloud.compute.v1.PerInstanceConfig instances = 29097598;

Returns
Type Description
int

getInstancesList()

public List<PerInstanceConfig> getInstancesList()

The names of instances to be created by this resize request. The number of names specified determines the number of instances to create. The group's target size will be increased by this number. This field cannot be used together with 'resize_by'.

repeated .google.cloud.compute.v1.PerInstanceConfig instances = 29097598;

Returns
Type Description
List<PerInstanceConfig>

getInstancesOrBuilder(int index)

public PerInstanceConfigOrBuilder getInstancesOrBuilder(int index)

The names of instances to be created by this resize request. The number of names specified determines the number of instances to create. The group's target size will be increased by this number. This field cannot be used together with 'resize_by'.

repeated .google.cloud.compute.v1.PerInstanceConfig instances = 29097598;

Parameter
Name Description
index int
Returns
Type Description
PerInstanceConfigOrBuilder

getInstancesOrBuilderList()

public List<? extends PerInstanceConfigOrBuilder> getInstancesOrBuilderList()

The names of instances to be created by this resize request. The number of names specified determines the number of instances to create. The group's target size will be increased by this number. This field cannot be used together with 'resize_by'.

repeated .google.cloud.compute.v1.PerInstanceConfig instances = 29097598;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.PerInstanceConfigOrBuilder>

getKind()

public String getKind()

Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for resize requests.

optional string kind = 3292052;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for resize requests.

optional string kind = 3292052;

Returns
Type Description
ByteString

The bytes for kind.

getName()

public String getName()

The name of this resize request. The name must be 1-63 characters long, and comply withRFC1035.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of this resize request. The name must be 1-63 characters long, and comply withRFC1035.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getRegion()

public String getRegion()

Output only. The URL of a region where the resize request is located. Populated only for regional resize requests.

optional string region = 138946292;

Returns
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Output only. The URL of a region where the resize request is located. Populated only for regional resize requests.

optional string region = 138946292;

Returns
Type Description
ByteString

The bytes for region.

getRequestedRunDuration()

public Duration getRequestedRunDuration()

Requested run duration for instances that will be created by this request. At the end of the run duration instance will be deleted.

optional .google.cloud.compute.v1.Duration requested_run_duration = 232146425;

Returns
Type Description
Duration

The requestedRunDuration.

getRequestedRunDurationBuilder()

public Duration.Builder getRequestedRunDurationBuilder()

Requested run duration for instances that will be created by this request. At the end of the run duration instance will be deleted.

optional .google.cloud.compute.v1.Duration requested_run_duration = 232146425;

Returns
Type Description
Duration.Builder

getRequestedRunDurationOrBuilder()

public DurationOrBuilder getRequestedRunDurationOrBuilder()

Requested run duration for instances that will be created by this request. At the end of the run duration instance will be deleted.

optional .google.cloud.compute.v1.Duration requested_run_duration = 232146425;

Returns
Type Description
DurationOrBuilder

getResizeBy()

public int getResizeBy()

The number of instances to be created by this resize request. The group's target size will be increased by this number. This field cannot be used together with 'instances'.

optional int32 resize_by = 533735362;

Returns
Type Description
int

The resizeBy.

public String getSelfLink()

Output only. The URL for this resize request. The server defines this URL.

optional string self_link = 456214797;

Returns
Type Description
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

Output only. The URL for this resize request. The server defines this URL.

optional string self_link = 456214797;

Returns
Type Description
ByteString

The bytes for selfLink.

getSelfLinkWithId()

public String getSelfLinkWithId()

Output only. Server-defined URL for this resource with the resource id.

optional string self_link_with_id = 44520962;

Returns
Type Description
String

The selfLinkWithId.

getSelfLinkWithIdBytes()

public ByteString getSelfLinkWithIdBytes()

Output only. Server-defined URL for this resource with the resource id.

optional string self_link_with_id = 44520962;

Returns
Type Description
ByteString

The bytes for selfLinkWithId.

getState()

public String getState()

Output only. Current state of the request. Check the State enum for the list of possible values.

optional string state = 109757585;

Returns
Type Description
String

The state.

getStateBytes()

public ByteString getStateBytes()

Output only. Current state of the request. Check the State enum for the list of possible values.

optional string state = 109757585;

Returns
Type Description
ByteString

The bytes for state.

getStatus()

public InstanceGroupManagerResizeRequestStatus getStatus()

Output only. Status of the request.

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

Returns
Type Description
InstanceGroupManagerResizeRequestStatus

The status.

getStatusBuilder()

public InstanceGroupManagerResizeRequestStatus.Builder getStatusBuilder()

Output only. Status of the request.

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

Returns
Type Description
InstanceGroupManagerResizeRequestStatus.Builder

getStatusOrBuilder()

public InstanceGroupManagerResizeRequestStatusOrBuilder getStatusOrBuilder()

Output only. Status of the request.

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

Returns
Type Description
InstanceGroupManagerResizeRequestStatusOrBuilder

getZone()

public String getZone()

Output only. The URL of a zone where the resize request is located. Populated only for zonal resize requests.

optional string zone = 3744684;

Returns
Type Description
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

Output only. The URL of a zone where the resize request is located. Populated only for zonal resize requests.

optional string zone = 3744684;

Returns
Type Description
ByteString

The bytes for zone.

hasCreationTimestamp()

public boolean hasCreationTimestamp()

Output only. The creation timestamp for this resize request inRFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
boolean

Whether the creationTimestamp field is set.

hasDescription()

public boolean hasDescription()

An optional description of this resource.

optional string description = 422937596;

Returns
Type Description
boolean

Whether the description 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
Type Description
boolean

Whether the id field is set.

hasKind()

public boolean hasKind()

Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for resize requests.

optional string kind = 3292052;

Returns
Type Description
boolean

Whether the kind field is set.

hasName()

public boolean hasName()

The name of this resize request. The name must be 1-63 characters long, and comply withRFC1035.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hasRegion()

public boolean hasRegion()

Output only. The URL of a region where the resize request is located. Populated only for regional resize requests.

optional string region = 138946292;

Returns
Type Description
boolean

Whether the region field is set.

hasRequestedRunDuration()

public boolean hasRequestedRunDuration()

Requested run duration for instances that will be created by this request. At the end of the run duration instance will be deleted.

optional .google.cloud.compute.v1.Duration requested_run_duration = 232146425;

Returns
Type Description
boolean

Whether the requestedRunDuration field is set.

hasResizeBy()

public boolean hasResizeBy()

The number of instances to be created by this resize request. The group's target size will be increased by this number. This field cannot be used together with 'instances'.

optional int32 resize_by = 533735362;

Returns
Type Description
boolean

Whether the resizeBy field is set.

public boolean hasSelfLink()

Output only. The URL for this resize request. The server defines this URL.

optional string self_link = 456214797;

Returns
Type Description
boolean

Whether the selfLink field is set.

hasSelfLinkWithId()

public boolean hasSelfLinkWithId()

Output only. Server-defined URL for this resource with the resource id.

optional string self_link_with_id = 44520962;

Returns
Type Description
boolean

Whether the selfLinkWithId field is set.

hasState()

public boolean hasState()

Output only. Current state of the request. Check the State enum for the list of possible values.

optional string state = 109757585;

Returns
Type Description
boolean

Whether the state field is set.

hasStatus()

public boolean hasStatus()

Output only. Status of the request.

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

Returns
Type Description
boolean

Whether the status field is set.

hasZone()

public boolean hasZone()

Output only. The URL of a zone where the resize request is located. Populated only for zonal resize requests.

optional string zone = 3744684;

Returns
Type Description
boolean

Whether the zone field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InstanceGroupManagerResizeRequest other)

public InstanceGroupManagerResizeRequest.Builder mergeFrom(InstanceGroupManagerResizeRequest other)
Parameter
Name Description
other InstanceGroupManagerResizeRequest
Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InstanceGroupManagerResizeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InstanceGroupManagerResizeRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InstanceGroupManagerResizeRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InstanceGroupManagerResizeRequest.Builder
Overrides

mergeRequestedRunDuration(Duration value)

public InstanceGroupManagerResizeRequest.Builder mergeRequestedRunDuration(Duration value)

Requested run duration for instances that will be created by this request. At the end of the run duration instance will be deleted.

optional .google.cloud.compute.v1.Duration requested_run_duration = 232146425;

Parameter
Name Description
value Duration
Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

mergeStatus(InstanceGroupManagerResizeRequestStatus value)

public InstanceGroupManagerResizeRequest.Builder mergeStatus(InstanceGroupManagerResizeRequestStatus value)

Output only. Status of the request.

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

Parameter
Name Description
value InstanceGroupManagerResizeRequestStatus
Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

removeInstances(int index)

public InstanceGroupManagerResizeRequest.Builder removeInstances(int index)

The names of instances to be created by this resize request. The number of names specified determines the number of instances to create. The group's target size will be increased by this number. This field cannot be used together with 'resize_by'.

repeated .google.cloud.compute.v1.PerInstanceConfig instances = 29097598;

Parameter
Name Description
index int
Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

setCreationTimestamp(String value)

public InstanceGroupManagerResizeRequest.Builder setCreationTimestamp(String value)

Output only. The creation timestamp for this resize request inRFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
Name Description
value String

The creationTimestamp to set.

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

setCreationTimestampBytes(ByteString value)

public InstanceGroupManagerResizeRequest.Builder setCreationTimestampBytes(ByteString value)

Output only. The creation timestamp for this resize request inRFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
Name Description
value ByteString

The bytes for creationTimestamp to set.

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

setDescription(String value)

public InstanceGroupManagerResizeRequest.Builder setDescription(String value)

An optional description of this resource.

optional string description = 422937596;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public InstanceGroupManagerResizeRequest.Builder setDescriptionBytes(ByteString value)

An optional description of this resource.

optional string description = 422937596;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

setId(long value)

public InstanceGroupManagerResizeRequest.Builder setId(long value)

Output only. A unique identifier for this resource type. The server generates this identifier.

optional uint64 id = 3355;

Parameter
Name Description
value long

The id to set.

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

setInstances(int index, PerInstanceConfig value)

public InstanceGroupManagerResizeRequest.Builder setInstances(int index, PerInstanceConfig value)

The names of instances to be created by this resize request. The number of names specified determines the number of instances to create. The group's target size will be increased by this number. This field cannot be used together with 'resize_by'.

repeated .google.cloud.compute.v1.PerInstanceConfig instances = 29097598;

Parameters
Name Description
index int
value PerInstanceConfig
Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

setInstances(int index, PerInstanceConfig.Builder builderForValue)

public InstanceGroupManagerResizeRequest.Builder setInstances(int index, PerInstanceConfig.Builder builderForValue)

The names of instances to be created by this resize request. The number of names specified determines the number of instances to create. The group's target size will be increased by this number. This field cannot be used together with 'resize_by'.

repeated .google.cloud.compute.v1.PerInstanceConfig instances = 29097598;

Parameters
Name Description
index int
builderForValue PerInstanceConfig.Builder
Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

setKind(String value)

public InstanceGroupManagerResizeRequest.Builder setKind(String value)

Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for resize requests.

optional string kind = 3292052;

Parameter
Name Description
value String

The kind to set.

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

setKindBytes(ByteString value)

public InstanceGroupManagerResizeRequest.Builder setKindBytes(ByteString value)

Output only. The resource type, which is alwayscompute#instanceGroupManagerResizeRequest for resize requests.

optional string kind = 3292052;

Parameter
Name Description
value ByteString

The bytes for kind to set.

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

setName(String value)

public InstanceGroupManagerResizeRequest.Builder setName(String value)

The name of this resize request. The name must be 1-63 characters long, and comply withRFC1035.

optional string name = 3373707;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public InstanceGroupManagerResizeRequest.Builder setNameBytes(ByteString value)

The name of this resize request. The name must be 1-63 characters long, and comply withRFC1035.

optional string name = 3373707;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

setRegion(String value)

public InstanceGroupManagerResizeRequest.Builder setRegion(String value)

Output only. The URL of a region where the resize request is located. Populated only for regional resize requests.

optional string region = 138946292;

Parameter
Name Description
value String

The region to set.

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public InstanceGroupManagerResizeRequest.Builder setRegionBytes(ByteString value)

Output only. The URL of a region where the resize request is located. Populated only for regional resize requests.

optional string region = 138946292;

Parameter
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

setRequestedRunDuration(Duration value)

public InstanceGroupManagerResizeRequest.Builder setRequestedRunDuration(Duration value)

Requested run duration for instances that will be created by this request. At the end of the run duration instance will be deleted.

optional .google.cloud.compute.v1.Duration requested_run_duration = 232146425;

Parameter
Name Description
value Duration
Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

setRequestedRunDuration(Duration.Builder builderForValue)

public InstanceGroupManagerResizeRequest.Builder setRequestedRunDuration(Duration.Builder builderForValue)

Requested run duration for instances that will be created by this request. At the end of the run duration instance will be deleted.

optional .google.cloud.compute.v1.Duration requested_run_duration = 232146425;

Parameter
Name Description
builderForValue Duration.Builder
Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

setResizeBy(int value)

public InstanceGroupManagerResizeRequest.Builder setResizeBy(int value)

The number of instances to be created by this resize request. The group's target size will be increased by this number. This field cannot be used together with 'instances'.

optional int32 resize_by = 533735362;

Parameter
Name Description
value int

The resizeBy to set.

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

public InstanceGroupManagerResizeRequest.Builder setSelfLink(String value)

Output only. The URL for this resize request. The server defines this URL.

optional string self_link = 456214797;

Parameter
Name Description
value String

The selfLink to set.

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

setSelfLinkBytes(ByteString value)

public InstanceGroupManagerResizeRequest.Builder setSelfLinkBytes(ByteString value)

Output only. The URL for this resize request. The server defines this URL.

optional string self_link = 456214797;

Parameter
Name Description
value ByteString

The bytes for selfLink to set.

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

setSelfLinkWithId(String value)

public InstanceGroupManagerResizeRequest.Builder setSelfLinkWithId(String value)

Output only. Server-defined URL for this resource with the resource id.

optional string self_link_with_id = 44520962;

Parameter
Name Description
value String

The selfLinkWithId to set.

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

setSelfLinkWithIdBytes(ByteString value)

public InstanceGroupManagerResizeRequest.Builder setSelfLinkWithIdBytes(ByteString value)

Output only. Server-defined URL for this resource with the resource id.

optional string self_link_with_id = 44520962;

Parameter
Name Description
value ByteString

The bytes for selfLinkWithId to set.

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

setState(String value)

public InstanceGroupManagerResizeRequest.Builder setState(String value)

Output only. Current state of the request. Check the State enum for the list of possible values.

optional string state = 109757585;

Parameter
Name Description
value String

The state to set.

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

setStateBytes(ByteString value)

public InstanceGroupManagerResizeRequest.Builder setStateBytes(ByteString value)

Output only. Current state of the request. Check the State enum for the list of possible values.

optional string state = 109757585;

Parameter
Name Description
value ByteString

The bytes for state to set.

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

setStatus(InstanceGroupManagerResizeRequestStatus value)

public InstanceGroupManagerResizeRequest.Builder setStatus(InstanceGroupManagerResizeRequestStatus value)

Output only. Status of the request.

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

Parameter
Name Description
value InstanceGroupManagerResizeRequestStatus
Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

setStatus(InstanceGroupManagerResizeRequestStatus.Builder builderForValue)

public InstanceGroupManagerResizeRequest.Builder setStatus(InstanceGroupManagerResizeRequestStatus.Builder builderForValue)

Output only. Status of the request.

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

Parameter
Name Description
builderForValue InstanceGroupManagerResizeRequestStatus.Builder
Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

setZone(String value)

public InstanceGroupManagerResizeRequest.Builder setZone(String value)

Output only. The URL of a zone where the resize request is located. Populated only for zonal resize requests.

optional string zone = 3744684;

Parameter
Name Description
value String

The zone to set.

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public InstanceGroupManagerResizeRequest.Builder setZoneBytes(ByteString value)

Output only. The URL of a zone where the resize request is located. Populated only for zonal resize requests.

optional string zone = 3744684;

Parameter
Name Description
value ByteString

The bytes for zone to set.

Returns
Type Description
InstanceGroupManagerResizeRequest.Builder

This builder for chaining.