Enum LC

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<LC>

    public enum LC
    extends java.lang.Enum<LC>
    LC, Language-Code - Documentation.

    This provides an enumerated type for all of the various language-codes that will be accepted by the Google Cloud Services - Translation API.



    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      AF
      Language: Afrikaans
      AR
      Language: Arabic
      AZ
      Language: Azerbaijani
      BE
      Language: Belarusian
      BG
      Language: Bulgarian
      BN
      Language: Bengali
      CA
      Language: Catalan
      CS
      Language: Czech
      CY
      Language: Welsh
      DA
      Language: Danish
      DE
      Language: German
      EL
      Language: Greek
      EN
      Language: English
      EO
      Language: Esperanto
      ES
      Language: Spanish
      ET
      Language: Estonian
      EU
      Language: Basque
      FA
      Language: Persian
      FI
      Language: Finnish
      FR
      Language: French
      GA
      Language: Irish
      GL
      Language: Galician
      GU
      Language: Gujarati
      HI
      Language: Hindi
      HR
      Language: Croatian
      HT
      Language: Haitian Creole
      HU
      Language: Hungarian
      ID
      Language: Indonesian
      IS
      Language: Icelandic
      IT
      Language: Italian
      IW
      Language: Hebrew
      JAR
      Language: Japanese
      KA
      Language: Georgian
      KN
      Language: Kannada
      KO
      Language: Korean
      LA
      Language: Latin
      LT
      Language: Lithuanian
      LV
      Language: Latvian
      MK
      Language: Macedonian
      MS
      Language: Malay
      MT
      Language: Maltese
      NL
      Language: Dutch
      NO
      Language: Norwegian
      PL
      Language: Polish
      PT
      Language: Portuguese
      RO
      Language: Romanian
      RU
      Language: Russian
      SK
      Language: Slovak
      SL
      Language: Slovenian
      SQ
      Language: Albanian
      SR
      Language: Serbian
      SV
      Language: Swedish
      SW
      Language: Swahili
      TA
      Language: Tamil
      TE
      Language: Telugu
      TH
      Language: Thai
      TL
      Language: Filipino
      TR
      Language: Turkish
      UK
      Language: Ukrainian
      UR
      Language: Urdu
      VI
      Language: Vietnamese
      YI
      Language: Yiddish
      ZH_CN
      Language: Chinese Simplified
      ZH_TW
      Language: Chinese Traditional
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method
      static LC valueOf​(String name)
      static LC[] values()
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • languageName

        public final java.lang.String languageName
        This contains an java-string that represents the name of the language (in English - "Irish" "Chinese" "Japanese")
        Code:
        Exact Field Declaration Expression:
        1
        public final String languageName;
        
      • gcsLanguageCode

        public final java.lang.String gcsLanguageCode
        This is the two (or five) character String that communicates with GCS Translate API, identifying a language.

        COMMON CODES:

        • "zh-CN" (Mainland Chinese)
        • "zh-TW" (Traditional Chinese)
        • "es" (Spanish)
        • "fr" (French)
        • "ar" (Arabic)
        Code:
        Exact Field Declaration Expression:
        1
        public final String gcsLanguageCode;
        
    • Method Detail

      • values

        public static LC[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (LC c : LC.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static LC valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null