Class 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.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.v1p2beta1.TextFrame
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public TextFrame.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<TextFrame.Builder>
      • setField

        public TextFrame.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                          Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<TextFrame.Builder>
      • clearField

        public TextFrame.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<TextFrame.Builder>
      • clearOneof

        public TextFrame.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TextFrame.Builder>
      • setRepeatedField

        public TextFrame.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  int index,
                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TextFrame.Builder>
      • addRepeatedField

        public TextFrame.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TextFrame.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.v1p2beta1.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.v1p2beta1.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.v1p2beta1.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.v1p2beta1.NormalizedBoundingPoly rotated_bounding_box = 1;
      • mergeRotatedBoundingBox

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

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

        public NormalizedBoundingPoly.Builder getRotatedBoundingBoxBuilder()
         Bounding polygon of the detected text for this frame.
         
        .google.cloud.videointelligence.v1p2beta1.NormalizedBoundingPoly rotated_bounding_box = 1;
      • 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
      • setUnknownFields

        public final TextFrame.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TextFrame.Builder>
      • mergeUnknownFields

        public final TextFrame.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TextFrame.Builder>