Class ScoreCard.Builder (0.3.0)

public static final class ScoreCard.Builder extends GeneratedMessage.Builder<ScoreCard.Builder> implements ScoreCardOrBuilder

Score card associated with the report.

Protobuf type google.cloud.designcenter.v1.ScoreCard

Implements

ScoreCardOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public ScoreCard build()
Returns
Type Description
ScoreCard

buildPartial()

public ScoreCard buildPartial()
Returns
Type Description
ScoreCard

clear()

public ScoreCard.Builder clear()
Returns
Type Description
ScoreCard.Builder
Overrides

clearAverageScore()

public ScoreCard.Builder clearAverageScore()

Optional. Average score for similar reports.

int32 average_score = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ScoreCard.Builder

This builder for chaining.

clearMaxScore()

public ScoreCard.Builder clearMaxScore()

Required. Maximum score of the report. For example, for a score of 75/100, report_score is 75 and max_score is 100.

int32 max_score = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ScoreCard.Builder

This builder for chaining.

clearMinScoreRequired()

public ScoreCard.Builder clearMinScoreRequired()

Optional. Minimum score required to pass assessment.

int32 min_score_required = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ScoreCard.Builder

This builder for chaining.

clearReportScore()

public ScoreCard.Builder clearReportScore()

Required. Calculated score of the report.

int32 report_score = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ScoreCard.Builder

This builder for chaining.

getAverageScore()

public int getAverageScore()

Optional. Average score for similar reports.

int32 average_score = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The averageScore.

getDefaultInstanceForType()

public ScoreCard getDefaultInstanceForType()
Returns
Type Description
ScoreCard

getDescriptorForType()

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

getMaxScore()

public int getMaxScore()

Required. Maximum score of the report. For example, for a score of 75/100, report_score is 75 and max_score is 100.

int32 max_score = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The maxScore.

getMinScoreRequired()

public int getMinScoreRequired()

Optional. Minimum score required to pass assessment.

int32 min_score_required = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The minScoreRequired.

getReportScore()

public int getReportScore()

Required. Calculated score of the report.

int32 report_score = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The reportScore.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ScoreCard other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAverageScore(int value)

public ScoreCard.Builder setAverageScore(int value)

Optional. Average score for similar reports.

int32 average_score = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The averageScore to set.

Returns
Type Description
ScoreCard.Builder

This builder for chaining.

setMaxScore(int value)

public ScoreCard.Builder setMaxScore(int value)

Required. Maximum score of the report. For example, for a score of 75/100, report_score is 75 and max_score is 100.

int32 max_score = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The maxScore to set.

Returns
Type Description
ScoreCard.Builder

This builder for chaining.

setMinScoreRequired(int value)

public ScoreCard.Builder setMinScoreRequired(int value)

Optional. Minimum score required to pass assessment.

int32 min_score_required = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The minScoreRequired to set.

Returns
Type Description
ScoreCard.Builder

This builder for chaining.

setReportScore(int value)

public ScoreCard.Builder setReportScore(int value)

Required. Calculated score of the report.

int32 report_score = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The reportScore to set.

Returns
Type Description
ScoreCard.Builder

This builder for chaining.