public static final class ScoreCard.Builder extends GeneratedMessage.Builder<ScoreCard.Builder> implements ScoreCardOrBuilderScore card associated with the report.
Protobuf type google.cloud.designcenter.v1.ScoreCard
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ScoreCard.BuilderImplements
ScoreCardOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ScoreCard.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ScoreCard.Builder |
|
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 |
intThe 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 |
intThe 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 |
intThe 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 |
intThe reportScore to set. |
| Returns | |
|---|---|
| Type | Description |
ScoreCard.Builder |
This builder for chaining. |