Class QaScorecardResult.ScoreSource.Builder (2.54.0)

public static final class QaScorecardResult.ScoreSource.Builder extends GeneratedMessageV3.Builder<QaScorecardResult.ScoreSource.Builder> implements QaScorecardResult.ScoreSourceOrBuilder

A scorecard result may have multiple sets of scores from varying sources, one of which becomes the "main" answer above. A ScoreSource represents each individual set of scores.

Protobuf type google.cloud.contactcenterinsights.v1.QaScorecardResult.ScoreSource

Static Methods

getDescriptor()

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

Methods

addAllQaTagResults(Iterable<? extends QaScorecardResult.QaTagResult> values)

public QaScorecardResult.ScoreSource.Builder addAllQaTagResults(Iterable<? extends QaScorecardResult.QaTagResult> values)

Collection of tags and their scores.

repeated .google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResult qa_tag_results = 5;

Parameter
Name Description
values Iterable<? extends com.google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResult>
Returns
Type Description
QaScorecardResult.ScoreSource.Builder

addQaTagResults(QaScorecardResult.QaTagResult value)

public QaScorecardResult.ScoreSource.Builder addQaTagResults(QaScorecardResult.QaTagResult value)

Collection of tags and their scores.

repeated .google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResult qa_tag_results = 5;

Parameter
Name Description
value QaScorecardResult.QaTagResult
Returns
Type Description
QaScorecardResult.ScoreSource.Builder

addQaTagResults(QaScorecardResult.QaTagResult.Builder builderForValue)

public QaScorecardResult.ScoreSource.Builder addQaTagResults(QaScorecardResult.QaTagResult.Builder builderForValue)

Collection of tags and their scores.

repeated .google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResult qa_tag_results = 5;

Parameter
Name Description
builderForValue QaScorecardResult.QaTagResult.Builder
Returns
Type Description
QaScorecardResult.ScoreSource.Builder

addQaTagResults(int index, QaScorecardResult.QaTagResult value)

public QaScorecardResult.ScoreSource.Builder addQaTagResults(int index, QaScorecardResult.QaTagResult value)

Collection of tags and their scores.

repeated .google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResult qa_tag_results = 5;

Parameters
Name Description
index int
value QaScorecardResult.QaTagResult
Returns
Type Description
QaScorecardResult.ScoreSource.Builder

addQaTagResults(int index, QaScorecardResult.QaTagResult.Builder builderForValue)

public QaScorecardResult.ScoreSource.Builder addQaTagResults(int index, QaScorecardResult.QaTagResult.Builder builderForValue)

Collection of tags and their scores.

repeated .google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResult qa_tag_results = 5;

Parameters
Name Description
index int
builderForValue QaScorecardResult.QaTagResult.Builder
Returns
Type Description
QaScorecardResult.ScoreSource.Builder

addQaTagResultsBuilder()

public QaScorecardResult.QaTagResult.Builder addQaTagResultsBuilder()

Collection of tags and their scores.

repeated .google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResult qa_tag_results = 5;

Returns
Type Description
QaScorecardResult.QaTagResult.Builder

addQaTagResultsBuilder(int index)

public QaScorecardResult.QaTagResult.Builder addQaTagResultsBuilder(int index)

Collection of tags and their scores.

repeated .google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResult qa_tag_results = 5;

Parameter
Name Description
index int
Returns
Type Description
QaScorecardResult.QaTagResult.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QaScorecardResult.ScoreSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
QaScorecardResult.ScoreSource.Builder
Overrides

build()

public QaScorecardResult.ScoreSource build()
Returns
Type Description
QaScorecardResult.ScoreSource

buildPartial()

public QaScorecardResult.ScoreSource buildPartial()
Returns
Type Description
QaScorecardResult.ScoreSource

clear()

public QaScorecardResult.ScoreSource.Builder clear()
Returns
Type Description
QaScorecardResult.ScoreSource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public QaScorecardResult.ScoreSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
QaScorecardResult.ScoreSource.Builder
Overrides

clearNormalizedScore()

public QaScorecardResult.ScoreSource.Builder clearNormalizedScore()

The normalized score, which is the score divided by the potential score.

optional double normalized_score = 4;

Returns
Type Description
QaScorecardResult.ScoreSource.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public QaScorecardResult.ScoreSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
QaScorecardResult.ScoreSource.Builder
Overrides

clearPotentialScore()

public QaScorecardResult.ScoreSource.Builder clearPotentialScore()

The maximum potential overall score of the scorecard. Any questions answered using na_value are excluded from this calculation.

optional double potential_score = 3;

Returns
Type Description
QaScorecardResult.ScoreSource.Builder

This builder for chaining.

clearQaTagResults()

public QaScorecardResult.ScoreSource.Builder clearQaTagResults()

Collection of tags and their scores.

repeated .google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResult qa_tag_results = 5;

Returns
Type Description
QaScorecardResult.ScoreSource.Builder

clearScore()

public QaScorecardResult.ScoreSource.Builder clearScore()

The overall numerical score of the result.

optional double score = 2;

Returns
Type Description
QaScorecardResult.ScoreSource.Builder

This builder for chaining.

clearSourceType()

public QaScorecardResult.ScoreSource.Builder clearSourceType()

What created the score.

.google.cloud.contactcenterinsights.v1.QaScorecardResult.ScoreSource.SourceType source_type = 1;

Returns
Type Description
QaScorecardResult.ScoreSource.Builder

This builder for chaining.

clone()

public QaScorecardResult.ScoreSource.Builder clone()
Returns
Type Description
QaScorecardResult.ScoreSource.Builder
Overrides

getDefaultInstanceForType()

public QaScorecardResult.ScoreSource getDefaultInstanceForType()
Returns
Type Description
QaScorecardResult.ScoreSource

getDescriptorForType()

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

getNormalizedScore()

public double getNormalizedScore()

The normalized score, which is the score divided by the potential score.

optional double normalized_score = 4;

Returns
Type Description
double

The normalizedScore.

getPotentialScore()

public double getPotentialScore()

The maximum potential overall score of the scorecard. Any questions answered using na_value are excluded from this calculation.

optional double potential_score = 3;

Returns
Type Description
double

The potentialScore.

getQaTagResults(int index)

public QaScorecardResult.QaTagResult getQaTagResults(int index)

Collection of tags and their scores.

repeated .google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResult qa_tag_results = 5;

Parameter
Name Description
index int
Returns
Type Description
QaScorecardResult.QaTagResult

getQaTagResultsBuilder(int index)

public QaScorecardResult.QaTagResult.Builder getQaTagResultsBuilder(int index)

Collection of tags and their scores.

repeated .google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResult qa_tag_results = 5;

Parameter
Name Description
index int
Returns
Type Description
QaScorecardResult.QaTagResult.Builder

getQaTagResultsBuilderList()

public List<QaScorecardResult.QaTagResult.Builder> getQaTagResultsBuilderList()

Collection of tags and their scores.

repeated .google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResult qa_tag_results = 5;

Returns
Type Description
List<Builder>

getQaTagResultsCount()

public int getQaTagResultsCount()

Collection of tags and their scores.

repeated .google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResult qa_tag_results = 5;

Returns
Type Description
int

getQaTagResultsList()

public List<QaScorecardResult.QaTagResult> getQaTagResultsList()

Collection of tags and their scores.

repeated .google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResult qa_tag_results = 5;

Returns
Type Description
List<QaTagResult>

getQaTagResultsOrBuilder(int index)

public QaScorecardResult.QaTagResultOrBuilder getQaTagResultsOrBuilder(int index)

Collection of tags and their scores.

repeated .google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResult qa_tag_results = 5;

Parameter
Name Description
index int
Returns
Type Description
QaScorecardResult.QaTagResultOrBuilder

getQaTagResultsOrBuilderList()

public List<? extends QaScorecardResult.QaTagResultOrBuilder> getQaTagResultsOrBuilderList()

Collection of tags and their scores.

repeated .google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResult qa_tag_results = 5;

Returns
Type Description
List<? extends com.google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResultOrBuilder>

getScore()

public double getScore()

The overall numerical score of the result.

optional double score = 2;

Returns
Type Description
double

The score.

getSourceType()

public QaScorecardResult.ScoreSource.SourceType getSourceType()

What created the score.

.google.cloud.contactcenterinsights.v1.QaScorecardResult.ScoreSource.SourceType source_type = 1;

Returns
Type Description
QaScorecardResult.ScoreSource.SourceType

The sourceType.

getSourceTypeValue()

public int getSourceTypeValue()

What created the score.

.google.cloud.contactcenterinsights.v1.QaScorecardResult.ScoreSource.SourceType source_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for sourceType.

hasNormalizedScore()

public boolean hasNormalizedScore()

The normalized score, which is the score divided by the potential score.

