LocalizedText
class LocalizedText extends Message
Localized variant of a text in a particular language.
Generated from protobuf message google.type.LocalizedText
Properties
protected | $text | Localized string in the language corresponding to `language_code' below. | |
protected | $language_code | The text's BCP-47 language code, such as "en-US" or "sr-Latn". |
Methods
Constructor.
Localized string in the language corresponding to `language_code' below.
Localized string in the language corresponding to `language_code' below.
The text's BCP-47 language code, such as "en-US" or "sr-Latn".
The text's BCP-47 language code, such as "en-US" or "sr-Latn".
Details
at line 47
__construct(array $data = NULL)
Constructor.
at line 58
string
getText()
Localized string in the language corresponding to `language_code' below.
Generated from protobuf field string text = 1;
at line 70
$this
setText(string $var)
Localized string in the language corresponding to `language_code' below.
Generated from protobuf field string text = 1;
at line 86
string
getLanguageCode()
The text's BCP-47 language code, such as "en-US" or "sr-Latn".
For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
Generated from protobuf field string language_code = 2;
at line 100
$this
setLanguageCode(string $var)
The text's BCP-47 language code, such as "en-US" or "sr-Latn".
For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
Generated from protobuf field string language_code = 2;