Package com.google.cloud.compute.v1
Class InstanceGroupManagerInstanceLifecyclePolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InstanceGroupManagerInstanceLifecyclePolicy.Builder>
com.google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy.Builder
- All Implemented Interfaces:
InstanceGroupManagerInstanceLifecyclePolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- InstanceGroupManagerInstanceLifecyclePolicy
public static final class InstanceGroupManagerInstanceLifecyclePolicy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<InstanceGroupManagerInstanceLifecyclePolicy.Builder>
implements InstanceGroupManagerInstanceLifecyclePolicyOrBuilder
Protobuf type
google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The action that a MIG performs on a failed or an unhealthy VM.A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM.The action that a MIG performs on an unhealthy VM.The action that a MIG performs on a failed or an unhealthy VM.com.google.protobuf.ByteStringThe action that a MIG performs on a failed or an unhealthy VM.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorA bit indicating whether to forcefully apply the group's latest configuration when repairing a VM.com.google.protobuf.ByteStringA bit indicating whether to forcefully apply the group's latest configuration when repairing a VM.The action that a MIG performs on an unhealthy VM.com.google.protobuf.ByteStringThe action that a MIG performs on an unhealthy VM.booleanThe action that a MIG performs on a failed or an unhealthy VM.booleanA bit indicating whether to forcefully apply the group's latest configuration when repairing a VM.booleanThe action that a MIG performs on an unhealthy VM.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDefaultActionOnFailure(String value) The action that a MIG performs on a failed or an unhealthy VM.setDefaultActionOnFailureBytes(com.google.protobuf.ByteString value) The action that a MIG performs on a failed or an unhealthy VM.setForceUpdateOnRepair(String value) A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM.setForceUpdateOnRepairBytes(com.google.protobuf.ByteString value) A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM.setOnFailedHealthCheck(String value) The action that a MIG performs on an unhealthy VM.setOnFailedHealthCheckBytes(com.google.protobuf.ByteString value) The action that a MIG performs on an unhealthy VM.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<InstanceGroupManagerInstanceLifecyclePolicy.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<InstanceGroupManagerInstanceLifecyclePolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<InstanceGroupManagerInstanceLifecyclePolicy.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public InstanceGroupManagerInstanceLifecyclePolicy.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstanceGroupManagerInstanceLifecyclePolicy.Builder>
-
mergeFrom
public InstanceGroupManagerInstanceLifecyclePolicy.Builder mergeFrom(InstanceGroupManagerInstanceLifecyclePolicy other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<InstanceGroupManagerInstanceLifecyclePolicy.Builder>
-
mergeFrom
public InstanceGroupManagerInstanceLifecyclePolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstanceGroupManagerInstanceLifecyclePolicy.Builder>- Throws:
IOException
-
hasDefaultActionOnFailure
public boolean hasDefaultActionOnFailure()The action that a MIG performs on a failed or an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG. - DO_NOTHING: MIG does not repair a failed or an unhealthy VM. Check the DefaultActionOnFailure enum for the list of possible values.
optional string default_action_on_failure = 61383253;- Specified by:
hasDefaultActionOnFailurein interfaceInstanceGroupManagerInstanceLifecyclePolicyOrBuilder- Returns:
- Whether the defaultActionOnFailure field is set.
-
getDefaultActionOnFailure
The action that a MIG performs on a failed or an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG. - DO_NOTHING: MIG does not repair a failed or an unhealthy VM. Check the DefaultActionOnFailure enum for the list of possible values.
optional string default_action_on_failure = 61383253;- Specified by:
getDefaultActionOnFailurein interfaceInstanceGroupManagerInstanceLifecyclePolicyOrBuilder- Returns:
- The defaultActionOnFailure.
-
getDefaultActionOnFailureBytes
public com.google.protobuf.ByteString getDefaultActionOnFailureBytes()The action that a MIG performs on a failed or an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG. - DO_NOTHING: MIG does not repair a failed or an unhealthy VM. Check the DefaultActionOnFailure enum for the list of possible values.
optional string default_action_on_failure = 61383253;- Specified by:
getDefaultActionOnFailureBytesin interfaceInstanceGroupManagerInstanceLifecyclePolicyOrBuilder- Returns:
- The bytes for defaultActionOnFailure.
-
setDefaultActionOnFailure
The action that a MIG performs on a failed or an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG. - DO_NOTHING: MIG does not repair a failed or an unhealthy VM. Check the DefaultActionOnFailure enum for the list of possible values.
optional string default_action_on_failure = 61383253;- Parameters:
value- The defaultActionOnFailure to set.- Returns:
- This builder for chaining.
-
clearDefaultActionOnFailure
The action that a MIG performs on a failed or an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG. - DO_NOTHING: MIG does not repair a failed or an unhealthy VM. Check the DefaultActionOnFailure enum for the list of possible values.
optional string default_action_on_failure = 61383253;- Returns:
- This builder for chaining.
-
setDefaultActionOnFailureBytes
public InstanceGroupManagerInstanceLifecyclePolicy.Builder setDefaultActionOnFailureBytes(com.google.protobuf.ByteString value) The action that a MIG performs on a failed or an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are - REPAIR (default): MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG. - DO_NOTHING: MIG does not repair a failed or an unhealthy VM. Check the DefaultActionOnFailure enum for the list of possible values.
optional string default_action_on_failure = 61383253;- Parameters:
value- The bytes for defaultActionOnFailure to set.- Returns:
- This builder for chaining.
-
hasForceUpdateOnRepair
public boolean hasForceUpdateOnRepair()A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair. Check the ForceUpdateOnRepair enum for the list of possible values.
optional string force_update_on_repair = 356302027;- Specified by:
hasForceUpdateOnRepairin interfaceInstanceGroupManagerInstanceLifecyclePolicyOrBuilder- Returns:
- Whether the forceUpdateOnRepair field is set.
-
getForceUpdateOnRepair
A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair. Check the ForceUpdateOnRepair enum for the list of possible values.
optional string force_update_on_repair = 356302027;- Specified by:
getForceUpdateOnRepairin interfaceInstanceGroupManagerInstanceLifecyclePolicyOrBuilder- Returns:
- The forceUpdateOnRepair.
-
getForceUpdateOnRepairBytes
public com.google.protobuf.ByteString getForceUpdateOnRepairBytes()A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair. Check the ForceUpdateOnRepair enum for the list of possible values.
optional string force_update_on_repair = 356302027;- Specified by:
getForceUpdateOnRepairBytesin interfaceInstanceGroupManagerInstanceLifecyclePolicyOrBuilder- Returns:
- The bytes for forceUpdateOnRepair.
-
setForceUpdateOnRepair
A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair. Check the ForceUpdateOnRepair enum for the list of possible values.
optional string force_update_on_repair = 356302027;- Parameters:
value- The forceUpdateOnRepair to set.- Returns:
- This builder for chaining.
-
clearForceUpdateOnRepair
A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair. Check the ForceUpdateOnRepair enum for the list of possible values.
optional string force_update_on_repair = 356302027;- Returns:
- This builder for chaining.
-
setForceUpdateOnRepairBytes
public InstanceGroupManagerInstanceLifecyclePolicy.Builder setForceUpdateOnRepairBytes(com.google.protobuf.ByteString value) A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair. Check the ForceUpdateOnRepair enum for the list of possible values.
optional string force_update_on_repair = 356302027;- Parameters:
value- The bytes for forceUpdateOnRepair to set.- Returns:
- This builder for chaining.
-
hasOnFailedHealthCheck
public boolean hasOnFailedHealthCheck()The action that a MIG performs on an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are: - DEFAULT_ACTION (default): MIG uses the same action configured for instanceLifecyclePolicy.defaultActionOnFailure field. - REPAIR: MIG automatically repairs an unhealthy VM by recreating it. - DO_NOTHING: MIG doesn't repair an unhealthy VM. For more information, see About repairing VMs in a MIG. Check the OnFailedHealthCheck enum for the list of possible values.
optional string on_failed_health_check = 39807943;- Specified by:
hasOnFailedHealthCheckin interfaceInstanceGroupManagerInstanceLifecyclePolicyOrBuilder- Returns:
- Whether the onFailedHealthCheck field is set.
-
getOnFailedHealthCheck
The action that a MIG performs on an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are: - DEFAULT_ACTION (default): MIG uses the same action configured for instanceLifecyclePolicy.defaultActionOnFailure field. - REPAIR: MIG automatically repairs an unhealthy VM by recreating it. - DO_NOTHING: MIG doesn't repair an unhealthy VM. For more information, see About repairing VMs in a MIG. Check the OnFailedHealthCheck enum for the list of possible values.
optional string on_failed_health_check = 39807943;- Specified by:
getOnFailedHealthCheckin interfaceInstanceGroupManagerInstanceLifecyclePolicyOrBuilder- Returns:
- The onFailedHealthCheck.
-
getOnFailedHealthCheckBytes
public com.google.protobuf.ByteString getOnFailedHealthCheckBytes()The action that a MIG performs on an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are: - DEFAULT_ACTION (default): MIG uses the same action configured for instanceLifecyclePolicy.defaultActionOnFailure field. - REPAIR: MIG automatically repairs an unhealthy VM by recreating it. - DO_NOTHING: MIG doesn't repair an unhealthy VM. For more information, see About repairing VMs in a MIG. Check the OnFailedHealthCheck enum for the list of possible values.
optional string on_failed_health_check = 39807943;- Specified by:
getOnFailedHealthCheckBytesin interfaceInstanceGroupManagerInstanceLifecyclePolicyOrBuilder- Returns:
- The bytes for onFailedHealthCheck.
-
setOnFailedHealthCheck
The action that a MIG performs on an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are: - DEFAULT_ACTION (default): MIG uses the same action configured for instanceLifecyclePolicy.defaultActionOnFailure field. - REPAIR: MIG automatically repairs an unhealthy VM by recreating it. - DO_NOTHING: MIG doesn't repair an unhealthy VM. For more information, see About repairing VMs in a MIG. Check the OnFailedHealthCheck enum for the list of possible values.
optional string on_failed_health_check = 39807943;- Parameters:
value- The onFailedHealthCheck to set.- Returns:
- This builder for chaining.
-
clearOnFailedHealthCheck
The action that a MIG performs on an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are: - DEFAULT_ACTION (default): MIG uses the same action configured for instanceLifecyclePolicy.defaultActionOnFailure field. - REPAIR: MIG automatically repairs an unhealthy VM by recreating it. - DO_NOTHING: MIG doesn't repair an unhealthy VM. For more information, see About repairing VMs in a MIG. Check the OnFailedHealthCheck enum for the list of possible values.
optional string on_failed_health_check = 39807943;- Returns:
- This builder for chaining.
-
setOnFailedHealthCheckBytes
public InstanceGroupManagerInstanceLifecyclePolicy.Builder setOnFailedHealthCheckBytes(com.google.protobuf.ByteString value) The action that a MIG performs on an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are: - DEFAULT_ACTION (default): MIG uses the same action configured for instanceLifecyclePolicy.defaultActionOnFailure field. - REPAIR: MIG automatically repairs an unhealthy VM by recreating it. - DO_NOTHING: MIG doesn't repair an unhealthy VM. For more information, see About repairing VMs in a MIG. Check the OnFailedHealthCheck enum for the list of possible values.
optional string on_failed_health_check = 39807943;- Parameters:
value- The bytes for onFailedHealthCheck to set.- Returns:
- This builder for chaining.
-