- 3.51.0 (latest)
- 3.50.0
- 3.49.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.3
- 2.1.4
- 2.0.29
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TextDetectionParams.BuilderImplements
TextDetectionParamsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TextDetectionParams.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
TextDetectionParams.Builder |
build()
public TextDetectionParams build()
Type | Description |
TextDetectionParams |
buildPartial()
public TextDetectionParams buildPartial()
Type | Description |
TextDetectionParams |
clear()
public TextDetectionParams.Builder clear()
Type | Description |
TextDetectionParams.Builder |
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;
Type | Description |
TextDetectionParams.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public TextDetectionParams.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
TextDetectionParams.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public TextDetectionParams.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
TextDetectionParams.Builder |
clone()
public TextDetectionParams.Builder clone()
Type | Description |
TextDetectionParams.Builder |
getDefaultInstanceForType()
public TextDetectionParams getDefaultInstanceForType()
Type | Description |
TextDetectionParams |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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;
Type | Description |
boolean | The enableTextDetectionConfidenceScore. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(TextDetectionParams other)
public TextDetectionParams.Builder mergeFrom(TextDetectionParams other)
Name | Description |
other | TextDetectionParams |
Type | Description |
TextDetectionParams.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TextDetectionParams.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TextDetectionParams.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public TextDetectionParams.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
TextDetectionParams.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TextDetectionParams.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
TextDetectionParams.Builder |
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;
Name | Description |
value | boolean The enableTextDetectionConfidenceScore to set. |
Type | Description |
TextDetectionParams.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public TextDetectionParams.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
TextDetectionParams.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TextDetectionParams.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
TextDetectionParams.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final TextDetectionParams.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
TextDetectionParams.Builder |