Enum Instance.RestartPolicy (0.103.0)

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

ProtocolMessageEnum

Static Fields

Name Description
ALWAYS

Always restart the instance.

ALWAYS = 1;

ALWAYS_VALUE

Always restart the instance.

ALWAYS = 1;

NEVER

Never restart the instance.

NEVER = 3;

NEVER_VALUE

Never restart the instance.

NEVER = 3;

ON_FAILURE

Restart if the instance terminates with non-zero exit code.

ON_FAILURE = 2;

ON_FAILURE_VALUE

Restart if the instance terminates with non-zero exit code.

ON_FAILURE = 2;

RESTART_POLICY_UNSPECIFIED

Unspecified restart policy.

RESTART_POLICY_UNSPECIFIED = 0;

RESTART_POLICY_UNSPECIFIED_VALUE

Unspecified restart policy.

RESTART_POLICY_UNSPECIFIED = 0;

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()