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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TextFrame.Builder>
    • clear

      public TextFrame.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<TextFrame.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TextFrame.Builder>
    • getDefaultInstanceForType

      public TextFrame getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TextFrame build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TextFrame buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TextFrame.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TextFrame.Builder>
    • mergeFrom

      public TextFrame.Builder mergeFrom(TextFrame other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasRotatedBoundingBox in interface TextFrameOrBuilder
      Returns:
      Whether the rotatedBoundingBox field is set.
    • getRotatedBoundingBox

      public NormalizedBoundingPoly getRotatedBoundingBox()
       Bounding polygon of the detected text for this frame.
       
      .google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1;
      Specified by:
      getRotatedBoundingBox in interface TextFrameOrBuilder
      Returns:
      The rotatedBoundingBox.
    • setRotatedBoundingBox

      public TextFrame.Builder setRotatedBoundingBox(NormalizedBoundingPoly value)
       Bounding polygon of the detected text for this frame.
       
      .google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1;
    • setRotatedBoundingBox

      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;
    • mergeRotatedBoundingBox

      public TextFrame.Builder mergeRotatedBoundingBox(NormalizedBoundingPoly value)
       Bounding polygon of the detected text for this frame.
       
      .google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1;
    • clearRotatedBoundingBox

      public TextFrame.Builder clearRotatedBoundingBox()
       Bounding polygon of the detected text for this frame.
       
      .google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1;
    • getRotatedBoundingBoxBuilder

      public NormalizedBoundingPoly.Builder getRotatedBoundingBoxBuilder()
       Bounding polygon of the detected text for this frame.
       
      .google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1;
    • getRotatedBoundingBoxOrBuilder

      public NormalizedBoundingPolyOrBuilder getRotatedBoundingBoxOrBuilder()
       Bounding polygon of the detected text for this frame.
       
      .google.cloud.videointelligence.v1.NormalizedBoundingPoly rotated_bounding_box = 1;
      Specified by:
      getRotatedBoundingBoxOrBuilder in interface TextFrameOrBuilder
    • hasTimeOffset

      public boolean hasTimeOffset()
       Timestamp of this frame.
       
      .google.protobuf.Duration time_offset = 2;
      Specified by:
      hasTimeOffset in interface TextFrameOrBuilder
      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:
      getTimeOffset in interface TextFrameOrBuilder
      Returns:
      The timeOffset.
    • setTimeOffset

      public TextFrame.Builder setTimeOffset(com.google.protobuf.Duration value)
       Timestamp of this frame.
       
      .google.protobuf.Duration time_offset = 2;
    • setTimeOffset

      public TextFrame.Builder setTimeOffset(com.google.protobuf.Duration.Builder builderForValue)
       Timestamp of this frame.
       
      .google.protobuf.Duration time_offset = 2;
    • mergeTimeOffset

      public TextFrame.Builder mergeTimeOffset(com.google.protobuf.Duration value)
       Timestamp of this frame.
       
      .google.protobuf.Duration time_offset = 2;
    • clearTimeOffset

      public TextFrame.Builder 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:
      getTimeOffsetOrBuilder in interface TextFrameOrBuilder