Interface Document.Page.ImageQualityScores.DetectedDefectOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Document.Page.ImageQualityScores.DetectedDefect, Document.Page.ImageQualityScores.DetectedDefect.Builder
Enclosing class:
Document.Page.ImageQualityScores

public static interface Document.Page.ImageQualityScores.DetectedDefectOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Confidence of detected defect.
    Name of the defect type.
    com.google.protobuf.ByteString
    Name of the defect type.

    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

    • getType

      String getType()
       Name of the defect type. Supported values are:
      
       - `quality/defect_blurry`
       - `quality/defect_noisy`
       - `quality/defect_dark`
       - `quality/defect_faint`
       - `quality/defect_text_too_small`
       - `quality/defect_document_cutoff`
       - `quality/defect_text_cutoff`
       - `quality/defect_glare`
       
      string type = 1;
      Returns:
      The type.
    • getTypeBytes

      com.google.protobuf.ByteString getTypeBytes()
       Name of the defect type. Supported values are:
      
       - `quality/defect_blurry`
       - `quality/defect_noisy`
       - `quality/defect_dark`
       - `quality/defect_faint`
       - `quality/defect_text_too_small`
       - `quality/defect_document_cutoff`
       - `quality/defect_text_cutoff`
       - `quality/defect_glare`
       
      string type = 1;
      Returns:
      The bytes for type.
    • getConfidence

      float getConfidence()
       Confidence of detected defect. Range `[0, 1]` where `1` indicates
       strong confidence that the defect exists.
       
      float confidence = 2;
      Returns:
      The confidence.