Interface TextExtractionAnnotationOrBuilder

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

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      TextExtractionAnnotation.AnnotationCase getAnnotationCase()  
      float getScore()
      Output only.
      TextSegment getTextSegment()
      An entity annotation will set this, which is the part of the original text to which the annotation pertains.
      TextSegmentOrBuilder getTextSegmentOrBuilder()
      An entity annotation will set this, which is the part of the original text to which the annotation pertains.
      boolean hasTextSegment()
      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 Detail

      • 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.v1beta1.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.v1beta1.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.v1beta1.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.