Class TextDetectionParams.Builder (2.1.4)

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.v1p1beta1.TextDetectionParams

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TextDetectionParams.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TextDetectionParams.Builder
Overrides

build()

public TextDetectionParams build()
Returns
TypeDescription
TextDetectionParams

buildPartial()

public TextDetectionParams buildPartial()
Returns
TypeDescription
TextDetectionParams

clear()

public TextDetectionParams.Builder clear()
Returns
TypeDescription
TextDetectionParams.Builder
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
TypeDescription
TextDetectionParams.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TextDetectionParams.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TextDetectionParams.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)