public enum Instance.RestartPolicy extends Enum<Instance.RestartPolicy> implements ProtocolMessageEnum Restart policy options for the instance. If not provided, the default is
ON_FAILURE.
Protobuf enum google.cloud.run.v2.Instance.RestartPolicy
Implements
ProtocolMessageEnumStatic Fields |
|
|---|---|
| Name | Description |
ALWAYS |
Always restart the instance. |
ALWAYS_VALUE |
Always restart the instance. |
NEVER |
Never restart the instance. |
NEVER_VALUE |
Never restart the instance. |
ON_FAILURE |
Restart if the instance terminates with non-zero exit code. |
ON_FAILURE_VALUE |
Restart if the instance terminates with non-zero exit code. |
RESTART_POLICY_UNSPECIFIED |
Unspecified restart policy. |
RESTART_POLICY_UNSPECIFIED_VALUE |
Unspecified restart policy. |
UNRECOGNIZED |
|
Static Methods |
|
|---|---|
| Name | Description |
forNumber(int value) |
|
getDescriptor() |
|
internalGetValueMap() |
|
valueOf(Descriptors.EnumValueDescriptor desc) |
|
valueOf(int value) |
Deprecated. Use #forNumber(int) instead. |
valueOf(String name) |
|
values() |
|
Methods |
|
|---|---|
| Name | Description |
getDescriptorForType() |
|
getNumber() |
|
getValueDescriptor() |
|