# Interface ConversationOrBuilder (0.104.0)

0.104.0 (latest) 0.102.0 0.99.0 0.98.0 0.96.0 0.94.0 0.93.0 0.92.0 0.91.0 0.89.0 0.87.0 0.86.0 0.85.0 0.84.0 0.83.0 0.81.0 0.79.0 0.78.0 0.75.0 0.74.0 0.73.0 0.71.0 0.70.0 0.69.0 0.68.0 0.67.0 0.66.0 0.65.0 0.64.0 0.63.0 0.62.0 0.60.0 0.59.0 0.58.0 0.57.0 0.56.0 0.55.0 0.54.0 0.53.0 0.52.0 0.51.0 0.50.0 0.48.0 0.47.0 0.46.0 0.45.0 0.44.0 0.43.0 0.42.0 0.41.0 0.40.0 0.39.0 0.38.0 0.35.0 0.34.0 0.33.0 0.32.0 0.31.0 0.30.0 0.29.0 0.28.0 0.27.0 0.26.0 0.25.0 0.24.0 0.23.0 0.22.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.7 0.13.1 0.12.1 0.11.5

    public interface ConversationOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### containsFlowVersions(String key)

    public abstract boolean containsFlowVersions(String key)

Flow versions used in the conversation.

`map<string, int64> flow_versions = 12;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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

### getDuration()

    public abstract Duration getDuration()

Duration of the conversation.

`.google.protobuf.Duration duration = 5;`

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

### getDurationOrBuilder()

    public abstract DurationOrBuilder getDurationOrBuilder()

Duration of the conversation.

`.google.protobuf.Duration duration = 5;`

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

### getEnvironment()

    public abstract Environment getEnvironment()

Environment of the conversation.
Only `name` and `display_name` are filled in this message.

`.google.cloud.dialogflow.cx.v3beta1.Environment environment = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3beta1.Environment` | The environment. |

### getEnvironmentOrBuilder()

    public abstract EnvironmentOrBuilder getEnvironmentOrBuilder()

Environment of the conversation.
Only `name` and `display_name` are filled in this message.

`.google.cloud.dialogflow.cx.v3beta1.Environment environment = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3beta1.EnvironmentOrBuilder` |   |

### getFlowVersions() (deprecated)

    public abstract Map<String,Long> getFlowVersions()

Use [#getFlowVersionsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3beta1.ConversationOrBuilder#com_google_cloud_dialogflow_cx_v3beta1_ConversationOrBuilder_getFlowVersionsMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,java.lang.Long>` |   |

### getFlowVersionsCount()

    public abstract int getFlowVersionsCount()

Flow versions used in the conversation.

`map<string, int64> flow_versions = 12;`

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

### getFlowVersionsMap()

    public abstract Map<String,Long> getFlowVersionsMap()

Flow versions used in the conversation.

`map<string, int64> flow_versions = 12;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,java.lang.Long>` |   |

### getFlowVersionsOrDefault(String key, long defaultValue)

    public abstract long getFlowVersionsOrDefault(String key, long defaultValue)

Flow versions used in the conversation.

`map<string, int64> flow_versions = 12;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

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

### getFlowVersionsOrThrow(String key)

    public abstract long getFlowVersionsOrThrow(String key)

Flow versions used in the conversation.

`map<string, int64> flow_versions = 12;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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

### getFlows(int index)

    public abstract Flow getFlows(int index)

All the Flow the conversation
has went through. Only `name` and `display_name` are filled in this
message.

`repeated .google.cloud.dialogflow.cx.v3beta1.Flow flows = 8;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3beta1.Flow` |   |

### getFlowsCount()

    public abstract int getFlowsCount()

All the Flow the conversation
has went through. Only `name` and `display_name` are filled in this
message.

`repeated .google.cloud.dialogflow.cx.v3beta1.Flow flows = 8;`

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

### getFlowsList()

    public abstract List<Flow> getFlowsList()

All the Flow the conversation
has went through. Only `name` and `display_name` are filled in this
message.