optional double normalized_score = 4;

Returns
Type Description
boolean

Whether the normalizedScore field is set.

hasPotentialScore()

public boolean hasPotentialScore()

The maximum potential overall score of the scorecard. Any questions answered using na_value are excluded from this calculation.

optional double potential_score = 3;

Returns
Type Description
boolean

Whether the potentialScore field is set.

hasScore()

public boolean hasScore()

The overall numerical score of the result.

optional double score = 2;

Returns
Type Description
boolean

Whether the score field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(QaScorecardResult.ScoreSource other)

public QaScorecardResult.ScoreSource.Builder mergeFrom(QaScorecardResult.ScoreSource other)
Parameter
Name Description
other QaScorecardResult.ScoreSource
Returns
Type Description
QaScorecardResult.ScoreSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public QaScorecardResult.ScoreSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QaScorecardResult.ScoreSource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public QaScorecardResult.ScoreSource.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
QaScorecardResult.ScoreSource.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QaScorecardResult.ScoreSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QaScorecardResult.ScoreSource.Builder
Overrides

removeQaTagResults(int index)

public QaScorecardResult.ScoreSource.Builder removeQaTagResults(int index)

Collection of tags and their scores.

repeated .google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResult qa_tag_results = 5;

Parameter
Name Description
index int
Returns
Type Description
QaScorecardResult.ScoreSource.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public QaScorecardResult.ScoreSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
QaScorecardResult.ScoreSource.Builder
Overrides

setNormalizedScore(double value)

public QaScorecardResult.ScoreSource.Builder setNormalizedScore(double value)

The normalized score, which is the score divided by the potential score.

optional double normalized_score = 4;

Parameter
Name Description
value double

The normalizedScore to set.

Returns
Type Description
QaScorecardResult.ScoreSource.Builder

This builder for chaining.

setPotentialScore(double value)

public QaScorecardResult.ScoreSource.Builder setPotentialScore(double value)

The maximum potential overall score of the scorecard. Any questions answered using na_value are excluded from this calculation.

optional double potential_score = 3;

Parameter
Name Description
value double

The potentialScore to set.

Returns
Type Description
QaScorecardResult.ScoreSource.Builder

This builder for chaining.

setQaTagResults(int index, QaScorecardResult.QaTagResult value)

public QaScorecardResult.ScoreSource.Builder setQaTagResults(int index, QaScorecardResult.QaTagResult value)

Collection of tags and their scores.

repeated .google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResult qa_tag_results = 5;

Parameters
Name Description
index int
value QaScorecardResult.QaTagResult
Returns
Type Description
QaScorecardResult.ScoreSource.Builder

setQaTagResults(int index, QaScorecardResult.QaTagResult.Builder builderForValue)

public QaScorecardResult.ScoreSource.Builder setQaTagResults(int index, QaScorecardResult.QaTagResult.Builder builderForValue)

Collection of tags and their scores.

repeated .google.cloud.contactcenterinsights.v1.QaScorecardResult.QaTagResult qa_tag_results = 5;

Parameters
Name Description
index int
builderForValue QaScorecardResult.QaTagResult.Builder
Returns
Type Description
QaScorecardResult.ScoreSource.Builder

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

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

setScore(double value)

public QaScorecardResult.ScoreSource.Builder setScore(double value)

The overall numerical score of the result.

optional double score = 2;

Parameter
Name Description
value double

The score to set.

Returns
Type Description
QaScorecardResult.ScoreSource.Builder

This builder for chaining.

setSourceType(QaScorecardResult.ScoreSource.SourceType value)

public QaScorecardResult.ScoreSource.Builder setSourceType(QaScorecardResult.ScoreSource.SourceType value)

What created the score.

.google.cloud.contactcenterinsights.v1.QaScorecardResult.ScoreSource.SourceType source_type = 1;

Parameter
Name Description
value QaScorecardResult.ScoreSource.SourceType

The sourceType to set.

Returns
Type Description
QaScorecardResult.ScoreSource.Builder

This builder for chaining.

setSourceTypeValue(int value)

public QaScorecardResult.ScoreSource.Builder setSourceTypeValue(int value)

What created the score.

.google.cloud.contactcenterinsights.v1.QaScorecardResult.ScoreSource.SourceType source_type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for sourceType to set.

Returns
Type Description
QaScorecardResult.ScoreSource.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final QaScorecardResult.ScoreSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QaScorecardResult.ScoreSource.Builder
Overrides