Class ManagedInstance.Builder (1.37.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.ManagedInstanceInstanceHealth>
Returns
TypeDescription
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
NameDescription
valueManagedInstanceInstanceHealth
Returns
TypeDescription
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
NameDescription
builderForValueManagedInstanceInstanceHealth.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueManagedInstanceInstanceHealth
Returns
TypeDescription
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
NameDescription
indexint
builderForValueManagedInstanceInstanceHealth.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ManagedInstanceInstanceHealth.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ManagedInstance build()
Returns
TypeDescription
ManagedInstance

buildPartial()

public ManagedInstance buildPartial()
Returns
TypeDescription
ManagedInstance

clear()

public ManagedInstance.Builder clear()
Returns
TypeDescription
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
TypeDescription
ManagedInstance.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ManagedInstance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ManagedInstance.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ManagedInstance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ManagedInstance.Builder

clearVersion()

public ManagedInstance.Builder clearVersion()

[Output Only] Intended version of this instance.

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

Returns
TypeDescription
ManagedInstance.Builder

clone()

public ManagedInstance.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for currentAction.

getDefaultInstanceForType()

public ManagedInstance getDefaultInstanceForType()
Returns
TypeDescription
ManagedInstance

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ManagedInstanceLastAttemptOrBuilder

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
PreservedStateOrBuilder

getVersion()

public ManagedInstanceVersion getVersion()

[Output Only] Intended version of this instance.

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

Returns
TypeDescription
ManagedInstanceVersion

The version.

getVersionBuilder()

public ManagedInstanceVersion.Builder getVersionBuilder()

[Output Only] Intended version of this instance.

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

Returns
TypeDescription
ManagedInstanceVersion.Builder

getVersionOrBuilder()

public ManagedInstanceVersionOrBuilder getVersionOrBuilder()

[Output Only] Intended version of this instance.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the lastAttempt 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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the version field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ManagedInstance other)

public ManagedInstance.Builder mergeFrom(ManagedInstance other)
Parameter
NameDescription
otherManagedInstance
Returns
TypeDescription
ManagedInstance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ManagedInstance.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueManagedInstanceLastAttempt
Returns
TypeDescription
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
NameDescription
valuePreservedState
Returns
TypeDescription
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
NameDescription
valuePreservedState
Returns
TypeDescription
ManagedInstance.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ManagedInstance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueManagedInstanceVersion
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueString

The currentAction to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for currentAction to set.

Returns
TypeDescription
ManagedInstance.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ManagedInstance.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuelong

The id to set.

Returns
TypeDescription
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
NameDescription
valueString

The instance to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for instance to set.

Returns
TypeDescription
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
NameDescription
indexint
valueManagedInstanceInstanceHealth
Returns
TypeDescription
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
NameDescription
indexint
builderForValueManagedInstanceInstanceHealth.Builder
Returns
TypeDescription
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
NameDescription
valueString

The instanceStatus to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for instanceStatus to set.

Returns
TypeDescription
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
NameDescription
valueManagedInstanceLastAttempt
Returns
TypeDescription
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
NameDescription
builderForValueManagedInstanceLastAttempt.Builder
Returns
TypeDescription
ManagedInstance.Builder

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
NameDescription
valuePreservedState
Returns
TypeDescription
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
NameDescription
builderForValuePreservedState.Builder
Returns
TypeDescription
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
NameDescription
valuePreservedState
Returns
TypeDescription
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
NameDescription
builderForValuePreservedState.Builder
Returns
TypeDescription
ManagedInstance.Builder

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

public ManagedInstance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ManagedInstance.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ManagedInstance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueManagedInstanceVersion
Returns
TypeDescription
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
NameDescription
builderForValueManagedInstanceVersion.Builder
Returns
TypeDescription
ManagedInstance.Builder