View Source GoogleApi.ContentWarehouse.V1.Model.GeostoreLocaleLanguageProto (google_api_content_warehouse v0.4.0)

This message describes the details of a single language within a locale.

Attributes

  • language (type: String.t, default: nil) - The language associated with this preference. The external form of a Google International Identifiers Initiative (III) LanguageCode object. See google3/i18n/identifiers/languagecode.h for details. We place extra restrictions on languages in addition to what the III library requires. See http://go/geo-schema-reference/feature-properties/languages.md
  • official (type: boolean(), default: nil) - Flag to indicate if the associated language is "official" within a locale.
  • preference (type: number(), default: nil) - This value represents the preference of the associated language within a locale. It must be between 0.0 and 1.0.
  • speakingPercent (type: number(), default: nil) - Percentage of population that can speak the associated language within a locale. It must be between 0 and 100.
  • writingPercent (type: number(), default: nil) - Percentage of population that can write the associated language within a locale. It must be between 0 and 100.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.GeostoreLocaleLanguageProto{
  language: String.t() | nil,
  official: boolean() | nil,
  preference: number() | nil,
  speakingPercent: number() | nil,
  writingPercent: number() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.