The ordering of the State enum is defined such that if there is a state transition
from A -> B then A.compareTo(B) < 0. N.B. The converse is not true, i.e. if
A.compareTo(B) < 0 then there is not guaranteed to be a valid state transition
A -> B.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-17 UTC."],[[["This webpage details the `ApiService.State` enum within the Google API Common library, outlining the lifecycle states a service can possess."],["The latest available version of this API is 2.46.1, while the current page's content is based on version 2.34.0, and a variety of versions are available."],["The enum includes six states: `NEW`, `STARTING`, `RUNNING`, `STOPPING`, `TERMINATED`, and `FAILED`, each representing a different phase in a service's operational status."],["The state transitions for `ApiService.State` are defined by the enum's ordering, where `A.compareTo(B) \u003c 0` implies a state transition from A to B, however the opposite is not always true."],["The `ApiService.State` class offers static fields representing the states and static methods `valueOf` and `values` for managing service states."]]],[]]