Class ManagedInstance.Builder (1.63.0)

public static final class ManagedInstance.Builder extends GeneratedMessageV3.Builder<ManagedInstance.Builder> implements ManagedInstanceOrBuilder

A Managed Instance resource.

Protobuf type google.cloud.compute.v1.ManagedInstance

Static Methods

getDescriptor()

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

Methods

addAllInstanceHealth(Iterable<? extends ManagedInstanceInstanceHealth> values)

public ManagedInstance.Builder addAllInstanceHealth(Iterable<? extends ManagedInstanceInstanceHealth> values)

[Output Only] Health state of the instance per health-check.

repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;

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

addInstanceHealth(ManagedInstanceInstanceHealth value)

public ManagedInstance.Builder addInstanceHealth(ManagedInstanceInstanceHealth value)

[Output Only] Health state of the instance per health-check.

repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;

Parameter
Name Description
value ManagedInstanceInstanceHealth
Returns
Type Description
ManagedInstance.Builder

addInstanceHealth(ManagedInstanceInstanceHealth.Builder builderForValue)

public ManagedInstance.Builder addInstanceHealth(ManagedInstanceInstanceHealth.Builder builderForValue)

[Output Only] Health state of the instance per health-check.

repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;

Parameter
Name Description
builderForValue ManagedInstanceInstanceHealth.Builder
Returns
Type Description
ManagedInstance.Builder

addInstanceHealth(int index, ManagedInstanceInstanceHealth value)

public ManagedInstance.Builder addInstanceHealth(int index, ManagedInstanceInstanceHealth value)

[Output Only] Health state of the instance per health-check.

repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;

Parameters
Name Description
index int
value ManagedInstanceInstanceHealth
Returns
Type Description
ManagedInstance.Builder

addInstanceHealth(int index, ManagedInstanceInstanceHealth.Builder builderForValue)

public ManagedInstance.Builder addInstanceHealth(int index, ManagedInstanceInstanceHealth.Builder builderForValue)

[Output Only] Health state of the instance per health-check.

repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;

Parameters
Name Description
index int
builderForValue ManagedInstanceInstanceHealth.Builder
Returns
Type Description
ManagedInstance.Builder

addInstanceHealthBuilder()

public ManagedInstanceInstanceHealth.Builder addInstanceHealthBuilder()

[Output Only] Health state of the instance per health-check.

repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;

Returns
Type Description
ManagedInstanceInstanceHealth.Builder

addInstanceHealthBuilder(int index)

public ManagedInstanceInstanceHealth.Builder addInstanceHealthBuilder(int index)

[Output Only] Health state of the instance per health-check.

repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;

Parameter
Name Description
index int
Returns
Type Description
ManagedInstanceInstanceHealth.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ManagedInstance.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ManagedInstance.Builder
Overrides

build()

public ManagedInstance build()
Returns
Type Description
ManagedInstance

buildPartial()

public ManagedInstance buildPartial()
Returns
Type Description
ManagedInstance

clear()

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

clearCurrentAction()

public ManagedInstance.Builder clearCurrentAction()

[Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified. Check the CurrentAction enum for the list of possible values.

optional string current_action = 178475964;

Returns
Type Description
ManagedInstance.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ManagedInstance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ManagedInstance.Builder
Overrides

clearId()

public ManagedInstance.Builder clearId()

[Output only] The unique identifier for this resource. This field is empty when instance does not exist.

optional uint64 id = 3355;

Returns
Type Description
ManagedInstance.Builder

This builder for chaining.

clearInstance()

public ManagedInstance.Builder clearInstance()

[Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created.

optional string instance = 18257045;

Returns
Type Description
ManagedInstance.Builder

This builder for chaining.

clearInstanceHealth()

public ManagedInstance.Builder clearInstanceHealth()

[Output Only] Health state of the instance per health-check.

repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;

Returns
Type Description
ManagedInstance.Builder

clearInstanceStatus()

public ManagedInstance.Builder clearInstanceStatus()

[Output Only] The status of the instance. This field is empty when the instance does not exist. Check the InstanceStatus enum for the list of possible values.

optional string instance_status = 174577372;

Returns
Type Description
ManagedInstance.Builder

This builder for chaining.

clearLastAttempt()

public ManagedInstance.Builder clearLastAttempt()

[Output Only] Information about the last attempt to create or delete the instance.

optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;

Returns
Type Description
ManagedInstance.Builder

clearName()

public ManagedInstance.Builder clearName()

[Output Only] The name of the instance. The name always exists even if the instance has not yet been created.

optional string name = 3373707;

Returns
Type Description
ManagedInstance.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ManagedInstance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ManagedInstance.Builder
Overrides

clearPreservedStateFromConfig()

public ManagedInstance.Builder clearPreservedStateFromConfig()

[Output Only] Preserved state applied from per-instance config for this instance.

optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;

Returns
Type Description
ManagedInstance.Builder

clearPreservedStateFromPolicy()

public ManagedInstance.Builder clearPreservedStateFromPolicy()

[Output Only] Preserved state generated based on stateful policy for this instance.

optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;

Returns
Type Description
ManagedInstance.Builder

clearVersion()

public ManagedInstance.Builder clearVersion()

[Output Only] Intended version of this instance.

optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;

Returns
Type Description
ManagedInstance.Builder

clone()

public ManagedInstance.Builder clone()
Returns
Type Description
ManagedInstance.Builder
Overrides

getCurrentAction()

public String getCurrentAction()

[Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified. Check the CurrentAction enum for the list of possible values.

optional string current_action = 178475964;

Returns
Type Description
String

The currentAction.

getCurrentActionBytes()

public ByteString getCurrentActionBytes()

[Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified. Check the CurrentAction enum for the list of possible values.

optional string current_action = 178475964;

Returns
Type Description
ByteString

The bytes for currentAction.

getDefaultInstanceForType()

public ManagedInstance getDefaultInstanceForType()
Returns
Type Description
ManagedInstance

getDescriptorForType()

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

getId()

public long getId()

[Output only] The unique identifier for this resource. This field is empty when instance does not exist.

optional uint64 id = 3355;

Returns
Type Description
long

The id.

getInstance()

public String getInstance()

[Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created.

optional string instance = 18257045;

Returns
Type Description
String

The instance.

getInstanceBytes()

public ByteString getInstanceBytes()

[Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created.

optional string instance = 18257045;

Returns
Type Description
ByteString

The bytes for instance.

getInstanceHealth(int index)

public ManagedInstanceInstanceHealth getInstanceHealth(int index)

[Output Only] Health state of the instance per health-check.

repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;

Parameter
Name Description
index int
Returns
Type Description
ManagedInstanceInstanceHealth

getInstanceHealthBuilder(int index)

public ManagedInstanceInstanceHealth.Builder getInstanceHealthBuilder(int index)

[Output Only] Health state of the instance per health-check.

repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;

Parameter
Name Description
index int
Returns
Type Description
ManagedInstanceInstanceHealth.Builder

getInstanceHealthBuilderList()

public List<ManagedInstanceInstanceHealth.Builder> getInstanceHealthBuilderList()

[Output Only] Health state of the instance per health-check.

repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;

Returns
Type Description
List<Builder>

getInstanceHealthCount()

public int getInstanceHealthCount()

[Output Only] Health state of the instance per health-check.

repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;

Returns
Type Description
int

getInstanceHealthList()

public List<ManagedInstanceInstanceHealth> getInstanceHealthList()

[Output Only] Health state of the instance per health-check.

repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;

Returns
Type Description
List<ManagedInstanceInstanceHealth>

getInstanceHealthOrBuilder(int index)

public ManagedInstanceInstanceHealthOrBuilder getInstanceHealthOrBuilder(int index)

[Output Only] Health state of the instance per health-check.

repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;

Parameter
Name Description
index int
Returns
Type Description
ManagedInstanceInstanceHealthOrBuilder

getInstanceHealthOrBuilderList()

public List<? extends ManagedInstanceInstanceHealthOrBuilder> getInstanceHealthOrBuilderList()

[Output Only] Health state of the instance per health-check.

repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;

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

getInstanceStatus()

public String getInstanceStatus()

[Output Only] The status of the instance. This field is empty when the instance does not exist. Check the InstanceStatus enum for the list of possible values.

optional string instance_status = 174577372;

Returns
Type Description
String

The instanceStatus.

getInstanceStatusBytes()

public ByteString getInstanceStatusBytes()

[Output Only] The status of the instance. This field is empty when the instance does not exist. Check the InstanceStatus enum for the list of possible values.

optional string instance_status = 174577372;

Returns
Type Description
ByteString

The bytes for instanceStatus.

getLastAttempt()

public ManagedInstanceLastAttempt getLastAttempt()

[Output Only] Information about the last attempt to create or delete the instance.

optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;

Returns
Type Description
ManagedInstanceLastAttempt

The lastAttempt.

getLastAttemptBuilder()

public ManagedInstanceLastAttempt.Builder getLastAttemptBuilder()

[Output Only] Information about the last attempt to create or delete the instance.

optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;

Returns
Type Description
ManagedInstanceLastAttempt.Builder

getLastAttemptOrBuilder()

public ManagedInstanceLastAttemptOrBuilder getLastAttemptOrBuilder()

[Output Only] Information about the last attempt to create or delete the instance.

optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;

Returns
Type Description
ManagedInstanceLastAttemptOrBuilder

getName()

public String getName()

[Output Only] The name of the instance. The name always exists even if the instance has not yet been created.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

[Output Only] The name of the instance. The name always exists even if the instance has not yet been created.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getPreservedStateFromConfig()

public PreservedState getPreservedStateFromConfig()

[Output Only] Preserved state applied from per-instance config for this instance.

optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;

Returns
Type Description
PreservedState

The preservedStateFromConfig.

getPreservedStateFromConfigBuilder()

public PreservedState.Builder getPreservedStateFromConfigBuilder()

[Output Only] Preserved state applied from per-instance config for this instance.

optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;

Returns
Type Description
PreservedState.Builder

getPreservedStateFromConfigOrBuilder()

public PreservedStateOrBuilder getPreservedStateFromConfigOrBuilder()

[Output Only] Preserved state applied from per-instance config for this instance.

optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;

Returns
Type Description
PreservedStateOrBuilder

getPreservedStateFromPolicy()

public PreservedState getPreservedStateFromPolicy()

[Output Only] Preserved state generated based on stateful policy for this instance.

optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;

Returns
Type Description
PreservedState

The preservedStateFromPolicy.

getPreservedStateFromPolicyBuilder()

public PreservedState.Builder getPreservedStateFromPolicyBuilder()

[Output Only] Preserved state generated based on stateful policy for this instance.

optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;

Returns
Type Description
PreservedState.Builder

getPreservedStateFromPolicyOrBuilder()

public PreservedStateOrBuilder getPreservedStateFromPolicyOrBuilder()

[Output Only] Preserved state generated based on stateful policy for this instance.

optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;

Returns
Type Description
PreservedStateOrBuilder

getVersion()

public ManagedInstanceVersion getVersion()

[Output Only] Intended version of this instance.

optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;

Returns
Type Description
ManagedInstanceVersion

The version.

getVersionBuilder()

public ManagedInstanceVersion.Builder getVersionBuilder()

[Output Only] Intended version of this instance.

optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;

Returns
Type Description
ManagedInstanceVersion.Builder

getVersionOrBuilder()

public ManagedInstanceVersionOrBuilder getVersionOrBuilder()

[Output Only] Intended version of this instance.

optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;

Returns
Type Description
ManagedInstanceVersionOrBuilder

hasCurrentAction()

public boolean hasCurrentAction()

[Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified. Check the CurrentAction enum for the list of possible values.

optional string current_action = 178475964;

Returns
Type Description
boolean

Whether the currentAction field is set.

hasId()

public boolean hasId()

[Output only] The unique identifier for this resource. This field is empty when instance does not exist.

optional uint64 id = 3355;

Returns
Type Description
boolean

Whether the id field is set.

hasInstance()

public boolean hasInstance()

[Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created.

optional string instance = 18257045;

Returns
Type Description
boolean

Whether the instance field is set.

hasInstanceStatus()

public boolean hasInstanceStatus()

[Output Only] The status of the instance. This field is empty when the instance does not exist. Check the InstanceStatus enum for the list of possible values.

optional string instance_status = 174577372;

Returns
Type Description
boolean

Whether the instanceStatus field is set.

hasLastAttempt()

public boolean hasLastAttempt()

[Output Only] Information about the last attempt to create or delete the instance.

optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;

Returns
Type Description
boolean

Whether the lastAttempt field is set.

hasName()

public boolean hasName()

[Output Only] The name of the instance. The name always exists even if the instance has not yet been created.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hasPreservedStateFromConfig()

public boolean hasPreservedStateFromConfig()

[Output Only] Preserved state applied from per-instance config for this instance.

optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;

Returns
Type Description
boolean

Whether the preservedStateFromConfig field is set.

hasPreservedStateFromPolicy()

public boolean hasPreservedStateFromPolicy()

[Output Only] Preserved state generated based on stateful policy for this instance.

optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;

Returns
Type Description
boolean

Whether the preservedStateFromPolicy field is set.

hasVersion()

public boolean hasVersion()

[Output Only] Intended version of this instance.

optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;

Returns
Type Description
boolean

Whether the version field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ManagedInstance other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLastAttempt(ManagedInstanceLastAttempt value)

public ManagedInstance.Builder mergeLastAttempt(ManagedInstanceLastAttempt value)

[Output Only] Information about the last attempt to create or delete the instance.

optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;

Parameter
Name Description
value ManagedInstanceLastAttempt
Returns
Type Description
ManagedInstance.Builder

mergePreservedStateFromConfig(PreservedState value)

public ManagedInstance.Builder mergePreservedStateFromConfig(PreservedState value)

[Output Only] Preserved state applied from per-instance config for this instance.

optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;

Parameter
Name Description
value PreservedState
Returns
Type Description
ManagedInstance.Builder

mergePreservedStateFromPolicy(PreservedState value)

public ManagedInstance.Builder mergePreservedStateFromPolicy(PreservedState value)

[Output Only] Preserved state generated based on stateful policy for this instance.

optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;

Parameter
Name Description
value PreservedState
Returns
Type Description
ManagedInstance.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ManagedInstance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ManagedInstance.Builder
Overrides

mergeVersion(ManagedInstanceVersion value)

public ManagedInstance.Builder mergeVersion(ManagedInstanceVersion value)

[Output Only] Intended version of this instance.

optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;

Parameter
Name Description
value ManagedInstanceVersion
Returns
Type Description
ManagedInstance.Builder

removeInstanceHealth(int index)

public ManagedInstance.Builder removeInstanceHealth(int index)

[Output Only] Health state of the instance per health-check.

repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;

Parameter
Name Description
index int
Returns
Type Description
ManagedInstance.Builder

setCurrentAction(String value)

public ManagedInstance.Builder setCurrentAction(String value)

[Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified. Check the CurrentAction enum for the list of possible values.

optional string current_action = 178475964;

Parameter
Name Description
value String

The currentAction to set.

Returns
Type Description
ManagedInstance.Builder

This builder for chaining.

setCurrentActionBytes(ByteString value)

public ManagedInstance.Builder setCurrentActionBytes(ByteString value)

[Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified. Check the CurrentAction enum for the list of possible values.

optional string current_action = 178475964;

Parameter
Name Description
value ByteString

The bytes for currentAction to set.

Returns
Type Description
ManagedInstance.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ManagedInstance.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ManagedInstance.Builder
Overrides

setId(long value)

public ManagedInstance.Builder setId(long value)

[Output only] The unique identifier for this resource. This field is empty when instance does not exist.

optional uint64 id = 3355;

Parameter
Name Description
value long

The id to set.

Returns
Type Description
ManagedInstance.Builder

This builder for chaining.

setInstance(String value)

public ManagedInstance.Builder setInstance(String value)

[Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created.

optional string instance = 18257045;

Parameter
Name Description
value String

The instance to set.

Returns
Type Description
ManagedInstance.Builder

This builder for chaining.

setInstanceBytes(ByteString value)

public ManagedInstance.Builder setInstanceBytes(ByteString value)

[Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created.

optional string instance = 18257045;

Parameter
Name Description
value ByteString

The bytes for instance to set.

Returns
Type Description
ManagedInstance.Builder

This builder for chaining.

setInstanceHealth(int index, ManagedInstanceInstanceHealth value)

public ManagedInstance.Builder setInstanceHealth(int index, ManagedInstanceInstanceHealth value)

[Output Only] Health state of the instance per health-check.

repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;

Parameters
Name Description
index int
value ManagedInstanceInstanceHealth
Returns
Type Description
ManagedInstance.Builder

setInstanceHealth(int index, ManagedInstanceInstanceHealth.Builder builderForValue)

public ManagedInstance.Builder setInstanceHealth(int index, ManagedInstanceInstanceHealth.Builder builderForValue)

[Output Only] Health state of the instance per health-check.

repeated .google.cloud.compute.v1.ManagedInstanceInstanceHealth instance_health = 382667078;

Parameters
Name Description
index int
builderForValue ManagedInstanceInstanceHealth.Builder
Returns
Type Description
ManagedInstance.Builder

setInstanceStatus(String value)

public ManagedInstance.Builder setInstanceStatus(String value)

[Output Only] The status of the instance. This field is empty when the instance does not exist. Check the InstanceStatus enum for the list of possible values.

optional string instance_status = 174577372;

Parameter
Name Description
value String

The instanceStatus to set.

Returns
Type Description
ManagedInstance.Builder

This builder for chaining.

setInstanceStatusBytes(ByteString value)

public ManagedInstance.Builder setInstanceStatusBytes(ByteString value)

[Output Only] The status of the instance. This field is empty when the instance does not exist. Check the InstanceStatus enum for the list of possible values.

optional string instance_status = 174577372;

Parameter
Name Description
value ByteString

The bytes for instanceStatus to set.

Returns
Type Description
ManagedInstance.Builder

This builder for chaining.

setLastAttempt(ManagedInstanceLastAttempt value)

public ManagedInstance.Builder setLastAttempt(ManagedInstanceLastAttempt value)

[Output Only] Information about the last attempt to create or delete the instance.

optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;

Parameter
Name Description
value ManagedInstanceLastAttempt
Returns
Type Description
ManagedInstance.Builder

setLastAttempt(ManagedInstanceLastAttempt.Builder builderForValue)

public ManagedInstance.Builder setLastAttempt(ManagedInstanceLastAttempt.Builder builderForValue)

[Output Only] Information about the last attempt to create or delete the instance.

optional .google.cloud.compute.v1.ManagedInstanceLastAttempt last_attempt = 434771492;

Parameter
Name Description
builderForValue ManagedInstanceLastAttempt.Builder
Returns
Type Description
ManagedInstance.Builder

setName(String value)

public ManagedInstance.Builder setName(String value)

[Output Only] The name of the instance. The name always exists even if the instance has not yet been created.

optional string name = 3373707;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ManagedInstance.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ManagedInstance.Builder setNameBytes(ByteString value)

[Output Only] The name of the instance. The name always exists even if the instance has not yet been created.

optional string name = 3373707;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ManagedInstance.Builder

This builder for chaining.

setPreservedStateFromConfig(PreservedState value)

public ManagedInstance.Builder setPreservedStateFromConfig(PreservedState value)

[Output Only] Preserved state applied from per-instance config for this instance.

optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;

Parameter
Name Description
value PreservedState
Returns
Type Description
ManagedInstance.Builder

setPreservedStateFromConfig(PreservedState.Builder builderForValue)

public ManagedInstance.Builder setPreservedStateFromConfig(PreservedState.Builder builderForValue)

[Output Only] Preserved state applied from per-instance config for this instance.

optional .google.cloud.compute.v1.PreservedState preserved_state_from_config = 98661858;

Parameter
Name Description
builderForValue PreservedState.Builder
Returns
Type Description
ManagedInstance.Builder

setPreservedStateFromPolicy(PreservedState value)

public ManagedInstance.Builder setPreservedStateFromPolicy(PreservedState value)

[Output Only] Preserved state generated based on stateful policy for this instance.

optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;

Parameter
Name Description
value PreservedState
Returns
Type Description
ManagedInstance.Builder

setPreservedStateFromPolicy(PreservedState.Builder builderForValue)

public ManagedInstance.Builder setPreservedStateFromPolicy(PreservedState.Builder builderForValue)

[Output Only] Preserved state generated based on stateful policy for this instance.

optional .google.cloud.compute.v1.PreservedState preserved_state_from_policy = 470783954;

Parameter
Name Description
builderForValue PreservedState.Builder
Returns
Type Description
ManagedInstance.Builder

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

public ManagedInstance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ManagedInstance.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ManagedInstance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ManagedInstance.Builder
Overrides

setVersion(ManagedInstanceVersion value)

public ManagedInstance.Builder setVersion(ManagedInstanceVersion value)

[Output Only] Intended version of this instance.

optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;

Parameter
Name Description
value ManagedInstanceVersion
Returns
Type Description
ManagedInstance.Builder

setVersion(ManagedInstanceVersion.Builder builderForValue)

public ManagedInstance.Builder setVersion(ManagedInstanceVersion.Builder builderForValue)

[Output Only] Intended version of this instance.

optional .google.cloud.compute.v1.ManagedInstanceVersion version = 351608024;

Parameter
Name Description
builderForValue ManagedInstanceVersion.Builder
Returns
Type Description
ManagedInstance.Builder