public static final class TextDetectionConfig.Builder extends GeneratedMessageV3.Builder<TextDetectionConfig.Builder> implements TextDetectionConfigOrBuilder
Config for TEXT_DETECTION.Protobuf type
google.cloud.videointelligence.v1p2beta1.TextDetectionConfig
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<TextDetectionConfig.Builder>
public TextDetectionConfig.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<TextDetectionConfig.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<TextDetectionConfig.Builder>
public TextDetectionConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public TextDetectionConfig build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public TextDetectionConfig buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public TextDetectionConfig.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<TextDetectionConfig.Builder>
public TextDetectionConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<TextDetectionConfig.Builder>
public TextDetectionConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<TextDetectionConfig.Builder>
public TextDetectionConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<TextDetectionConfig.Builder>
public TextDetectionConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<TextDetectionConfig.Builder>
public TextDetectionConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<TextDetectionConfig.Builder>
public TextDetectionConfig.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<TextDetectionConfig.Builder>
public TextDetectionConfig.Builder mergeFrom(TextDetectionConfig other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<TextDetectionConfig.Builder>
public TextDetectionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<TextDetectionConfig.Builder>
IOException
public ProtocolStringList 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;
getLanguageHintsList
in interface TextDetectionConfigOrBuilder
public 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;
getLanguageHintsCount
in interface TextDetectionConfigOrBuilder
public 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;
getLanguageHints
in interface TextDetectionConfigOrBuilder
index
- The index of the element to return.public 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;
getLanguageHintsBytes
in interface TextDetectionConfigOrBuilder
index
- The index of the value to return.public TextDetectionConfig.Builder setLanguageHints(int index, String value)
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;
index
- The index to set the value at.value
- The languageHints to set.public TextDetectionConfig.Builder addLanguageHints(String value)
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;
value
- The languageHints to add.public TextDetectionConfig.Builder addAllLanguageHints(Iterable<String> values)
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;
values
- The languageHints to add.public TextDetectionConfig.Builder clearLanguageHints()
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;
public TextDetectionConfig.Builder addLanguageHintsBytes(ByteString value)
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;
value
- The bytes of the languageHints to add.public final TextDetectionConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<TextDetectionConfig.Builder>
public final TextDetectionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<TextDetectionConfig.Builder>
Copyright © 2021 Google LLC. All rights reserved.