Class Document.Page.ImageQualityScores.Builder (2.49.0)

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.v1.Document.Page.ImageQualityScores

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

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.v1.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect>
Returns
Type Description
Document.Page.ImageQualityScores.Builder

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.v1.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Parameter
Name Description
value Document.Page.ImageQualityScores.DetectedDefect
Returns
Type Description
Document.Page.ImageQualityScores.Builder

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.v1.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Parameter
Name Description
builderForValue Document.Page.ImageQualityScores.DetectedDefect.Builder
Returns
Type Description
Document.Page.ImageQualityScores.Builder

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.v1.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Parameters
Name Description
index int
value Document.Page.ImageQualityScores.DetectedDefect
Returns
Type Description
Document.Page.ImageQualityScores.Builder

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.v1.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Parameters
Name Description
index int
builderForValue Document.Page.ImageQualityScores.DetectedDefect.Builder
Returns
Type Description
Document.Page.ImageQualityScores.Builder

addDetectedDefectsBuilder()

public Document.Page.ImageQualityScores.DetectedDefect.Builder addDetectedDefectsBuilder()

A list of detected defects.

repeated .google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Returns
Type Description
Document.Page.ImageQualityScores.DetectedDefect.Builder

addDetectedDefectsBuilder(int index)

public Document.Page.ImageQualityScores.DetectedDefect.Builder addDetectedDefectsBuilder(int index)

A list of detected defects.

repeated .google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Parameter
Name Description
index int
Returns
Type Description
Document.Page.ImageQualityScores.DetectedDefect.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Document.Page.ImageQualityScores.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Document.Page.ImageQualityScores.Builder
Overrides

build()

public Document.Page.ImageQualityScores build()
Returns
Type Description
Document.Page.ImageQualityScores

buildPartial()

public Document.Page.ImageQualityScores buildPartial()
Returns
Type Description
Document.Page.ImageQualityScores

clear()

public Document.Page.ImageQualityScores.Builder clear()
Returns
Type Description
Document.Page.ImageQualityScores.Builder
Overrides

clearDetectedDefects()

public Document.Page.ImageQualityScores.Builder clearDetectedDefects()

A list of detected defects.

repeated .google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Returns
Type Description
Document.Page.ImageQualityScores.Builder

clearField(Descriptors.FieldDescriptor field)

public Document.Page.ImageQualityScores.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Document.Page.ImageQualityScores.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Document.Page.ImageQualityScores.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Document.Page.ImageQualityScores.Builder
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
Type Description
Document.Page.ImageQualityScores.Builder

This builder for chaining.

clone()

public Document.Page.ImageQualityScores.Builder clone()
Returns
Type Description
Document.Page.ImageQualityScores.Builder
Overrides

getDefaultInstanceForType()

public Document.Page.ImageQualityScores getDefaultInstanceForType()
Returns
Type Description
Document.Page.ImageQualityScores

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDetectedDefects(int index)

public Document.Page.ImageQualityScores.DetectedDefect getDetectedDefects(int index)

A list of detected defects.

repeated .google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Parameter
Name Description
index int
Returns
Type Description
Document.Page.ImageQualityScores.DetectedDefect

getDetectedDefectsBuilder(int index)

public Document.Page.ImageQualityScores.DetectedDefect.Builder getDetectedDefectsBuilder(int index)

A list of detected defects.

repeated .google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Parameter
Name Description
index int
Returns
Type Description
Document.Page.ImageQualityScores.DetectedDefect.Builder

getDetectedDefectsBuilderList()

public List<Document.Page.ImageQualityScores.DetectedDefect.Builder> getDetectedDefectsBuilderList()

A list of detected defects.

repeated .google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Returns
Type Description
List<Builder>

getDetectedDefectsCount()

public int getDetectedDefectsCount()

A list of detected defects.

repeated .google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Returns
Type Description
int

getDetectedDefectsList()

public List<Document.Page.ImageQualityScores.DetectedDefect> getDetectedDefectsList()

A list of detected defects.

repeated .google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Returns
Type Description
List<DetectedDefect>

getDetectedDefectsOrBuilder(int index)

public Document.Page.ImageQualityScores.DetectedDefectOrBuilder getDetectedDefectsOrBuilder(int index)

A list of detected defects.

repeated .google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Parameter
Name Description
index int
Returns
Type Description
Document.Page.ImageQualityScores.DetectedDefectOrBuilder

getDetectedDefectsOrBuilderList()

public List<? extends Document.Page.ImageQualityScores.DetectedDefectOrBuilder> getDetectedDefectsOrBuilderList()

A list of detected defects.

repeated .google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Returns
Type Description
List<? extends com.google.cloud.documentai.v1.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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Document.Page.ImageQualityScores other)

public Document.Page.ImageQualityScores.Builder mergeFrom(Document.Page.ImageQualityScores other)
Parameter
Name Description
other Document.Page.ImageQualityScores
Returns
Type Description
Document.Page.ImageQualityScores.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Document.Page.ImageQualityScores.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Document.Page.ImageQualityScores.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Document.Page.ImageQualityScores.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Document.Page.ImageQualityScores.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Document.Page.ImageQualityScores.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Document.Page.ImageQualityScores.Builder
Overrides

removeDetectedDefects(int index)

public Document.Page.ImageQualityScores.Builder removeDetectedDefects(int index)

A list of detected defects.

repeated .google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Parameter
Name Description
index int
Returns
Type Description
Document.Page.ImageQualityScores.Builder

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.v1.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Parameters
Name Description
index int
value Document.Page.ImageQualityScores.DetectedDefect
Returns
Type Description
Document.Page.ImageQualityScores.Builder

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.v1.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Parameters
Name Description
index int
builderForValue Document.Page.ImageQualityScores.DetectedDefect.Builder
Returns
Type Description
Document.Page.ImageQualityScores.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Document.Page.ImageQualityScores.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Document.Page.ImageQualityScores.Builder
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
Type Description
Document.Page.ImageQualityScores.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Document.Page.ImageQualityScores.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Document.Page.ImageQualityScores.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Document.Page.ImageQualityScores.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Document.Page.ImageQualityScores.Builder
Overrides