`repeated .google.cloud.dialogflow.cx.v3beta1.Flow flows = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3beta1.Flow>` |   |

### getFlowsOrBuilder(int index)

    public abstract FlowOrBuilder getFlowsOrBuilder(int index)

All the Flow the conversation
has went through. Only `name` and `display_name` are filled in this
message.

`repeated .google.cloud.dialogflow.cx.v3beta1.Flow flows = 8;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3beta1.FlowOrBuilder` |   |

### getFlowsOrBuilderList()

    public abstract List<? extends FlowOrBuilder> getFlowsOrBuilderList()

All the Flow the conversation
has went through. Only `name` and `display_name` are filled in this
message.

`repeated .google.cloud.dialogflow.cx.v3beta1.Flow flows = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.dialogflow.cx.v3beta1.FlowOrBuilder>` |   |

### getIntents(int index)

    public abstract Intent getIntents(int index)

All the matched Intent in the
conversation. Only `name` and `display_name` are filled in this message.

`repeated .google.cloud.dialogflow.cx.v3beta1.Intent intents = 7;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3beta1.Intent` |   |

### getIntentsCount()

    public abstract int getIntentsCount()

All the matched Intent in the
conversation. Only `name` and `display_name` are filled in this message.

`repeated .google.cloud.dialogflow.cx.v3beta1.Intent intents = 7;`

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

### getIntentsList()

    public abstract List<Intent> getIntentsList()

All the matched Intent in the
conversation. Only `name` and `display_name` are filled in this message.

`repeated .google.cloud.dialogflow.cx.v3beta1.Intent intents = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3beta1.Intent>` |   |

### getIntentsOrBuilder(int index)

    public abstract IntentOrBuilder getIntentsOrBuilder(int index)

All the matched Intent in the
conversation. Only `name` and `display_name` are filled in this message.

`repeated .google.cloud.dialogflow.cx.v3beta1.Intent intents = 7;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3beta1.IntentOrBuilder` |   |

### getIntentsOrBuilderList()

    public abstract List<? extends IntentOrBuilder> getIntentsOrBuilderList()

All the matched Intent in the
conversation. Only `name` and `display_name` are filled in this message.

`repeated .google.cloud.dialogflow.cx.v3beta1.Intent intents = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.dialogflow.cx.v3beta1.IntentOrBuilder>` |   |

### getInteractions(int index)

    public abstract Conversation.Interaction getInteractions(int index)

Interactions of the conversation.
Only populated for `GetConversation` and empty for `ListConversations`.

`repeated .google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction interactions = 10;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction` |   |

### getInteractionsCount()

    public abstract int getInteractionsCount()

Interactions of the conversation.
Only populated for `GetConversation` and empty for `ListConversations`.

`repeated .google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction interactions = 10;
`

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

### getInteractionsList()

    public abstract List<Conversation.Interaction> getInteractionsList()

Interactions of the conversation.
Only populated for `GetConversation` and empty for `ListConversations`.

`repeated .google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction interactions = 10;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction>` |   |

### getInteractionsOrBuilder(int index)

    public abstract Conversation.InteractionOrBuilder getInteractionsOrBuilder(int index)

Interactions of the conversation.
Only populated for `GetConversation` and empty for `ListConversations`.

`repeated .google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction interactions = 10;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3beta1.Conversation.InteractionOrBuilder` |   |

### getInteractionsOrBuilderList()

    public abstract List<? extends Conversation.InteractionOrBuilder> getInteractionsOrBuilderList()

Interactions of the conversation.
Only populated for `GetConversation` and empty for `ListConversations`.

`repeated .google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction interactions = 10;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.dialogflow.cx.v3beta1.Conversation.InteractionOrBuilder>` |   |

### getLanguageCode()

    public abstract String getLanguageCode()

The language of the conversation, which is the language of the first
request in the conversation.

`string language_code = 3;`

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

### getLanguageCodeBytes()

    public abstract ByteString getLanguageCodeBytes()

