public static final class TextAnnotation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotation.Builder> implements TextAnnotationOrBuilder
Annotations related to one detected OCR text snippet. This will contain the corresponding text, confidence value, and frame level information for each detection.Protobuf type
google.cloud.videointelligence.v1p2beta1.TextAnnotation| Modifier and Type | Method and Description |
|---|---|
TextAnnotation.Builder |
addAllSegments(Iterable<? extends TextSegment> values)
All video segments where OCR detected text appears.
|
TextAnnotation.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TextAnnotation.Builder |
addSegments(int index,
TextSegment.Builder builderForValue)
All video segments where OCR detected text appears.
|
TextAnnotation.Builder |
addSegments(int index,
TextSegment value)
All video segments where OCR detected text appears.
|
TextAnnotation.Builder |
addSegments(TextSegment.Builder builderForValue)
All video segments where OCR detected text appears.
|
TextAnnotation.Builder |
addSegments(TextSegment value)
All video segments where OCR detected text appears.
|
TextSegment.Builder |
addSegmentsBuilder()
All video segments where OCR detected text appears.
|
TextSegment.Builder |
addSegmentsBuilder(int index)
All video segments where OCR detected text appears.
|
TextAnnotation |
build() |
TextAnnotation |
buildPartial() |
TextAnnotation.Builder |
clear() |
TextAnnotation.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TextAnnotation.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TextAnnotation.Builder |
clearSegments()
All video segments where OCR detected text appears.
|
TextAnnotation.Builder |
clearText()
The detected text.
|
TextAnnotation.Builder |
clone() |
TextAnnotation |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
TextSegment |
getSegments(int index)
All video segments where OCR detected text appears.
|
TextSegment.Builder |
getSegmentsBuilder(int index)
All video segments where OCR detected text appears.
|
List<TextSegment.Builder> |
getSegmentsBuilderList()
All video segments where OCR detected text appears.
|
int |
getSegmentsCount()
All video segments where OCR detected text appears.
|
List<TextSegment> |
getSegmentsList()
All video segments where OCR detected text appears.
|
TextSegmentOrBuilder |
getSegmentsOrBuilder(int index)
All video segments where OCR detected text appears.
|
List<? extends TextSegmentOrBuilder> |
getSegmentsOrBuilderList()
All video segments where OCR detected text appears.
|
String |
getText()
The detected text.
|
com.google.protobuf.ByteString |
getTextBytes()
The detected text.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TextAnnotation.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TextAnnotation.Builder |
mergeFrom(com.google.protobuf.Message other) |
TextAnnotation.Builder |
mergeFrom(TextAnnotation other) |
TextAnnotation.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TextAnnotation.Builder |
removeSegments(int index)
All video segments where OCR detected text appears.
|
TextAnnotation.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TextAnnotation.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TextAnnotation.Builder |
setSegments(int index,
TextSegment.Builder builderForValue)
All video segments where OCR detected text appears.
|
TextAnnotation.Builder |
setSegments(int index,
TextSegment value)
All video segments where OCR detected text appears.
|
TextAnnotation.Builder |
setText(String value)
The detected text.
|
TextAnnotation.Builder |
setTextBytes(com.google.protobuf.ByteString value)
The detected text.
|
TextAnnotation.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotation.Builder>public TextAnnotation.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotation.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotation.Builder>public TextAnnotation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TextAnnotation build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TextAnnotation buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TextAnnotation.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotation.Builder>public TextAnnotation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotation.Builder>public TextAnnotation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotation.Builder>public TextAnnotation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotation.Builder>public TextAnnotation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotation.Builder>public TextAnnotation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotation.Builder>public TextAnnotation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TextAnnotation.Builder>public TextAnnotation.Builder mergeFrom(TextAnnotation other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotation.Builder>public TextAnnotation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TextAnnotation.Builder>IOExceptionpublic String getText()
The detected text.
string text = 1;getText in interface TextAnnotationOrBuilderpublic com.google.protobuf.ByteString getTextBytes()
The detected text.
string text = 1;getTextBytes in interface TextAnnotationOrBuilderpublic TextAnnotation.Builder setText(String value)
The detected text.
string text = 1;value - The text to set.public TextAnnotation.Builder clearText()
The detected text.
string text = 1;public TextAnnotation.Builder setTextBytes(com.google.protobuf.ByteString value)
The detected text.
string text = 1;value - The bytes for text to set.public List<TextSegment> getSegmentsList()
All video segments where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 2;getSegmentsList in interface TextAnnotationOrBuilderpublic int getSegmentsCount()
All video segments where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 2;getSegmentsCount in interface TextAnnotationOrBuilderpublic TextSegment getSegments(int index)
All video segments where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 2;getSegments in interface TextAnnotationOrBuilderpublic TextAnnotation.Builder setSegments(int index, TextSegment value)
All video segments where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 2;public TextAnnotation.Builder setSegments(int index, TextSegment.Builder builderForValue)
All video segments where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 2;public TextAnnotation.Builder addSegments(TextSegment value)
All video segments where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 2;public TextAnnotation.Builder addSegments(int index, TextSegment value)
All video segments where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 2;public TextAnnotation.Builder addSegments(TextSegment.Builder builderForValue)
All video segments where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 2;public TextAnnotation.Builder addSegments(int index, TextSegment.Builder builderForValue)
All video segments where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 2;public TextAnnotation.Builder addAllSegments(Iterable<? extends TextSegment> values)
All video segments where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 2;public TextAnnotation.Builder clearSegments()
All video segments where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 2;public TextAnnotation.Builder removeSegments(int index)
All video segments where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 2;public TextSegment.Builder getSegmentsBuilder(int index)
All video segments where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 2;public TextSegmentOrBuilder getSegmentsOrBuilder(int index)
All video segments where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 2;getSegmentsOrBuilder in interface TextAnnotationOrBuilderpublic List<? extends TextSegmentOrBuilder> getSegmentsOrBuilderList()
All video segments where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 2;getSegmentsOrBuilderList in interface TextAnnotationOrBuilderpublic TextSegment.Builder addSegmentsBuilder()
All video segments where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 2;public TextSegment.Builder addSegmentsBuilder(int index)
All video segments where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 2;public List<TextSegment.Builder> getSegmentsBuilderList()
All video segments where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextSegment segments = 2;public final TextAnnotation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotation.Builder>public final TextAnnotation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotation.Builder>Copyright © 2023 Google LLC. All rights reserved.