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.v1p2beta1.TextSegment
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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()
Returns
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.v1p2beta1.TextFrame frames = 3;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.videointelligence.v1p2beta1.TextFrame>
|
Returns
addFrames(TextFrame value)
public TextSegment.Builder addFrames(TextFrame value)
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3;
Parameter
Returns
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.v1p2beta1.TextFrame frames = 3;
Parameter
Returns
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.v1p2beta1.TextFrame frames = 3;
Parameters
Returns
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.v1p2beta1.TextFrame frames = 3;
Parameters
Returns
addFramesBuilder()
public TextFrame.Builder addFramesBuilder()
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3;
Returns
addFramesBuilder(int index)
public TextFrame.Builder addFramesBuilder(int index)
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TextSegment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public TextSegment build()
Returns
buildPartial()
public TextSegment buildPartial()
Returns
clear()
public TextSegment.Builder clear()
Returns
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;
Returns
clearField(Descriptors.FieldDescriptor field)
public TextSegment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearFrames()
public TextSegment.Builder clearFrames()
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public TextSegment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSegment()
public TextSegment.Builder clearSegment()
Video segment where a text snippet was detected.
.google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1;
Returns
clone()
public TextSegment.Builder clone()
Returns
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()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getFrames(int index)
public TextFrame getFrames(int index)
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3;
Parameter
Returns
getFramesBuilder(int index)
public TextFrame.Builder getFramesBuilder(int index)
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3;
Parameter
Returns
getFramesBuilderList()
public List<TextFrame.Builder> getFramesBuilderList()
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3;
Returns
getFramesCount()
public int getFramesCount()
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3;
Returns
getFramesList()
public List<TextFrame> getFramesList()
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3;
Returns
getFramesOrBuilder(int index)
public TextFrameOrBuilder getFramesOrBuilder(int index)
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3;
Parameter
Returns
getFramesOrBuilderList()
public List<? extends TextFrameOrBuilder> getFramesOrBuilderList()
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3;
Returns
Type | Description |
List<? extends com.google.cloud.videointelligence.v1p2beta1.TextFrameOrBuilder> | |
getSegment()
public VideoSegment getSegment()
Video segment where a text snippet was detected.
.google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1;
Returns
getSegmentBuilder()
public VideoSegment.Builder getSegmentBuilder()
Video segment where a text snippet was detected.
.google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1;
Returns
getSegmentOrBuilder()
public VideoSegmentOrBuilder getSegmentOrBuilder()
Video segment where a text snippet was detected.
.google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1;
Returns
hasSegment()
public boolean hasSegment()
Video segment where a text snippet was detected.
.google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1;
Returns
Type | Description |
boolean | Whether the segment field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(TextSegment other)
public TextSegment.Builder mergeFrom(TextSegment other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TextSegment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public TextSegment.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeSegment(VideoSegment value)
public TextSegment.Builder mergeSegment(VideoSegment value)
Video segment where a text snippet was detected.
.google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TextSegment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeFrames(int index)
public TextSegment.Builder removeFrames(int index)
Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3;
Parameter
Returns
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.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public TextSegment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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.v1p2beta1.TextFrame frames = 3;
Parameters
Returns
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.v1p2beta1.TextFrame frames = 3;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TextSegment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSegment(VideoSegment value)
public TextSegment.Builder setSegment(VideoSegment value)
Video segment where a text snippet was detected.
.google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1;
Parameter
Returns
setSegment(VideoSegment.Builder builderForValue)
public TextSegment.Builder setSegment(VideoSegment.Builder builderForValue)
Video segment where a text snippet was detected.
.google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final TextSegment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides