public static final class TextSegment.Builder extends GeneratedMessageV3.Builder<TextSegment.Builder> implements TextSegmentOrBuilder
Video segment level annotation results for text detection.
Protobuf type google.cloud.videointelligence.v1p3beta1.TextSegment
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllFrames(Iterable<? extends TextFrame> values)
public TextSegment.Builder addAllFrames(Iterable<? extends TextFrame> values)
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.videointelligence.v1p3beta1.TextFrame>
|
addFrames(TextFrame value)
public TextSegment.Builder addFrames(TextFrame value)
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3;
addFrames(TextFrame.Builder builderForValue)
public TextSegment.Builder addFrames(TextFrame.Builder builderForValue)
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3;
addFrames(int index, TextFrame value)
public TextSegment.Builder addFrames(int index, TextFrame value)
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3;
addFrames(int index, TextFrame.Builder builderForValue)
public TextSegment.Builder addFrames(int index, TextFrame.Builder builderForValue)
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3;
addFramesBuilder()
public TextFrame.Builder addFramesBuilder()
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3;
addFramesBuilder(int index)
public TextFrame.Builder addFramesBuilder(int index)
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3;
Parameter |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TextSegment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public TextSegment build()
buildPartial()
public TextSegment buildPartial()
clear()
public TextSegment.Builder clear()
Overrides
clearConfidence()
public TextSegment.Builder clearConfidence()
Confidence for the track of detected text. It is calculated as the highest
over all frames where OCR detected text appears.
float confidence = 2;
clearField(Descriptors.FieldDescriptor field)
public TextSegment.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearFrames()
public TextSegment.Builder clearFrames()
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3;
clearOneof(Descriptors.OneofDescriptor oneof)
public TextSegment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSegment()
public TextSegment.Builder clearSegment()
Video segment where a text snippet was detected.
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
clone()
public TextSegment.Builder clone()
Overrides
getConfidence()
public float getConfidence()
Confidence for the track of detected text. It is calculated as the highest
over all frames where OCR detected text appears.
float confidence = 2;
Returns |
---|
Type | Description |
float | The confidence.
|
getDefaultInstanceForType()
public TextSegment getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getFrames(int index)
public TextFrame getFrames(int index)
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3;
Parameter |
---|
Name | Description |
index | int
|
getFramesBuilder(int index)
public TextFrame.Builder getFramesBuilder(int index)
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3;
Parameter |
---|
Name | Description |
index | int
|
getFramesBuilderList()
public List<TextFrame.Builder> getFramesBuilderList()
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3;
getFramesCount()
public int getFramesCount()
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3;
Returns |
---|
Type | Description |
int | |
getFramesList()
public List<TextFrame> getFramesList()
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3;
getFramesOrBuilder(int index)
public TextFrameOrBuilder getFramesOrBuilder(int index)
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3;
Parameter |
---|
Name | Description |
index | int
|
getFramesOrBuilderList()
public List<? extends TextFrameOrBuilder> getFramesOrBuilderList()
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.videointelligence.v1p3beta1.TextFrameOrBuilder> | |
getSegment()
public VideoSegment getSegment()
Video segment where a text snippet was detected.
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
getSegmentBuilder()
public VideoSegment.Builder getSegmentBuilder()
Video segment where a text snippet was detected.
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
getSegmentOrBuilder()
public VideoSegmentOrBuilder getSegmentOrBuilder()
Video segment where a text snippet was detected.
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
hasSegment()
public boolean hasSegment()
Video segment where a text snippet was detected.
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
Returns |
---|
Type | Description |
boolean | Whether the segment field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(TextSegment other)
public TextSegment.Builder mergeFrom(TextSegment other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TextSegment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public TextSegment.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeSegment(VideoSegment value)
public TextSegment.Builder mergeSegment(VideoSegment value)
Video segment where a text snippet was detected.
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TextSegment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeFrames(int index)
public TextSegment.Builder removeFrames(int index)
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3;
Parameter |
---|
Name | Description |
index | int
|
setConfidence(float value)
public TextSegment.Builder setConfidence(float value)
Confidence for the track of detected text. It is calculated as the highest
over all frames where OCR detected text appears.
float confidence = 2;
Parameter |
---|
Name | Description |
value | float
The confidence to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public TextSegment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setFrames(int index, TextFrame value)
public TextSegment.Builder setFrames(int index, TextFrame value)
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3;
setFrames(int index, TextFrame.Builder builderForValue)
public TextSegment.Builder setFrames(int index, TextFrame.Builder builderForValue)
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p3beta1.TextFrame frames = 3;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TextSegment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSegment(VideoSegment value)
public TextSegment.Builder setSegment(VideoSegment value)
Video segment where a text snippet was detected.
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
setSegment(VideoSegment.Builder builderForValue)
public TextSegment.Builder setSegment(VideoSegment.Builder builderForValue)
Video segment where a text snippet was detected.
.google.cloud.videointelligence.v1p3beta1.VideoSegment segment = 1;
setUnknownFields(UnknownFieldSet unknownFields)
public final TextSegment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides