# Interface EndSessionOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public interface EndSessionOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getMetadata()

    public abstract Struct getMetadata()

Optional. Provides additional information about the end session signal,
such as the reason for ending the session.

`.google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL];`

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

### getMetadataOrBuilder()

    public abstract StructOrBuilder getMetadataOrBuilder()

Optional. Provides additional information about the end session signal,
such as the reason for ending the session.

`.google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL];`

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

### hasMetadata()

    public abstract boolean hasMetadata()

Optional. Provides additional information about the end session signal,
such as the reason for ending the session.

`.google.protobuf.Struct metadata = 1 [(.google.api.field_behavior) = OPTIONAL];`

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