class TextAnnotation_DetectedLanguage extends Message

Detected language for a structural component.

Protobuf type Google\Cloud\Vision\V1\TextAnnotation\DetectedLanguage

Methods

__construct()

No description

string
getLanguageCode()

The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

setLanguageCode(string $var)

The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

float
getConfidence()

Confidence of detected language. Range [0, 1].

setConfidence(float $var)

Confidence of detected language. Range [0, 1].

Details

at line 33
__construct()

at line 46
string getLanguageCode()

The 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 = 1;

Return Value

string

at line 59
setLanguageCode(string $var)

The 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 = 1;

Parameters

string $var

at line 71
float getConfidence()

Confidence of detected language. Range [0, 1].

Generated from protobuf field float confidence = 2;

Return Value

float

at line 82
setConfidence(float $var)

Confidence of detected language. Range [0, 1].

Generated from protobuf field float confidence = 2;

Parameters

float $var