# Interface OptimizationConfigOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public interface OptimizationConfigOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getAssistantSession()

    public abstract String getAssistantSession()

Output only. The assistant session to use for the optimization based on
this evaluation run. Format:
`projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistantSession}`

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

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

### getAssistantSessionBytes()

    public abstract ByteString getAssistantSessionBytes()

Output only. The assistant session to use for the optimization based on
this evaluation run. Format:
`projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistantSession}`

`string assistant_session = 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 assistantSession. |

### getErrorMessage()

    public abstract String getErrorMessage()

Output only. The error message if the optimization run failed.

`string error_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getErrorMessageBytes()

    public abstract ByteString getErrorMessageBytes()

Output only. The error message if the optimization run failed.

`string error_message = 6 [(.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 errorMessage. |

### getGenerateLossReport()

    public abstract boolean getGenerateLossReport()

Optional. Whether to generate a loss report.

`bool generate_loss_report = 1 [(.google.api.field_behavior) = OPTIONAL];`

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

### getLossReport()

    public abstract Struct getLossReport()

Output only. The generated loss report.

`.google.protobuf.Struct loss_report = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Struct.html` | The lossReport. |

### getLossReportOrBuilder()

    public abstract StructOrBuilder getLossReportOrBuilder()

Output only. The generated loss report.

`.google.protobuf.Struct loss_report = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.StructOrBuilder.html` |   |

### getReportSummary()

    public abstract String getReportSummary()

Output only. The summary of the loss report.

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

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

### getReportSummaryBytes()

    public abstract ByteString getReportSummaryBytes()

Output only. The summary of the loss report.

`string report_summary = 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 reportSummary. |

### getShouldSuggestFix()

    public abstract boolean getShouldSuggestFix()

Output only. Whether to suggest a fix for the losses.

`bool should_suggest_fix = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getStatus()

    public abstract OptimizationConfig.OptimizationStatus getStatus()

Output only. The status of the optimization run.

`
.google.cloud.ces.v1beta.OptimizationConfig.OptimizationStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.OptimizationConfig.OptimizationStatus` | The status. |

### getStatusValue()

    public abstract int getStatusValue()

Output only. The status of the optimization run.

`
.google.cloud.ces.v1beta.OptimizationConfig.OptimizationStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for status. |

### hasLossReport()

    public abstract boolean hasLossReport()

Output only. The generated loss report.

`.google.protobuf.Struct loss_report = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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