- 2.82.0 (latest)
- 2.81.0
- 2.79.0
- 2.77.0
- 2.75.0
- 2.74.0
- 2.73.0
- 2.72.0
- 2.71.0
- 2.69.0
- 2.67.0
- 2.66.0
- 2.63.0
- 2.62.0
- 2.61.0
- 2.59.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.38.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.13
- 2.1.0
- 2.0.27
public static final class TextSegment.Builder extends GeneratedMessage.Builder<TextSegment.Builder> implements TextSegmentOrBuilderVideo segment level annotation results for text detection.
Protobuf type google.cloud.videointelligence.v1p2beta1.TextSegment
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > TextSegment.BuilderImplements
TextSegmentOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 | |
|---|---|
| Type | Description |
TextSegment.Builder |
|
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 | |
|---|---|
| Name | Description |
value |
TextFrame |
| Returns | |
|---|---|
| Type | Description |
TextSegment.Builder |
|
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 | |
|---|---|
| Name | Description |
builderForValue |
TextFrame.Builder |
| Returns | |
|---|---|
| Type | Description |
TextSegment.Builder |
|
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 | |
|---|---|
| Name | Description |
index |
int |
value |
TextFrame |
| Returns | |
|---|---|
| Type | Description |
TextSegment.Builder |
|
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 | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
TextFrame.Builder |
| Returns | |
|---|---|
| Type | Description |
TextSegment.Builder |
|
addFramesBuilder()
public TextFrame.Builder addFramesBuilder()Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3;
| Returns | |
|---|---|
| Type | Description |
TextFrame.Builder |
|
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 | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
TextFrame.Builder |
|
build()
public TextSegment build()| Returns | |
|---|---|
| Type | Description |
TextSegment |
|
buildPartial()
public TextSegment buildPartial()| Returns | |
|---|---|
| Type | Description |
TextSegment |
|
clear()
public TextSegment.Builder clear()| Returns | |
|---|---|
| Type | Description |
TextSegment.Builder |
|
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 | |
|---|---|
| Type | Description |
TextSegment.Builder |
This builder for chaining. |
clearFrames()
public TextSegment.Builder clearFrames()Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.TextFrame frames = 3;
| Returns | |
|---|---|
| Type | Description |
TextSegment.Builder |
|
clearSegment()
public TextSegment.Builder clearSegment()Video segment where a text snippet was detected.
.google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1;
| Returns | |
|---|---|
| Type | Description |
TextSegment.Builder |
|
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 | |
|---|---|
| Type | Description |
TextSegment |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
TextFrame |
|
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 | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
TextFrame.Builder |
|
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 | |
|---|---|
| Type | Description |
List<Builder> |
|
getFramesCount()
public int getFramesCount()Information related to the frames where OCR detected text appears.
repeated .google.cloud.videointelligence.v1p2beta1.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.v1p2beta1.TextFrame frames = 3;
| Returns | |
|---|---|
| Type | Description |
List<TextFrame> |
|
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 | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
TextFrameOrBuilder |
|
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 | |
|---|---|
| Type | Description |
VideoSegment |
The segment. |
getSegmentBuilder()
public VideoSegment.Builder getSegmentBuilder()Video segment where a text snippet was detected.
.google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1;
| Returns | |
|---|---|
| Type | Description |
VideoSegment.Builder |
|
getSegmentOrBuilder()
public VideoSegmentOrBuilder getSegmentOrBuilder()Video segment where a text snippet was detected.
.google.cloud.videointelligence.v1p2beta1.VideoSegment segment = 1;
| Returns | |
|---|---|
| Type | Description |
VideoSegmentOrBuilder |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(TextSegment other)
public TextSegment.Builder mergeFrom(TextSegment other)| Parameter | |
|---|---|
| Name | Description |
other |
TextSegment |
| Returns | |
|---|---|
| Type | Description |
TextSegment.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TextSegment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
TextSegment.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TextSegment.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TextSegment.Builder |
|
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 | |
|---|---|
| Name | Description |
value |
VideoSegment |
| Returns | |
|---|---|
| Type | Description |
TextSegment.Builder |
|
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 | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
TextSegment.Builder |
|
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 |
floatThe confidence to set. |
| Returns | |
|---|---|
| Type | Description |
TextSegment.Builder |
This builder for chaining. |
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 | |
|---|---|
| Name | Description |
index |
int |
value |
TextFrame |
| Returns | |
|---|---|
| Type | Description |
TextSegment.Builder |
|
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 | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
TextFrame.Builder |
| Returns | |
|---|---|
| Type | Description |
TextSegment.Builder |
|
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 | |
|---|---|
| Name | Description |
value |
VideoSegment |
| Returns | |
|---|---|
| Type | Description |
TextSegment.Builder |
|
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 | |
|---|---|
| Name | Description |
builderForValue |
VideoSegment.Builder |
| Returns | |
|---|---|
| Type | Description |
TextSegment.Builder |
|