public static final class Document.Page.ImageQualityScores.Builder extends GeneratedMessageV3.Builder<Document.Page.ImageQualityScores.Builder> implements Document.Page.ImageQualityScoresOrBuilder
Image Quality Scores for the page image
Protobuf type google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllDetectedDefects(Iterable<? extends Document.Page.ImageQualityScores.DetectedDefect> values)
public Document.Page.ImageQualityScores.Builder addAllDetectedDefects(Iterable<? extends Document.Page.ImageQualityScores.DetectedDefect> values)
A list of detected defects.
repeated .google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect>
|
Returns
addDetectedDefects(Document.Page.ImageQualityScores.DetectedDefect value)
public Document.Page.ImageQualityScores.Builder addDetectedDefects(Document.Page.ImageQualityScores.DetectedDefect value)
A list of detected defects.
repeated .google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;
Parameter
Returns
addDetectedDefects(Document.Page.ImageQualityScores.DetectedDefect.Builder builderForValue)
public Document.Page.ImageQualityScores.Builder addDetectedDefects(Document.Page.ImageQualityScores.DetectedDefect.Builder builderForValue)
A list of detected defects.
repeated .google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;
Parameter
Returns
addDetectedDefects(int index, Document.Page.ImageQualityScores.DetectedDefect value)
public Document.Page.ImageQualityScores.Builder addDetectedDefects(int index, Document.Page.ImageQualityScores.DetectedDefect value)
A list of detected defects.
repeated .google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;
Parameters
Returns
addDetectedDefects(int index, Document.Page.ImageQualityScores.DetectedDefect.Builder builderForValue)
public Document.Page.ImageQualityScores.Builder addDetectedDefects(int index, Document.Page.ImageQualityScores.DetectedDefect.Builder builderForValue)
A list of detected defects.
repeated .google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;
Parameters
Returns
addDetectedDefectsBuilder()
public Document.Page.ImageQualityScores.DetectedDefect.Builder addDetectedDefectsBuilder()
A list of detected defects.
repeated .google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;
Returns
addDetectedDefectsBuilder(int index)
public Document.Page.ImageQualityScores.DetectedDefect.Builder addDetectedDefectsBuilder(int index)
A list of detected defects.
repeated .google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Document.Page.ImageQualityScores.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Document.Page.ImageQualityScores build()
Returns
buildPartial()
public Document.Page.ImageQualityScores buildPartial()
Returns
clear()
public Document.Page.ImageQualityScores.Builder clear()
Returns
Overrides
clearDetectedDefects()
public Document.Page.ImageQualityScores.Builder clearDetectedDefects()
A list of detected defects.
repeated .google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public Document.Page.ImageQualityScores.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Document.Page.ImageQualityScores.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearQualityScore()
public Document.Page.ImageQualityScores.Builder clearQualityScore()
The overall quality score. Range [0, 1]
where 1 is perfect quality.
float quality_score = 1;
Returns
clone()
public Document.Page.ImageQualityScores.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Document.Page.ImageQualityScores getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getDetectedDefects(int index)
public Document.Page.ImageQualityScores.DetectedDefect getDetectedDefects(int index)
A list of detected defects.
repeated .google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;
Parameter
Returns
getDetectedDefectsBuilder(int index)
public Document.Page.ImageQualityScores.DetectedDefect.Builder getDetectedDefectsBuilder(int index)
A list of detected defects.
repeated .google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;
Parameter
Returns
getDetectedDefectsBuilderList()
public List<Document.Page.ImageQualityScores.DetectedDefect.Builder> getDetectedDefectsBuilderList()
A list of detected defects.
repeated .google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;
Returns
getDetectedDefectsCount()
public int getDetectedDefectsCount()
A list of detected defects.
repeated .google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;
Returns
getDetectedDefectsList()
public List<Document.Page.ImageQualityScores.DetectedDefect> getDetectedDefectsList()
A list of detected defects.
repeated .google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;
Returns
getDetectedDefectsOrBuilder(int index)
public Document.Page.ImageQualityScores.DetectedDefectOrBuilder getDetectedDefectsOrBuilder(int index)
A list of detected defects.
repeated .google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;
Parameter
Returns
getDetectedDefectsOrBuilderList()
public List<? extends Document.Page.ImageQualityScores.DetectedDefectOrBuilder> getDetectedDefectsOrBuilderList()
A list of detected defects.
repeated .google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;
Returns
Type | Description |
List<? extends com.google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefectOrBuilder> | |
getQualityScore()
public float getQualityScore()
The overall quality score. Range [0, 1]
where 1 is perfect quality.
float quality_score = 1;
Returns
Type | Description |
float | The qualityScore.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Document.Page.ImageQualityScores other)
public Document.Page.ImageQualityScores.Builder mergeFrom(Document.Page.ImageQualityScores other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Document.Page.ImageQualityScores.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Document.Page.ImageQualityScores.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Document.Page.ImageQualityScores.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeDetectedDefects(int index)
public Document.Page.ImageQualityScores.Builder removeDetectedDefects(int index)
A list of detected defects.
repeated .google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;
Parameter
Returns
setDetectedDefects(int index, Document.Page.ImageQualityScores.DetectedDefect value)
public Document.Page.ImageQualityScores.Builder setDetectedDefects(int index, Document.Page.ImageQualityScores.DetectedDefect value)
A list of detected defects.
repeated .google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;
Parameters
Returns
setDetectedDefects(int index, Document.Page.ImageQualityScores.DetectedDefect.Builder builderForValue)
public Document.Page.ImageQualityScores.Builder setDetectedDefects(int index, Document.Page.ImageQualityScores.DetectedDefect.Builder builderForValue)
A list of detected defects.
repeated .google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;
Parameters
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Document.Page.ImageQualityScores.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setQualityScore(float value)
public Document.Page.ImageQualityScores.Builder setQualityScore(float value)
The overall quality score. Range [0, 1]
where 1 is perfect quality.
float quality_score = 1;
Parameter
Name | Description |
value | float
The qualityScore to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Document.Page.ImageQualityScores.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Document.Page.ImageQualityScores.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides