Interface TextDetectionConfigOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    TextDetectionConfig, TextDetectionConfig.Builder

    public interface TextDetectionConfigOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getLanguageHints​(int index)
      Language hint can be specified if the language to be detected is known a priori.
      com.google.protobuf.ByteString getLanguageHintsBytes​(int index)
      Language hint can be specified if the language to be detected is known a priori.
      int getLanguageHintsCount()
      Language hint can be specified if the language to be detected is known a priori.
      List<String> getLanguageHintsList()
      Language hint can be specified if the language to be detected is known a priori.
      String getModel()
      Model to use for text detection.
      com.google.protobuf.ByteString getModelBytes()
      Model to use for text detection.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getLanguageHintsList

        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:
        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

        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;
        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.