public static final class Document.Page.ImageQualityScores.DetectedDefect extends GeneratedMessageV3 implements Document.Page.ImageQualityScores.DetectedDefectOrBuilder
Image Quality Defects
Protobuf type
google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect
Static Fields
CONFIDENCE_FIELD_NUMBER
public static final int CONFIDENCE_FIELD_NUMBER
Field Value
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Document.Page.ImageQualityScores.DetectedDefect getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Document.Page.ImageQualityScores.DetectedDefect.Builder newBuilder()
Returns
newBuilder(Document.Page.ImageQualityScores.DetectedDefect prototype)
public static Document.Page.ImageQualityScores.DetectedDefect.Builder newBuilder(Document.Page.ImageQualityScores.DetectedDefect prototype)
Parameter
Returns
parseDelimitedFrom(InputStream input)
public static Document.Page.ImageQualityScores.DetectedDefect parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Document.Page.ImageQualityScores.DetectedDefect parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Document.Page.ImageQualityScores.DetectedDefect parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Document.Page.ImageQualityScores.DetectedDefect parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Document.Page.ImageQualityScores.DetectedDefect parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Document.Page.ImageQualityScores.DetectedDefect parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(CodedInputStream input)
public static Document.Page.ImageQualityScores.DetectedDefect parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Document.Page.ImageQualityScores.DetectedDefect parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(InputStream input)
public static Document.Page.ImageQualityScores.DetectedDefect parseFrom(InputStream input)
Parameter
Returns
Exceptions
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Document.Page.ImageQualityScores.DetectedDefect parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Document.Page.ImageQualityScores.DetectedDefect parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Document.Page.ImageQualityScores.DetectedDefect parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Document.Page.ImageQualityScores.DetectedDefect> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getConfidence()
public float getConfidence()
Confidence of detected defect. Range [0, 1]
where 1 indicates
strong confidence of that the defect exists.
float confidence = 2;
Returns
Type | Description |
float | The confidence.
|
getDefaultInstanceForType()
public Document.Page.ImageQualityScores.DetectedDefect getDefaultInstanceForType()
Returns
getParserForType()
public Parser<Document.Page.ImageQualityScores.DetectedDefect> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
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
Type | Description |
String | The type.
|
getTypeBytes()
public 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
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Document.Page.ImageQualityScores.DetectedDefect.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Document.Page.ImageQualityScores.DetectedDefect.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Document.Page.ImageQualityScores.DetectedDefect.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions