Send feedback
Class TextDetectionParams.Builder (2.1.2)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.1.2 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.v1p3beta1.TextDetectionParams
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TextDetectionParams . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public TextDetectionParams build ()
Returns
buildPartial()
public TextDetectionParams buildPartial ()
Returns
clear()
public TextDetectionParams . Builder clear ()
Returns
Overrides
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;
Returns
clearField(Descriptors.FieldDescriptor field)
public TextDetectionParams . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public TextDetectionParams . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clone()
public TextDetectionParams . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public TextDetectionParams getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
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 ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(TextDetectionParams other)
public TextDetectionParams . Builder mergeFrom ( TextDetectionParams other )
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TextDetectionParams . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public TextDetectionParams . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TextDetectionParams . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
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.
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public TextDetectionParams . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TextDetectionParams . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final TextDetectionParams . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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-21 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-21 UTC."],[],[]]