Interface TextExtractionAnnotationOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
TextExtractionAnnotation, TextExtractionAnnotation.Builder

@Generated public interface TextExtractionAnnotationOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
     
    float
    Output only.
    An entity annotation will set this, which is the part of the original text to which the annotation pertains.
    An entity annotation will set this, which is the part of the original text to which the annotation pertains.
    boolean
    An entity annotation will set this, which is the part of the original text to which the annotation pertains.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasTextSegment

      boolean hasTextSegment()
       An entity annotation will set this, which is the part of the original
       text to which the annotation pertains.
       
      .google.cloud.automl.v1.TextSegment text_segment = 3;
      Returns:
      Whether the textSegment field is set.
    • getTextSegment

      TextSegment getTextSegment()
       An entity annotation will set this, which is the part of the original
       text to which the annotation pertains.
       
      .google.cloud.automl.v1.TextSegment text_segment = 3;
      Returns:
      The textSegment.
    • getTextSegmentOrBuilder

      TextSegmentOrBuilder getTextSegmentOrBuilder()
       An entity annotation will set this, which is the part of the original
       text to which the annotation pertains.
       
      .google.cloud.automl.v1.TextSegment text_segment = 3;
    • getScore

      float getScore()
       Output only. A confidence estimate between 0.0 and 1.0. A higher value
       means greater confidence in correctness of the annotation.
       
      float score = 1;
      Returns:
      The score.
    • getAnnotationCase