Class Document.Page.ImageQualityScores.Builder (2.17.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.v1beta3.Document.Page.ImageQualityScores

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.documentai.v1beta3.Document.Page.ImageQualityScores.DetectedDefect>
Returns
TypeDescription
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.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Parameter
NameDescription
valueDocument.Page.ImageQualityScores.DetectedDefect
Returns
TypeDescription
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.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Parameter
NameDescription
builderForValueDocument.Page.ImageQualityScores.DetectedDefect.Builder
Returns
TypeDescription
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.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Parameters
NameDescription
indexint
valueDocument.Page.ImageQualityScores.DetectedDefect
Returns
TypeDescription
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.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Parameters
NameDescription
indexint
builderForValueDocument.Page.ImageQualityScores.DetectedDefect.Builder
Returns
TypeDescription
Document.Page.ImageQualityScores.Builder

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Document.Page.ImageQualityScores.DetectedDefect.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Document.Page.ImageQualityScores.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Document.Page.ImageQualityScores.Builder
Overrides

build()

public Document.Page.ImageQualityScores build()
Returns
TypeDescription
Document.Page.ImageQualityScores

buildPartial()

public Document.Page.ImageQualityScores buildPartial()
Returns
TypeDescription
Document.Page.ImageQualityScores

clear()

public Document.Page.ImageQualityScores.Builder clear()
Returns
TypeDescription
Document.Page.ImageQualityScores.Builder
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
TypeDescription
Document.Page.ImageQualityScores.Builder

clearField(Descriptors.FieldDescriptor field)

public Document.Page.ImageQualityScores.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Document.Page.ImageQualityScores.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Document.Page.ImageQualityScores.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Document.Page.ImageQualityScores.Builder

This builder for chaining.

clone()

public Document.Page.ImageQualityScores.Builder clone()
Returns
TypeDescription
Document.Page.ImageQualityScores.Builder
Overrides

getDefaultInstanceForType()

public Document.Page.ImageQualityScores getDefaultInstanceForType()
Returns
TypeDescription
Document.Page.ImageQualityScores

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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
NameDescription
indexint
Returns
TypeDescription
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.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Document.Page.ImageQualityScores.DetectedDefect.Builder

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
TypeDescription
List<Builder>

getDetectedDefectsCount()

public int getDetectedDefectsCount()

A list of detected defects.

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

Returns
TypeDescription
int

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
TypeDescription
List<DetectedDefect>

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
NameDescription
indexint
Returns
TypeDescription
Document.Page.ImageQualityScores.DetectedDefectOrBuilder

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
TypeDescription
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
TypeDescription
float

The qualityScore.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Document.Page.ImageQualityScores other)

public Document.Page.ImageQualityScores.Builder mergeFrom(Document.Page.ImageQualityScores other)
Parameter
NameDescription
otherDocument.Page.ImageQualityScores
Returns
TypeDescription
Document.Page.ImageQualityScores.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Document.Page.ImageQualityScores.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Document.Page.ImageQualityScores.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Document.Page.ImageQualityScores.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Document.Page.ImageQualityScores.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Document.Page.ImageQualityScores.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Parameters
NameDescription
indexint
valueDocument.Page.ImageQualityScores.DetectedDefect
Returns
TypeDescription
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.v1beta3.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2;

Parameters
NameDescription
indexint
builderForValueDocument.Page.ImageQualityScores.DetectedDefect.Builder
Returns
TypeDescription
Document.Page.ImageQualityScores.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Document.Page.ImageQualityScores.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuefloat

The qualityScore to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Document.Page.ImageQualityScores.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Document.Page.ImageQualityScores.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Document.Page.ImageQualityScores.Builder
Overrides