The language of the conversation, which is the language of the first
request in the conversation.

`string language_code = 3;`

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

### getMetrics()

    public abstract Conversation.Metrics getMetrics()

Conversation metrics.

`.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics metrics = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics` | The metrics. |

### getMetricsOrBuilder()

    public abstract Conversation.MetricsOrBuilder getMetricsOrBuilder()

Conversation metrics.

`.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics metrics = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3beta1.Conversation.MetricsOrBuilder` |   |

### getName()

    public abstract String getName()

Identifier. The identifier of the conversation.
If conversation ID is reused, interactions happened later than 48 hours of
the conversation's create time will be ignored. Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/conversations/<ConversationID>`

`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];`

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

### getNameBytes()

    public abstract ByteString getNameBytes()

Identifier. The identifier of the conversation.
If conversation ID is reused, interactions happened later than 48 hours of
the conversation's create time will be ignored. Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/conversations/<ConversationID>`

`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];`

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

### getPages(int index)

    public abstract Page getPages(int index)

All the Page the conversation
has went through. Only `name` and `display_name` are filled in this
message.

`repeated .google.cloud.dialogflow.cx.v3beta1.Page pages = 9;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3beta1.Page` |   |

### getPagesCount()

    public abstract int getPagesCount()

All the Page the conversation
has went through. Only `name` and `display_name` are filled in this
message.

`repeated .google.cloud.dialogflow.cx.v3beta1.Page pages = 9;`

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

### getPagesList()

    public abstract List<Page> getPagesList()

All the Page the conversation
has went through. Only `name` and `display_name` are filled in this
message.

`repeated .google.cloud.dialogflow.cx.v3beta1.Page pages = 9;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3beta1.Page>` |   |

### getPagesOrBuilder(int index)

    public abstract PageOrBuilder getPagesOrBuilder(int index)

All the Page the conversation
has went through. Only `name` and `display_name` are filled in this
message.

`repeated .google.cloud.dialogflow.cx.v3beta1.Page pages = 9;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3beta1.PageOrBuilder` |   |

### getPagesOrBuilderList()

    public abstract List<? extends PageOrBuilder> getPagesOrBuilderList()

All the Page the conversation
has went through. Only `name` and `display_name` are filled in this
message.

`repeated .google.cloud.dialogflow.cx.v3beta1.Page pages = 9;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.dialogflow.cx.v3beta1.PageOrBuilder>` |   |

### getStartTime()

    public abstract Timestamp getStartTime()

Start time of the conversation, which is the time of the first request of
the conversation.

`.google.protobuf.Timestamp start_time = 4;`

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

### getStartTimeOrBuilder()

    public abstract TimestampOrBuilder getStartTimeOrBuilder()

Start time of the conversation, which is the time of the first request of
the conversation.

`.google.protobuf.Timestamp start_time = 4;`

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

### getType()

    public abstract Conversation.Type getType()

The type of the conversation.

`.google.cloud.dialogflow.cx.v3beta1.Conversation.Type type = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3beta1.Conversation.Type` | The type. |

### getTypeValue()

    public abstract int getTypeValue()

The type of the conversation.

`.google.cloud.dialogflow.cx.v3beta1.Conversation.Type type = 2;`

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

### hasDuration()

    public abstract boolean hasDuration()

Duration of the conversation.

`.google.protobuf.Duration duration = 5;`

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

### hasEnvironment()

    public abstract boolean hasEnvironment()

Environment of the conversation.
Only `name` and `display_name` are filled in this message.

`.google.cloud.dialogflow.cx.v3beta1.Environment environment = 11;`

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

### hasMetrics()

    public abstract boolean hasMetrics()

Conversation metrics.

`.google.cloud.dialogflow.cx.v3beta1.Conversation.Metrics metrics = 6;`

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

### hasStartTime()

    public abstract boolean hasStartTime()

Start time of the conversation, which is the time of the first request of
the conversation.

`.google.protobuf.Timestamp start_time = 4;`

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