# Interface BidiSessionServerMessageOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public interface BidiSessionServerMessageOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getEndSession()

    public abstract EndSession getEndSession()

Optional. Indicates that the session has ended.

`
.google.cloud.ces.v1.EndSession end_session = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.EndSession` | The endSession. |

### getEndSessionOrBuilder()

    public abstract EndSessionOrBuilder getEndSessionOrBuilder()

Optional. Indicates that the session has ended.

`
.google.cloud.ces.v1.EndSession end_session = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.EndSessionOrBuilder` |   |

### getGoAway()

    public abstract GoAway getGoAway()

Optional. Indicates that the server will disconnect soon and the client
should half-close and restart the connection.

`.google.cloud.ces.v1.GoAway go_away = 6 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.GoAway` | The goAway. |

### getGoAwayOrBuilder()

    public abstract GoAwayOrBuilder getGoAwayOrBuilder()

Optional. Indicates that the server will disconnect soon and the client
should half-close and restart the connection.

`.google.cloud.ces.v1.GoAway go_away = 6 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.GoAwayOrBuilder` |   |

### getInterruptionSignal()

    public abstract InterruptionSignal getInterruptionSignal()

Optional. Indicates the agent's audio response has been interrupted.

`
.google.cloud.ces.v1.InterruptionSignal interruption_signal = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.InterruptionSignal` | The interruptionSignal. |

### getInterruptionSignalOrBuilder()

    public abstract InterruptionSignalOrBuilder getInterruptionSignalOrBuilder()

Optional. Indicates the agent's audio response has been interrupted.

`
.google.cloud.ces.v1.InterruptionSignal interruption_signal = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.InterruptionSignalOrBuilder` |   |

### getMessageTypeCase()

    public abstract BidiSessionServerMessage.MessageTypeCase getMessageTypeCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.BidiSessionServerMessage.MessageTypeCase` |   |

### getRecognitionResult()

    public abstract RecognitionResult getRecognitionResult()

Optional. Realtime speech recognition result for the audio input.

`
.google.cloud.ces.v1.RecognitionResult recognition_result = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.RecognitionResult` | The recognitionResult. |

### getRecognitionResultOrBuilder()

    public abstract RecognitionResultOrBuilder getRecognitionResultOrBuilder()

Optional. Realtime speech recognition result for the audio input.

`
.google.cloud.ces.v1.RecognitionResult recognition_result = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.RecognitionResultOrBuilder` |   |

### getSessionOutput()

    public abstract SessionOutput getSessionOutput()

Optional. Processing result from the CES agent.

`
.google.cloud.ces.v1.SessionOutput session_output = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.SessionOutput` | The sessionOutput. |

### getSessionOutputOrBuilder()

    public abstract SessionOutputOrBuilder getSessionOutputOrBuilder()

Optional. Processing result from the CES agent.

`
.google.cloud.ces.v1.SessionOutput session_output = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.SessionOutputOrBuilder` |   |

### hasEndSession()

    public abstract boolean hasEndSession()

Optional. Indicates that the session has ended.

`
.google.cloud.ces.v1.EndSession end_session = 5 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasGoAway()

    public abstract boolean hasGoAway()

Optional. Indicates that the server will disconnect soon and the client
should half-close and restart the connection.

`.google.cloud.ces.v1.GoAway go_away = 6 [(.google.api.field_behavior) = OPTIONAL];`

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

### hasInterruptionSignal()

    public abstract boolean hasInterruptionSignal()

Optional. Indicates the agent's audio response has been interrupted.

`
.google.cloud.ces.v1.InterruptionSignal interruption_signal = 3 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasRecognitionResult()

    public abstract boolean hasRecognitionResult()

Optional. Realtime speech recognition result for the audio input.

`
.google.cloud.ces.v1.RecognitionResult recognition_result = 2 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasSessionOutput()

    public abstract boolean hasSessionOutput()

Optional. Processing result from the CES agent.

`
.google.cloud.ces.v1.SessionOutput session_output = 1 [(.google.api.field_behavior) = OPTIONAL];
`

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