Class TextFrame.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TextFrame.Builder>
com.google.cloud.videointelligence.v1.TextFrame.Builder
- All Implemented Interfaces:
TextFrameOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TextFrame
public static final class TextFrame.Builder
extends com.google.protobuf.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Bounding polygon of the detected text for this frame.Timestamp of this frame.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorBounding polygon of the detected text for this frame.Bounding polygon of the detected text for this frame.Bounding polygon of the detected text for this frame.com.google.protobuf.DurationTimestamp of this frame.com.google.protobuf.Duration.BuilderTimestamp of this frame.com.google.protobuf.DurationOrBuilderTimestamp of this frame.booleanBounding polygon of the detected text for this frame.booleanTimestamp of this frame.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Bounding polygon of the detected text for this frame.mergeTimeOffset(com.google.protobuf.Duration value) Timestamp of this frame.Bounding polygon of the detected text for this frame.setRotatedBoundingBox(NormalizedBoundingPoly.Builder builderForValue) Bounding polygon of the detected text for this frame.setTimeOffset(com.google.protobuf.Duration value) Timestamp of this frame.setTimeOffset(com.google.protobuf.Duration.Builder builderForValue) Timestamp of this frame.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TextFrame.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TextFrame.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<TextFrame.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TextFrame.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TextFrame.Builder>
-
mergeFrom
public TextFrame.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TextFrame.Builder>- Throws:
IOException
-
hasRotatedBoundingBox
public boolean hasRotatedBoundingBox()Bounding polygon of the detected text for this frame.
.google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1;- Specified by:
hasRotatedBoundingBoxin interfaceTextFrameOrBuilder- Returns:
- Whether the rotatedBoundingBox field is set.
-
getRotatedBoundingBox
Bounding polygon of the detected text for this frame.
.google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1;- Specified by:
getRotatedBoundingBoxin interfaceTextFrameOrBuilder- Returns:
- The rotatedBoundingBox.
-
setRotatedBoundingBox
Bounding polygon of the detected text for this frame.
.google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1; -
setRotatedBoundingBox
Bounding polygon of the detected text for this frame.
.google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1; -
mergeRotatedBoundingBox
Bounding polygon of the detected text for this frame.
.google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1; -
clearRotatedBoundingBox
Bounding polygon of the detected text for this frame.
.google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1; -
getRotatedBoundingBoxBuilder
Bounding polygon of the detected text for this frame.
.google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1; -
getRotatedBoundingBoxOrBuilder
Bounding polygon of the detected text for this frame.
.google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1;- Specified by:
getRotatedBoundingBoxOrBuilderin interfaceTextFrameOrBuilder
-
hasTimeOffset
public boolean hasTimeOffset()Timestamp of this frame.
.google.protobuf.Duration time_offset = 2;- Specified by:
hasTimeOffsetin interfaceTextFrameOrBuilder- Returns:
- Whether the timeOffset field is set.
-
getTimeOffset
public com.google.protobuf.Duration getTimeOffset()Timestamp of this frame.
.google.protobuf.Duration time_offset = 2;- Specified by:
getTimeOffsetin interfaceTextFrameOrBuilder- Returns:
- The timeOffset.
-
setTimeOffset
Timestamp of this frame.
.google.protobuf.Duration time_offset = 2; -
setTimeOffset
Timestamp of this frame.
.google.protobuf.Duration time_offset = 2; -
mergeTimeOffset
Timestamp of this frame.
.google.protobuf.Duration time_offset = 2; -
clearTimeOffset
Timestamp of this frame.
.google.protobuf.Duration time_offset = 2; -
getTimeOffsetBuilder
public com.google.protobuf.Duration.Builder getTimeOffsetBuilder()Timestamp of this frame.
.google.protobuf.Duration time_offset = 2; -
getTimeOffsetOrBuilder
public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder()Timestamp of this frame.
.google.protobuf.Duration time_offset = 2;- Specified by:
getTimeOffsetOrBuilderin interfaceTextFrameOrBuilder
-