Enum LC

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

    public enum LC
    extends java.lang.Enum<LC>
    Enumeration of Standard Google Language-Codes.

    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
      AF
      AR
      AZ
      BE
      BG
      BN
      CA
      CS
      CY
      DA
      DE
      EL
      EN
      EO
      ES
      ET
      EU
      FA
      FI
      FR
      GA
      GL
      GU
      HI
      HR
      HT
      HU
      ID
      IS
      IT
      IW
      JAR
      KA
      KN
      KO
      LA
      LT
      LV
      MK
      MS
      MT
      NL
      NO
      PL
      PT
      RO
      RU
      SK
      SL
      SQ
      SR
      SV
      SW
      TA
      TE
      TH
      TL
      TR
      UK
      UR
      VI
      YI
      ZH_CN
      ZH_TW
    • 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:
        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:
        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