Class TextFrame.Builder (2.82.0)

public static final class TextFrame.Builder extends GeneratedMessage.Builder<TextFrame.Builder> implements TextFrameOrBuilder

Video frame level annotation results for text annotation (OCR). Contains information regarding timestamp and bounding box locations for the frames containing detected OCR text snippets.

Protobuf type google.cloud.videointelligence.v1.TextFrame

Implements

TextFrameOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public TextFrame build()
Returns
Type Description
TextFrame

buildPartial()

public TextFrame buildPartial()
Returns
Type Description
TextFrame

clear()

public TextFrame.Builder clear()
Returns
Type Description
TextFrame.Builder
Overrides

clearRotatedBoundingBox()

public TextFrame.Builder clearRotatedBoundingBox()

Bounding polygon of the detected text for this frame.

.google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1;

Returns
Type Description
TextFrame.Builder

clearTimeOffset()

public TextFrame.Builder clearTimeOffset()

Timestamp of this frame.

.google.protobuf.Duration time_offset = 2;

Returns
Type Description
TextFrame.Builder

getDefaultInstanceForType()

public TextFrame getDefaultInstanceForType()
Returns
Type Description
TextFrame

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRotatedBoundingBox()

public NormalizedBoundingPoly getRotatedBoundingBox()

Bounding polygon of the detected text for this frame.

.google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1;

Returns
Type Description
NormalizedBoundingPoly

The rotatedBoundingBox.

getRotatedBoundingBoxBuilder()

public NormalizedBoundingPoly.Builder getRotatedBoundingBoxBuilder()

Bounding polygon of the detected text for this frame.

.google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1;

Returns
Type Description
NormalizedBoundingPoly.Builder

getRotatedBoundingBoxOrBuilder()

public NormalizedBoundingPolyOrBuilder getRotatedBoundingBoxOrBuilder()

Bounding polygon of the detected text for this frame.

.google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1;

Returns
Type Description
NormalizedBoundingPolyOrBuilder

getTimeOffset()

public Duration getTimeOffset()

Timestamp of this frame.

.google.protobuf.Duration time_offset = 2;

Returns
Type Description
Duration

The timeOffset.

getTimeOffsetBuilder()

public Duration.Builder getTimeOffsetBuilder()

Timestamp of this frame.

.google.protobuf.Duration time_offset = 2;

Returns
Type Description
Builder

getTimeOffsetOrBuilder()

public DurationOrBuilder getTimeOffsetOrBuilder()

Timestamp of this frame.

.google.protobuf.Duration time_offset = 2;

Returns
Type Description
DurationOrBuilder

hasRotatedBoundingBox()

public boolean hasRotatedBoundingBox()

Bounding polygon of the detected text for this frame.

.google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1;

Returns
Type Description
boolean

Whether the rotatedBoundingBox field is set.

hasTimeOffset()

public boolean hasTimeOffset()

Timestamp of this frame.

.google.protobuf.Duration time_offset = 2;

Returns
Type Description
boolean

Whether the timeOffset field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TextFrame other)

public TextFrame.Builder mergeFrom(TextFrame other)
Parameter
Name Description
other TextFrame
Returns
Type Description
TextFrame.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TextFrame.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TextFrame.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TextFrame.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TextFrame.Builder
Overrides

mergeRotatedBoundingBox(NormalizedBoundingPoly value)

public TextFrame.Builder mergeRotatedBoundingBox(NormalizedBoundingPoly value)

Bounding polygon of the detected text for this frame.

.google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1;

Parameter
Name Description
value NormalizedBoundingPoly
Returns
Type Description
TextFrame.Builder

mergeTimeOffset(Duration value)

public TextFrame.Builder mergeTimeOffset(Duration value)

Timestamp of this frame.

.google.protobuf.Duration time_offset = 2;

Parameter
Name Description
value Duration
Returns
Type Description
TextFrame.Builder

setRotatedBoundingBox(NormalizedBoundingPoly value)

public TextFrame.Builder setRotatedBoundingBox(NormalizedBoundingPoly value)

Bounding polygon of the detected text for this frame.

.google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1;

Parameter
Name Description
value NormalizedBoundingPoly
Returns
Type Description
TextFrame.Builder

setRotatedBoundingBox(NormalizedBoundingPoly.Builder builderForValue)

public TextFrame.Builder setRotatedBoundingBox(NormalizedBoundingPoly.Builder builderForValue)

Bounding polygon of the detected text for this frame.

.google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1;

Parameter
Name Description
builderForValue NormalizedBoundingPoly.Builder
Returns
Type Description
TextFrame.Builder

setTimeOffset(Duration value)

public TextFrame.Builder setTimeOffset(Duration value)

Timestamp of this frame.

.google.protobuf.Duration time_offset = 2;

Parameter
Name Description
value Duration
Returns
Type Description
TextFrame.Builder

setTimeOffset(Duration.Builder builderForValue)

public TextFrame.Builder setTimeOffset(Duration.Builder builderForValue)

Timestamp of this frame.

.google.protobuf.Duration time_offset = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TextFrame.Builder