public static Outcome forNumber(int value) {
      switch (value) {
        case 0:
          return OUTCOME_UNSPECIFIED;
        case 1:
          return OUTCOME_OK;
        case 2:
          return OUTCOME_FAILED;
        case 3:
          return OUTCOME_DEADLINE_EXCEEDED;
        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-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/CodeExecutionResult.java