Class TextFrame.Builder (2.1.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.v1.TextFrame

Implements

TextFrameOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TextFrame.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TextFrame.Builder
Overrides

build()

public TextFrame build()
Returns
TypeDescription
TextFrame

buildPartial()

public TextFrame buildPartial()
Returns
TypeDescription
TextFrame

clear()

public TextFrame.Builder clear()
Returns
TypeDescription
TextFrame.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TextFrame.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TextFrame.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TextFrame.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
TextFrame.Builder

clearTimeOffset()

public TextFrame.Builder clearTimeOffset()

Timestamp of this frame.

.google.protobuf.Duration time_offset = 2;

Returns
TypeDescription
TextFrame.Builder

clone()

public TextFrame.Builder clone()
Returns
TypeDescription
TextFrame.Builder
Overrides

getDefaultInstanceForType()

public TextFrame getDefaultInstanceForType()
Returns
TypeDescription
TextFrame

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
NormalizedBoundingPolyOrBuilder

getTimeOffset()

public Duration getTimeOffset()

Timestamp of this frame.

.google.protobuf.Duration time_offset = 2;

Returns
TypeDescription
Duration

The timeOffset.

getTimeOffsetBuilder()

public Duration.Builder getTimeOffsetBuilder()

Timestamp of this frame.

.google.protobuf.Duration time_offset = 2;

Returns
TypeDescription
Builder

getTimeOffsetOrBuilder()

public DurationOrBuilder getTimeOffsetOrBuilder()

Timestamp of this frame.

.google.protobuf.Duration time_offset = 2;

Returns
TypeDescription
DurationOrBuilder

hasRotatedBoundingBox()

public boolean hasRotatedBoundingBox()

Bounding polygon of the detected text for this frame.

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

Returns
TypeDescription
boolean

Whether the rotatedBoundingBox field is set.

hasTimeOffset()

public boolean hasTimeOffset()

Timestamp of this frame.

.google.protobuf.Duration time_offset = 2;

Returns
TypeDescription
boolean

Whether the timeOffset field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TextFrame other)

public TextFrame.Builder mergeFrom(TextFrame other)
Parameter
NameDescription
otherTextFrame
Returns
TypeDescription
TextFrame.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TextFrame.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextFrame.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TextFrame.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueNormalizedBoundingPoly
Returns
TypeDescription
TextFrame.Builder

mergeTimeOffset(Duration value)

public TextFrame.Builder mergeTimeOffset(Duration value)

Timestamp of this frame.

.google.protobuf.Duration time_offset = 2;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
TextFrame.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TextFrame.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TextFrame.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TextFrame.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TextFrame.Builder
Overrides

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

public TextFrame.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TextFrame.Builder
Overrides

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
NameDescription
valueNormalizedBoundingPoly
Returns
TypeDescription
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
NameDescription
builderForValueNormalizedBoundingPoly.Builder
Returns
TypeDescription
TextFrame.Builder

setTimeOffset(Duration value)

public TextFrame.Builder setTimeOffset(Duration value)

Timestamp of this frame.

.google.protobuf.Duration time_offset = 2;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
TextFrame.Builder

setTimeOffset(Duration.Builder builderForValue)

public TextFrame.Builder setTimeOffset(Duration.Builder builderForValue)

Timestamp of this frame.

.google.protobuf.Duration time_offset = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
TextFrame.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final TextFrame.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TextFrame.Builder
Overrides