Interface TextDetectionConfigOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
TextDetectionConfig,TextDetectionConfig.Builder
@Generated
public interface TextDetectionConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetLanguageHints(int index) Language hint can be specified if the language to be detected is known a priori.com.google.protobuf.ByteStringgetLanguageHintsBytes(int index) Language hint can be specified if the language to be detected is known a priori.intLanguage hint can be specified if the language to be detected is known a priori.Language hint can be specified if the language to be detected is known a priori.getModel()Model to use for text detection.com.google.protobuf.ByteStringModel to use for text detection.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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:
- A list containing the languageHints.
-
getLanguageHintsCount
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:
- The count of languageHints.
-
getLanguageHints
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;- Parameters:
index- The index of the element to return.- Returns:
- The languageHints at the given index.
-
getLanguageHintsBytes
com.google.protobuf.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;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the languageHints at the given index.
-
getModel
String getModel()Model to use for text detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".
string model = 2;- Returns:
- The model.
-
getModelBytes
com.google.protobuf.ByteString getModelBytes()Model to use for text detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".
string model = 2;- Returns:
- The bytes for model.
-