Send feedback
Class TextDetectionParams.Builder (3.28.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.28.0 keyboard_arrow_down
public static final class TextDetectionParams . Builder extends GeneratedMessageV3 . Builder<TextDetectionParams . Builder > implements TextDetectionParamsOrBuilder
Parameters for text detections. This is used to control TEXT_DETECTION and
DOCUMENT_TEXT_DETECTION features.
Protobuf type google.cloud.vision.v1p4beta1.TextDetectionParams
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addAdvancedOcrOptions(String value)
public TextDetectionParams . Builder addAdvancedOcrOptions ( String value )
A list of advanced OCR options to fine-tune OCR behavior.
repeated string advanced_ocr_options = 11;
Parameter Name Description value
String
The advancedOcrOptions to add.
addAdvancedOcrOptionsBytes(ByteString value)
public TextDetectionParams . Builder addAdvancedOcrOptionsBytes ( ByteString value )
A list of advanced OCR options to fine-tune OCR behavior.
repeated string advanced_ocr_options = 11;
Parameter Name Description value
ByteString
The bytes of the advancedOcrOptions to add.
addAllAdvancedOcrOptions(Iterable<String> values)
public TextDetectionParams . Builder addAllAdvancedOcrOptions ( Iterable<String> values )
A list of advanced OCR options to fine-tune OCR behavior.
repeated string advanced_ocr_options = 11;
Parameter Name Description values
Iterable <String >
The advancedOcrOptions to add.
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TextDetectionParams . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public TextDetectionParams build ()
buildPartial()
public TextDetectionParams buildPartial ()
clear()
public TextDetectionParams . Builder clear ()
Overrides
clearAdvancedOcrOptions()
public TextDetectionParams . Builder clearAdvancedOcrOptions ()
A list of advanced OCR options to fine-tune OCR behavior.
repeated string advanced_ocr_options = 11;
clearEnableTextDetectionConfidenceScore()
public TextDetectionParams . Builder clearEnableTextDetectionConfidenceScore ()
By default, Cloud Vision API only includes confidence score for
DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
score for TEXT_DETECTION as well.
bool enable_text_detection_confidence_score = 9;
clearField(Descriptors.FieldDescriptor field)
public TextDetectionParams . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public TextDetectionParams . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clone()
public TextDetectionParams . Builder clone ()
Overrides
getAdvancedOcrOptions(int index)
public String getAdvancedOcrOptions ( int index )
A list of advanced OCR options to fine-tune OCR behavior.
repeated string advanced_ocr_options = 11;
Parameter Name Description index
int
The index of the element to return.
Returns Type Description String
The advancedOcrOptions at the given index.
getAdvancedOcrOptionsBytes(int index)
public ByteString getAdvancedOcrOptionsBytes ( int index )
A list of advanced OCR options to fine-tune OCR behavior.
repeated string advanced_ocr_options = 11;
Parameter Name Description index
int
The index of the value to return.
Returns Type Description ByteString
The bytes of the advancedOcrOptions at the given index.
getAdvancedOcrOptionsCount()
public int getAdvancedOcrOptionsCount ()
A list of advanced OCR options to fine-tune OCR behavior.
repeated string advanced_ocr_options = 11;
Returns Type Description int
The count of advancedOcrOptions.
getAdvancedOcrOptionsList()
public ProtocolStringList getAdvancedOcrOptionsList ()
A list of advanced OCR options to fine-tune OCR behavior.
repeated string advanced_ocr_options = 11;
getDefaultInstanceForType()
public TextDetectionParams getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getEnableTextDetectionConfidenceScore()
public boolean getEnableTextDetectionConfidenceScore ()
By default, Cloud Vision API only includes confidence score for
DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
score for TEXT_DETECTION as well.
bool enable_text_detection_confidence_score = 9;
Returns Type Description boolean
The enableTextDetectionConfidenceScore.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(TextDetectionParams other)
public TextDetectionParams . Builder mergeFrom ( TextDetectionParams other )
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TextDetectionParams . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public TextDetectionParams . Builder mergeFrom ( Message other )
Parameter Name Description other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TextDetectionParams . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setAdvancedOcrOptions(int index, String value)
public TextDetectionParams . Builder setAdvancedOcrOptions ( int index , String value )
A list of advanced OCR options to fine-tune OCR behavior.
repeated string advanced_ocr_options = 11;
Parameters Name Description index
int
The index to set the value at.
value
String
The advancedOcrOptions to set.
setEnableTextDetectionConfidenceScore(boolean value)
public TextDetectionParams . Builder setEnableTextDetectionConfidenceScore ( boolean value )
By default, Cloud Vision API only includes confidence score for
DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
score for TEXT_DETECTION as well.
bool enable_text_detection_confidence_score = 9;
Parameter Name Description value
boolean
The enableTextDetectionConfidenceScore to set.
setField(Descriptors.FieldDescriptor field, Object value)
public TextDetectionParams . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TextDetectionParams . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final TextDetectionParams . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]