Class TextFrame (2.35.0)

public final class TextFrame extends GeneratedMessageV3 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 Fields

ROTATED_BOUNDING_BOX_FIELD_NUMBER

public static final int ROTATED_BOUNDING_BOX_FIELD_NUMBER
Field Value
TypeDescription
int

TIME_OFFSET_FIELD_NUMBER

public static final int TIME_OFFSET_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TextFrame getDefaultInstance()
Returns
TypeDescription
TextFrame

getDescriptor()

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

newBuilder()

public static TextFrame.Builder newBuilder()
Returns
TypeDescription
TextFrame.Builder

newBuilder(TextFrame prototype)

public static TextFrame.Builder newBuilder(TextFrame prototype)
Parameter
NameDescription
prototypeTextFrame
Returns
TypeDescription
TextFrame.Builder

parseDelimitedFrom(InputStream input)

public static TextFrame parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TextFrame
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TextFrame parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextFrame
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TextFrame parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TextFrame
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TextFrame parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextFrame
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TextFrame parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TextFrame
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TextFrame parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextFrame
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TextFrame parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TextFrame
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TextFrame parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextFrame
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TextFrame parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TextFrame
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TextFrame parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextFrame
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TextFrame parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TextFrame
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TextFrame parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextFrame
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TextFrame> parser()
Returns
TypeDescription
Parser<TextFrame>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public TextFrame getDefaultInstanceForType()
Returns
TypeDescription
TextFrame

getParserForType()

public Parser<TextFrame> getParserForType()
Returns
TypeDescription
Parser<TextFrame>
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.

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTimeOffset()

public Duration getTimeOffset()

Timestamp of this frame.

.google.protobuf.Duration time_offset = 2;

Returns
TypeDescription
Duration

The timeOffset.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TextFrame.Builder newBuilderForType()
Returns
TypeDescription
TextFrame.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TextFrame.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TextFrame.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TextFrame.Builder toBuilder()
Returns
TypeDescription
TextFrame.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException