public static OperationState forNumber(int value) {
    switch (value) {
      case 0:
        return OPERATION_STATE_UNSPECIFIED;
      case 1:
        return OPERATION_STATE_RUNNING;
      case 2:
        return OPERATION_STATE_SUCCEEDED;
      case 3:
        return OPERATION_STATE_FAILED;
      case 4:
        return OPERATION_STATE_CANCELLING;
      case 5:
        return OPERATION_STATE_CANCELLED;
      default:
        return null;
    }
  }
@param value The numeric wire value of the corresponding enum entry.
@return The enum associated with the given numeric wire value.
java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/OperationState.java