All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.directory.model.UserLanguage.html Maven / Gradle / Ivy

There is a newer version: directory_v1-rev20240709-2.0.0
Show newest version






UserLanguage (Admin SDK API directory_v1-rev20220125-1.32.1)












com.google.api.services.directory.model

Class UserLanguage

    • Constructor Detail

      • UserLanguage

        public UserLanguage()
    • Method Detail

      • getCustomLanguage

        public String getCustomLanguage()
        Other language. User can provide their own language name if there is no corresponding ISO 639 language code. If this is set, `languageCode` can't be set.
        Returns:
        value or null for none
      • setCustomLanguage

        public UserLanguage setCustomLanguage(String customLanguage)
        Other language. User can provide their own language name if there is no corresponding ISO 639 language code. If this is set, `languageCode` can't be set.
        Parameters:
        customLanguage - customLanguage or null for none
      • getLanguageCode

        public String getLanguageCode()
        ISO 639 string representation of a language. See [Language Codes](/admin- sdk/directory/v1/languages) for the list of supported codes. Valid language codes outside the supported set will be accepted by the API but may lead to unexpected behavior. Illegal values cause `SchemaException`. If this is set, `customLanguage` can't be set.
        Returns:
        value or null for none
      • setLanguageCode

        public UserLanguage setLanguageCode(String languageCode)
        ISO 639 string representation of a language. See [Language Codes](/admin- sdk/directory/v1/languages) for the list of supported codes. Valid language codes outside the supported set will be accepted by the API but may lead to unexpected behavior. Illegal values cause `SchemaException`. If this is set, `customLanguage` can't be set.
        Parameters:
        languageCode - languageCode or null for none
      • getPreference

        public String getPreference()
        Optional. If present, controls whether the specified `languageCode` is the user's preferred language. If `customLanguage` is set, this can't be set. Allowed values are `preferred` and `not_preferred`.
        Returns:
        value or null for none
      • setPreference

        public UserLanguage setPreference(String preference)
        Optional. If present, controls whether the specified `languageCode` is the user's preferred language. If `customLanguage` is set, this can't be set. Allowed values are `preferred` and `not_preferred`.
        Parameters:
        preference - preference or null for none

Copyright © 2011–2022 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy