Interface TextDetectionConfigOrBuilder (2.34.0)

public interface TextDetectionConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getLanguageHints(int index)

public abstract String getLanguageHints(int index)

Language hint can be specified if the language to be detected is known a priori. It can increase the accuracy of the detection. Language hint must be language code in BCP-47 format.

Automatic language detection is performed if no hint is provided.

repeated string language_hints = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The languageHints at the given index.

getLanguageHintsBytes(int index)

public abstract ByteString getLanguageHintsBytes(int index)

Language hint can be specified if the language to be detected is known a priori. It can increase the accuracy of the detection. Language hint must be language code in BCP-47 format.

Automatic language detection is performed if no hint is provided.

repeated string language_hints = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the languageHints at the given index.

getLanguageHintsCount()

public abstract int getLanguageHintsCount()

Language hint can be specified if the language to be detected is known a priori. It can increase the accuracy of the detection. Language hint must be language code in BCP-47 format.

Automatic language detection is performed if no hint is provided.

repeated string language_hints = 1;

Returns
TypeDescription
int

The count of languageHints.

getLanguageHintsList()

public abstract List<String> getLanguageHintsList()

Language hint can be specified if the language to be detected is known a priori. It can increase the accuracy of the detection. Language hint must be language code in BCP-47 format.

Automatic language detection is performed if no hint is provided.

repeated string language_hints = 1;

Returns
TypeDescription
List<String>

A list containing the languageHints.

getModel()

public abstract String getModel()

Model to use for text detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

string model = 2;

Returns
TypeDescription
String

The model.

getModelBytes()

public abstract ByteString getModelBytes()

Model to use for text detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

string model = 2;

Returns
TypeDescription
ByteString

The bytes for model.