# Interface Agent.RemoteDialogflowAgentOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public static interface Agent.RemoteDialogflowAgentOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### containsInputVariableMapping(String key)

    public abstract boolean containsInputVariableMapping(String key)

Optional. The mapping of the app variables names to the Dialogflow
session parameters names to be sent to the Dialogflow agent as input.

`
map<string, string> input_variable_mapping = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **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` |   |

### containsOutputVariableMapping(String key)

    public abstract boolean containsOutputVariableMapping(String key)

Optional. The mapping of the Dialogflow session parameters names to the
app variables names to be sent back to the CES agent after the Dialogflow
agent execution ends.

`
map<string, string> output_variable_mapping = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **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` |   |

### getAgent()

    public abstract String getAgent()

Required. The
[Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent)
agent resource name.
Format: `projects/{project}/locations/{location}/agents/{agent}`

`
string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

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

### getAgentBytes()

    public abstract ByteString getAgentBytes()

Required. The
[Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent)
agent resource name.
Format: `projects/{project}/locations/{location}/agents/{agent}`

`
string agent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

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

### getEnvironmentId()

    public abstract String getEnvironmentId()

Optional. The environment ID of the Dialogflow agent to be used for the
agent execution. If not specified, the draft environment will be used.

`string environment_id = 3 [(.google.api.field_behavior) = OPTIONAL];`

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

### getEnvironmentIdBytes()

    public abstract ByteString getEnvironmentIdBytes()

Optional. The environment ID of the Dialogflow agent to be used for the
agent execution. If not specified, the draft environment will be used.

`string environment_id = 3 [(.google.api.field_behavior) = OPTIONAL];`

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

### getFlowId()

    public abstract String getFlowId()

Optional. The flow ID of the flow in the Dialogflow agent.

`string flow_id = 2 [(.google.api.field_behavior) = OPTIONAL];`

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

### getFlowIdBytes()

    public abstract ByteString getFlowIdBytes()

Optional. The flow ID of the flow in the Dialogflow agent.

`string flow_id = 2 [(.google.api.field_behavior) = OPTIONAL];`

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

### getInputVariableMapping() (deprecated)

    public abstract Map<String,String> getInputVariableMapping()

Use [#getInputVariableMappingMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgentOrBuilder#com_google_cloud_ces_v1beta_Agent_RemoteDialogflowAgentOrBuilder_getInputVariableMappingMap__) 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,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getInputVariableMappingCount()

    public abstract int getInputVariableMappingCount()

Optional. The mapping of the app variables names to the Dialogflow
session parameters names to be sent to the Dialogflow agent as input.

`
map<string, string> input_variable_mapping = 4 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getInputVariableMappingMap()

    public abstract Map<String,String> getInputVariableMappingMap()

Optional. The mapping of the app variables names to the Dialogflow
session parameters names to be sent to the Dialogflow agent as input.

`
map<string, string> input_variable_mapping = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **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,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getInputVariableMappingOrDefault(String key, String defaultValue)

    public abstract String getInputVariableMappingOrDefault(String key, String defaultValue)

Optional. The mapping of the app variables names to the Dialogflow
session parameters names to be sent to the Dialogflow agent as input.

`
map<string, string> input_variable_mapping = 4 [(.google.api.field_behavior) = OPTIONAL];
`

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

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

### getInputVariableMappingOrThrow(String key)

    public abstract String getInputVariableMappingOrThrow(String key)

Optional. The mapping of the app variables names to the Dialogflow
session parameters names to be sent to the Dialogflow agent as input.

`
map<string, string> input_variable_mapping = 4 [(.google.api.field_behavior) = OPTIONAL];
`

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

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

### getLanguageCodeVariable()

    public abstract String getLanguageCodeVariable()

Optional. The name of the variable that contains the language code to be
used for the Dialogflow session. If unspecified, the default language
code of the Dialogflow agent will be used.

`string language_code_variable = 7 [(.google.api.field_behavior) = OPTIONAL];`

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

### getLanguageCodeVariableBytes()

    public abstract ByteString getLanguageCodeVariableBytes()

Optional. The name of the variable that contains the language code to be
used for the Dialogflow session. If unspecified, the default language
code of the Dialogflow agent will be used.

`string language_code_variable = 7 [(.google.api.field_behavior) = OPTIONAL];`

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

### getOutputVariableMapping() (deprecated)

    public abstract Map<String,String> getOutputVariableMapping()

Use [#getOutputVariableMappingMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgentOrBuilder#com_google_cloud_ces_v1beta_Agent_RemoteDialogflowAgentOrBuilder_getOutputVariableMappingMap__) 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,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getOutputVariableMappingCount()

    public abstract int getOutputVariableMappingCount()

Optional. The mapping of the Dialogflow session parameters names to the
app variables names to be sent back to the CES agent after the Dialogflow
agent execution ends.

`
map<string, string> output_variable_mapping = 5 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getOutputVariableMappingMap()

    public abstract Map<String,String> getOutputVariableMappingMap()

Optional. The mapping of the Dialogflow session parameters names to the
app variables names to be sent back to the CES agent after the Dialogflow
agent execution ends.

`
map<string, string> output_variable_mapping = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **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,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getOutputVariableMappingOrDefault(String key, String defaultValue)

    public abstract String getOutputVariableMappingOrDefault(String key, String defaultValue)

Optional. The mapping of the Dialogflow session parameters names to the
app variables names to be sent back to the CES agent after the Dialogflow
agent execution ends.

`
map<string, string> output_variable_mapping = 5 [(.google.api.field_behavior) = OPTIONAL];
`

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

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

### getOutputVariableMappingOrThrow(String key)

    public abstract String getOutputVariableMappingOrThrow(String key)

Optional. The mapping of the Dialogflow session parameters names to the
app variables names to be sent back to the CES agent after the Dialogflow
agent execution ends.

`
map<string, string> output_variable_mapping = 5 [(.google.api.field_behavior) = OPTIONAL];
`

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

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

### getRespectResponseInterruptionSettings()

    public abstract boolean getRespectResponseInterruptionSettings()

Optional. Indicates whether to respect the message-level interruption
settings configured in the Dialogflow agent.

- If false: all response messages from the Dialogflow agent follow the app-level barge-in settings.
- If true: only response messages with [`allow_playback_interruption`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#text) set to true will be interruptable, all other messages follow the app-level barge-in settings.

`
bool respect_response_interruption_settings = 6 [(.google.api.field_behavior) = OPTIONAL];
`

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