public static PhoneticEncoding forNumber(int value) {
      switch (value) {
        case 0:
          return PHONETIC_ENCODING_UNSPECIFIED;
        case 1:
          return PHONETIC_ENCODING_IPA;
        case 2:
          return PHONETIC_ENCODING_X_SAMPA;
        case 3:
          return PHONETIC_ENCODING_JAPANESE_YOMIGANA;
        case 4:
          return PHONETIC_ENCODING_PINYIN;
        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-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/CustomPronunciationParams.java