- 1.65.0 (latest)
- 1.64.0
- 1.63.0
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public static final class ManagedInstance.Builder extends GeneratedMessageV3.Builder<ManagedInstance.Builder> implements ManagedInstanceOrBuilder
A Managed Instance resource.
Protobuf type google.cloud.compute.v1.ManagedInstance
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ManagedInstance.BuilderImplements
ManagedInstanceOrBuilderStatic 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 |
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 |
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 |
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 |
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 |
clearPropertiesFromFlexibilityPolicy()
public ManagedInstance.Builder clearPropertiesFromFlexibilityPolicy()
[Output Only] Instance properties selected for this instance resulting from InstanceFlexibilityPolicy.
optional .google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy properties_from_flexibility_policy = 155525825;
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 |
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 |
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 |
getPropertiesFromFlexibilityPolicy()
public ManagedInstancePropertiesFromFlexibilityPolicy getPropertiesFromFlexibilityPolicy()
[Output Only] Instance properties selected for this instance resulting from InstanceFlexibilityPolicy.
optional .google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy properties_from_flexibility_policy = 155525825;
Returns | |
---|---|
Type | Description |
ManagedInstancePropertiesFromFlexibilityPolicy |
The propertiesFromFlexibilityPolicy. |
getPropertiesFromFlexibilityPolicyBuilder()
public ManagedInstancePropertiesFromFlexibilityPolicy.Builder getPropertiesFromFlexibilityPolicyBuilder()
[Output Only] Instance properties selected for this instance resulting from InstanceFlexibilityPolicy.
optional .google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy properties_from_flexibility_policy = 155525825;
Returns | |
---|---|
Type | Description |
ManagedInstancePropertiesFromFlexibilityPolicy.Builder |
getPropertiesFromFlexibilityPolicyOrBuilder()
public ManagedInstancePropertiesFromFlexibilityPolicyOrBuilder getPropertiesFromFlexibilityPolicyOrBuilder()
[Output Only] Instance properties selected for this instance resulting from InstanceFlexibilityPolicy.
optional .google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy properties_from_flexibility_policy = 155525825;
Returns | |
---|---|
Type | Description |
ManagedInstancePropertiesFromFlexibilityPolicyOrBuilder |
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. |
hasPropertiesFromFlexibilityPolicy()
public boolean hasPropertiesFromFlexibilityPolicy()
[Output Only] Instance properties selected for this instance resulting from InstanceFlexibilityPolicy.
optional .google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy properties_from_flexibility_policy = 155525825;
Returns | |
---|---|
Type | Description |
boolean |
Whether the propertiesFromFlexibilityPolicy 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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ManagedInstance.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
ManagedInstance.Builder |
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 |
mergePropertiesFromFlexibilityPolicy(ManagedInstancePropertiesFromFlexibilityPolicy value)
public ManagedInstance.Builder mergePropertiesFromFlexibilityPolicy(ManagedInstancePropertiesFromFlexibilityPolicy value)
[Output Only] Instance properties selected for this instance resulting from InstanceFlexibilityPolicy.
optional .google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy properties_from_flexibility_policy = 155525825;
Parameter | |
---|---|
Name | Description |
value |
ManagedInstancePropertiesFromFlexibilityPolicy |
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 |
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 |
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 |
setPropertiesFromFlexibilityPolicy(ManagedInstancePropertiesFromFlexibilityPolicy value)
public ManagedInstance.Builder setPropertiesFromFlexibilityPolicy(ManagedInstancePropertiesFromFlexibilityPolicy value)
[Output Only] Instance properties selected for this instance resulting from InstanceFlexibilityPolicy.
optional .google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy properties_from_flexibility_policy = 155525825;
Parameter | |
---|---|
Name | Description |
value |
ManagedInstancePropertiesFromFlexibilityPolicy |
Returns | |
---|---|
Type | Description |
ManagedInstance.Builder |
setPropertiesFromFlexibilityPolicy(ManagedInstancePropertiesFromFlexibilityPolicy.Builder builderForValue)
public ManagedInstance.Builder setPropertiesFromFlexibilityPolicy(ManagedInstancePropertiesFromFlexibilityPolicy.Builder builderForValue)
[Output Only] Instance properties selected for this instance resulting from InstanceFlexibilityPolicy.
optional .google.cloud.compute.v1.ManagedInstancePropertiesFromFlexibilityPolicy properties_from_flexibility_policy = 155525825;
Parameter | |
---|---|
Name | Description |
builderForValue |
ManagedInstancePropertiesFromFlexibilityPolicy.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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final ManagedInstance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ManagedInstance.Builder |
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 |