Class TextSegment.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TextSegment.Builder>
com.google.cloud.videointelligence.v1.TextSegment.Builder
All Implemented Interfaces:
TextSegmentOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TextSegment

public static final class TextSegment.Builder extends com.google.protobuf.GeneratedMessage.Builder<TextSegment.Builder> implements TextSegmentOrBuilder
 Video segment level annotation results for text detection.
 
Protobuf type google.cloud.videointelligence.v1.TextSegment
  • 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<TextSegment.Builder>
    • clear

      public TextSegment.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<TextSegment.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<TextSegment.Builder>
    • getDefaultInstanceForType

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

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

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

      public TextSegment.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<TextSegment.Builder>
    • mergeFrom

      public TextSegment.Builder mergeFrom(TextSegment other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<TextSegment.Builder>
    • mergeFrom

      public TextSegment.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<TextSegment.Builder>
      Throws:
      IOException
    • hasSegment

      public boolean hasSegment()
       Video segment where a text snippet was detected.
       
      .google.cloud.videointelligence.v1.VideoSegment segment = 1;
      Specified by:
      hasSegment in interface TextSegmentOrBuilder
      Returns:
      Whether the segment field is set.
    • getSegment

      public VideoSegment getSegment()
       Video segment where a text snippet was detected.
       
      .google.cloud.videointelligence.v1.VideoSegment segment = 1;
      Specified by:
      getSegment in interface TextSegmentOrBuilder
      Returns:
      The segment.
    • setSegment

      public TextSegment.Builder setSegment(VideoSegment value)
       Video segment where a text snippet was detected.
       
      .google.cloud.videointelligence.v1.VideoSegment segment = 1;
    • setSegment

      public TextSegment.Builder setSegment(VideoSegment.Builder builderForValue)
       Video segment where a text snippet was detected.
       
      .google.cloud.videointelligence.v1.VideoSegment segment = 1;
    • mergeSegment

      public TextSegment.Builder mergeSegment(VideoSegment value)
       Video segment where a text snippet was detected.
       
      .google.cloud.videointelligence.v1.VideoSegment segment = 1;
    • clearSegment

      public TextSegment.Builder clearSegment()
       Video segment where a text snippet was detected.
       
      .google.cloud.videointelligence.v1.VideoSegment segment = 1;
    • getSegmentBuilder

      public VideoSegment.Builder getSegmentBuilder()
       Video segment where a text snippet was detected.
       
      .google.cloud.videointelligence.v1.VideoSegment segment = 1;
    • getSegmentOrBuilder

      public VideoSegmentOrBuilder getSegmentOrBuilder()
       Video segment where a text snippet was detected.
       
      .google.cloud.videointelligence.v1.VideoSegment segment = 1;
      Specified by:
      getSegmentOrBuilder in interface TextSegmentOrBuilder
    • getConfidence

      public float getConfidence()
       Confidence for the track of detected text. It is calculated as the highest
       over all frames where OCR detected text appears.
       
      float confidence = 2;
      Specified by:
      getConfidence in interface TextSegmentOrBuilder
      Returns:
      The confidence.
    • setConfidence

      public TextSegment.Builder setConfidence(float value)
       Confidence for the track of detected text. It is calculated as the highest
       over all frames where OCR detected text appears.
       
      float confidence = 2;
      Parameters:
      value - The confidence to set.
      Returns:
      This builder for chaining.
    • clearConfidence

      public TextSegment.Builder clearConfidence()
       Confidence for the track of detected text. It is calculated as the highest
       over all frames where OCR detected text appears.
       
      float confidence = 2;
      Returns:
      This builder for chaining.
    • getFramesList

      public List<TextFrame> getFramesList()
       Information related to the frames where OCR detected text appears.
       
      repeated .google.cloud.videointelligence.v1.TextFrame frames = 3;
      Specified by:
      getFramesList in interface TextSegmentOrBuilder
    • getFramesCount

      public int getFramesCount()
       Information related to the frames where OCR detected text appears.
       
      repeated .google.cloud.videointelligence.v1.TextFrame frames = 3;
      Specified by:
      getFramesCount in interface TextSegmentOrBuilder
    • getFrames

      public TextFrame getFrames(int index)
       Information related to the frames where OCR detected text appears.
       
      repeated .google.cloud.videointelligence.v1.TextFrame frames = 3;
      Specified by:
      getFrames in interface TextSegmentOrBuilder
    • setFrames

      public TextSegment.Builder setFrames(int index, TextFrame value)
       Information related to the frames where OCR detected text appears.
       
      repeated .google.cloud.videointelligence.v1.TextFrame frames = 3;
    • setFrames

      public TextSegment.Builder setFrames(int index, TextFrame.Builder builderForValue)
       Information related to the frames where OCR detected text appears.
       
      repeated .google.cloud.videointelligence.v1.TextFrame frames = 3;
    • addFrames

      public TextSegment.Builder addFrames(TextFrame value)
       Information related to the frames where OCR detected text appears.
       
      repeated .google.cloud.videointelligence.v1.TextFrame frames = 3;
    • addFrames

      public TextSegment.Builder addFrames(int index, TextFrame value)
       Information related to the frames where OCR detected text appears.
       
      repeated .google.cloud.videointelligence.v1.TextFrame frames = 3;
    • addFrames

      public TextSegment.Builder addFrames(TextFrame.Builder builderForValue)
       Information related to the frames where OCR detected text appears.
       
      repeated .google.cloud.videointelligence.v1.TextFrame frames = 3;
    • addFrames

      public TextSegment.Builder addFrames(int index, TextFrame.Builder builderForValue)
       Information related to the frames where OCR detected text appears.
       
      repeated .google.cloud.videointelligence.v1.TextFrame frames = 3;
    • addAllFrames

      public TextSegment.Builder addAllFrames(Iterable<? extends TextFrame> values)
       Information related to the frames where OCR detected text appears.
       
      repeated .google.cloud.videointelligence.v1.TextFrame frames = 3;
    • clearFrames

      public TextSegment.Builder clearFrames()
       Information related to the frames where OCR detected text appears.
       
      repeated .google.cloud.videointelligence.v1.TextFrame frames = 3;
    • removeFrames

      public TextSegment.Builder removeFrames(int index)
       Information related to the frames where OCR detected text appears.
       
      repeated .google.cloud.videointelligence.v1.TextFrame frames = 3;
    • getFramesBuilder

      public TextFrame.Builder getFramesBuilder(int index)
       Information related to the frames where OCR detected text appears.
       
      repeated .google.cloud.videointelligence.v1.TextFrame frames = 3;
    • getFramesOrBuilder

      public TextFrameOrBuilder getFramesOrBuilder(int index)
       Information related to the frames where OCR detected text appears.
       
      repeated .google.cloud.videointelligence.v1.TextFrame frames = 3;
      Specified by:
      getFramesOrBuilder in interface TextSegmentOrBuilder
    • getFramesOrBuilderList

      public List<? extends TextFrameOrBuilder> getFramesOrBuilderList()
       Information related to the frames where OCR detected text appears.
       
      repeated .google.cloud.videointelligence.v1.TextFrame frames = 3;
      Specified by:
      getFramesOrBuilderList in interface TextSegmentOrBuilder
    • addFramesBuilder

      public TextFrame.Builder addFramesBuilder()
       Information related to the frames where OCR detected text appears.
       
      repeated .google.cloud.videointelligence.v1.TextFrame frames = 3;
    • addFramesBuilder

      public TextFrame.Builder addFramesBuilder(int index)
       Information related to the frames where OCR detected text appears.
       
      repeated .google.cloud.videointelligence.v1.TextFrame frames = 3;
    • getFramesBuilderList

      public List<TextFrame.Builder> getFramesBuilderList()
       Information related to the frames where OCR detected text appears.
       
      repeated .google.cloud.videointelligence.v1.TextFrame frames = 3;