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

__construct(array $data = NULL)

Constructor.

string
getText()

Localized string in the language corresponding to `language_code' below.

$this
setText(string $var)

Localized string in the language corresponding to `language_code' below.

string
getLanguageCode()

The text's BCP-47 language code, such as "en-US" or "sr-Latn".

$this
setLanguageCode(string $var)

The text's BCP-47 language code, such as "en-US" or "sr-Latn".

Details

at line 47
__construct(array $data = NULL)

Constructor.

Parameters

array $data { Optional. Data for populating the Message object.

@type string $text
      Localized string in the language corresponding to `language_code' below.
@type string $language_code
      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.

}

at line 58
string getText()

Localized string in the language corresponding to `language_code' below.

Generated from protobuf field string text = 1;

Return Value

string

at line 70
$this setText(string $var)

Localized string in the language corresponding to `language_code' below.

Generated from protobuf field string text = 1;

Parameters

string $var

Return Value

$this

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;

Return Value

string

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;

Parameters

string $var

Return Value

$this