Interface TranslationName.Builder

  • Method Details

    • value

      The translated or alternative name value.

      Parameters:
      value - The translated or alternative name value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • language

      TranslationName.Builder language(String language)

      A BCP 47 compliant language code for the translation name.

      Parameters:
      language - A BCP 47 compliant language code for the translation name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • type

      The type of translation name. Valid values are Abbreviation, AreaCode, BaseName, Exonym, Shortened, and Synonym.

      Parameters:
      type - The type of translation name. Valid values are Abbreviation, AreaCode, BaseName, Exonym, Shortened, and Synonym.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      The type of translation name. Valid values are Abbreviation, AreaCode, BaseName, Exonym, Shortened, and Synonym.

      Parameters:
      type - The type of translation name. Valid values are Abbreviation, AreaCode, BaseName, Exonym, Shortened, and Synonym.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • primary

      TranslationName.Builder primary(Boolean primary)

      If true, indicates this is the primary name variant for the given language.

      Parameters:
      primary - If true, indicates this is the primary name variant for the given language.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • transliterated

      TranslationName.Builder transliterated(Boolean transliterated)

      If true, indicates this name is a transliterated version rather than a native script translation.

      Parameters:
      transliterated - If true, indicates this name is a transliterated version rather than a native script translation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.