public static Type forNumber(int value) {
    switch (value) {
      case 0:
        return TYPE_UNSPECIFIED;
      case 1:
        return STRING;
      case 2:
        return NUMBER;
      case 3:
        return INTEGER;
      case 4:
        return BOOLEAN;
      case 5:
        return ARRAY;
      case 6:
        return OBJECT;
      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/Type.java