# Interface EvaluationResult.TaskCompletionResultOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public static interface EvaluationResult.TaskCompletionResultOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getExplanation()

    public abstract String getExplanation()

Output only. The explanation for the task completion score.

`string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The explanation. |

### getExplanationBytes()

    public abstract ByteString getExplanationBytes()

Output only. The explanation for the task completion score.

`string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for explanation. |

### getLabel()

    public abstract String getLabel()

Output only. The label associated with each score.
Score 1: Task Completed
Score 0: Task Not Completed
Score -1: User Goal Undefined

`string label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The label. |

### getLabelBytes()

    public abstract ByteString getLabelBytes()

Output only. The label associated with each score.
Score 1: Task Completed
Score 0: Task Not Completed
Score -1: User Goal Undefined

`string label = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for label. |

### getScore()

    public abstract int getScore()

Output only. The task completion score. Can be -1, 0, 1

`optional int32 score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The score. |

### hasScore()

    public abstract boolean hasScore()

Output only. The task completion score. Can be -1, 0, 1

`optional int32 score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the score field is set. |