Class TextFrame.Builder (2.44.0)

public static final class TextFrame.Builder extends GeneratedMessageV3.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.v1p3beta1.TextFrame

Implements

TextFrameOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TextFrame.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TextFrame.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public TextFrame.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TextFrame.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TextFrame.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TextFrame.Builder
Overrides

clearRotatedBoundingBox()

public TextFrame.Builder clearRotatedBoundingBox()

Bounding polygon of the detected text for this frame.

.google.cloud.videointelligence.v1p3beta1.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

clone()

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

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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.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.v1p3beta1.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 GeneratedMessageV3.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.v1p3beta1.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TextFrame.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TextFrame.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TextFrame.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TextFrame.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TextFrame.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TextFrame.Builder
Overrides

setRotatedBoundingBox(NormalizedBoundingPoly value)

public TextFrame.Builder setRotatedBoundingBox(NormalizedBoundingPoly value)

Bounding polygon of the detected text for this frame.

.google.cloud.videointelligence.v1p3beta1.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.v1p3beta1.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

setUnknownFields(UnknownFieldSet unknownFields)

public final TextFrame.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TextFrame.Builder
Overrides