blob: 2ea9da118c97a4aed2cd62aeba5276abe5f7870e [file] [log] [blame]
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="dialogflow_v3.html">Dialogflow API</a> . <a href="dialogflow_v3.projects.html">projects</a> . <a href="dialogflow_v3.projects.locations.html">locations</a> . <a href="dialogflow_v3.projects.locations.agents.html">agents</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="dialogflow_v3.projects.locations.agents.entityTypes.html">entityTypes()</a></code>
79</p>
80<p class="firstline">Returns the entityTypes Resource.</p>
81
82<p class="toc_element">
83 <code><a href="dialogflow_v3.projects.locations.agents.environments.html">environments()</a></code>
84</p>
85<p class="firstline">Returns the environments Resource.</p>
86
87<p class="toc_element">
88 <code><a href="dialogflow_v3.projects.locations.agents.flows.html">flows()</a></code>
89</p>
90<p class="firstline">Returns the flows Resource.</p>
91
92<p class="toc_element">
93 <code><a href="dialogflow_v3.projects.locations.agents.intents.html">intents()</a></code>
94</p>
95<p class="firstline">Returns the intents Resource.</p>
96
97<p class="toc_element">
98 <code><a href="dialogflow_v3.projects.locations.agents.sessions.html">sessions()</a></code>
99</p>
100<p class="firstline">Returns the sessions Resource.</p>
101
102<p class="toc_element">
103 <code><a href="dialogflow_v3.projects.locations.agents.testCases.html">testCases()</a></code>
104</p>
105<p class="firstline">Returns the testCases Resource.</p>
106
107<p class="toc_element">
108 <code><a href="dialogflow_v3.projects.locations.agents.webhooks.html">webhooks()</a></code>
109</p>
110<p class="firstline">Returns the webhooks Resource.</p>
111
112<p class="toc_element">
113 <code><a href="#close">close()</a></code></p>
114<p class="firstline">Close httplib2 connections.</p>
115<p class="toc_element">
116 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700117<p class="firstline">Creates an agent in the specified location. Note: You should always train flows prior to sending them queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).</p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800118<p class="toc_element">
119 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
120<p class="firstline">Deletes the specified agent.</p>
121<p class="toc_element">
122 <code><a href="#export">export(name, body=None, x__xgafv=None)</a></code></p>
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700123<p class="firstline">Exports the specified agent to a binary file. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: ExportAgentResponse</p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800124<p class="toc_element">
125 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
126<p class="firstline">Retrieves the specified agent.</p>
127<p class="toc_element">
128 <code><a href="#getValidationResult">getValidationResult(name, languageCode=None, x__xgafv=None)</a></code></p>
129<p class="firstline">Gets the latest agent validation result. Agent validation is performed when ValidateAgent is called.</p>
130<p class="toc_element">
131 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
132<p class="firstline">Returns the list of all agents in the specified location.</p>
133<p class="toc_element">
134 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
135<p class="firstline">Retrieves the next page of results.</p>
136<p class="toc_element">
137 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700138<p class="firstline">Updates the specified agent. Note: You should always train flows prior to sending them queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).</p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800139<p class="toc_element">
140 <code><a href="#restore">restore(name, body=None, x__xgafv=None)</a></code></p>
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700141<p class="firstline">Restores the specified agent from a binary file. Replaces the current agent with a new one. Note that all existing resources in agent (e.g. intents, entity types, flows) will be removed. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) Note: You should always train flows prior to sending them queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).</p>
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800142<p class="toc_element">
143 <code><a href="#validate">validate(name, body=None, x__xgafv=None)</a></code></p>
144<p class="firstline">Validates the specified agent and creates or updates validation results. The agent in draft version is validated. Please call this API after the training is completed to get the complete validation results.</p>
145<h3>Method Details</h3>
146<div class="method">
147 <code class="details" id="close">close()</code>
148 <pre>Close httplib2 connections.</pre>
149</div>
150
151<div class="method">
152 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700153 <pre>Creates an agent in the specified location. Note: You should always train flows prior to sending them queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800154
155Args:
156 parent: string, Required. The location to create a agent for. Format: `projects//locations/`. (required)
157 body: object, The request body.
158 The object takes the form of:
159
160{ # Agents are best described as Natural Language Understanding (NLU) modules that transform user requests into actionable data. You can include agents in your app, product, or service to determine user intent and respond to the user in a natural way. After you create an agent, you can add Intents, Entity Types, Flows, Fulfillments, Webhooks, and so on to manage the conversation flows..
yoshi-code-botb539cc42021-08-03 00:20:27 -0700161 &quot;advancedSettings&quot;: { # Hierarchical advanced settings for agent/flow/page/fulfillment/parameter. Settings exposed at lower level overrides the settings exposed at higher level. Hierarchy: Agent-&gt;Flow-&gt;Page-&gt;Fulfillment/Parameter. # Hierarchical advanced settings for this agent. The settings exposed at the lower level overrides the settings exposed at the higher level.
162 &quot;loggingSettings&quot;: { # Define behaviors on logging. # Settings for logging. Settings for Dialogflow History, Contact Center messages, StackDriver logs, and speech logging. Exposed at the following levels: - Agent level.
163 &quot;enableInteractionLogging&quot;: True or False, # If true, DF Interaction logging is currently enabled.
164 &quot;enableStackdriverLogging&quot;: True or False, # If true, StackDriver logging is currently enabled.
165 },
166 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800167 &quot;avatarUri&quot;: &quot;A String&quot;, # The URI of the agent&#x27;s avatar. Avatars are used throughout the Dialogflow console and in the self-hosted [Web Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo) integration.
yoshi-code-botb1eafb32021-06-15 00:26:02 -0700168 &quot;defaultLanguageCode&quot;: &quot;A String&quot;, # Required. Immutable. The default language of the agent as a language tag. See [Language Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) for a list of the currently supported language codes. This field cannot be set by the Agents.UpdateAgent method.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800169 &quot;description&quot;: &quot;A String&quot;, # The description of the agent. The maximum length is 500 characters. If exceeded, the request is rejected.
170 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the agent, unique within the location.
171 &quot;enableSpellCorrection&quot;: True or False, # Indicates if automatic spell correction is enabled in detect intent requests.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700172 &quot;enableStackdriverLogging&quot;: True or False, # Indicates if stackdriver logging is enabled for the agent. Please use agent.advanced_settings instead.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800173 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the agent. Required for the Agents.UpdateAgent method. Agents.CreateAgent populates the name automatically. Format: `projects//locations//agents/`.
174 &quot;securitySettings&quot;: &quot;A String&quot;, # Name of the SecuritySettings reference for the agent. Format: `projects//locations//securitySettings/`.
175 &quot;speechToTextSettings&quot;: { # Settings related to speech recognition. # Speech recognition related settings.
176 &quot;enableSpeechAdaptation&quot;: True or False, # Whether to use speech adaptation for speech recognition.
177 },
178 &quot;startFlow&quot;: &quot;A String&quot;, # Immutable. Name of the start flow in this agent. A start flow will be automatically created when the agent is created, and can only be deleted by deleting the agent. Format: `projects//locations//agents//flows/`.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700179 &quot;supportedLanguageCodes&quot;: [ # The list of all languages supported by the agent (except for the `default_language_code`).
180 &quot;A String&quot;,
181 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800182 &quot;timeZone&quot;: &quot;A String&quot;, # Required. The time zone of the agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
183}
184
185 x__xgafv: string, V1 error format.
186 Allowed values
187 1 - v1 error format
188 2 - v2 error format
189
190Returns:
191 An object of the form:
192
193 { # Agents are best described as Natural Language Understanding (NLU) modules that transform user requests into actionable data. You can include agents in your app, product, or service to determine user intent and respond to the user in a natural way. After you create an agent, you can add Intents, Entity Types, Flows, Fulfillments, Webhooks, and so on to manage the conversation flows..
yoshi-code-botb539cc42021-08-03 00:20:27 -0700194 &quot;advancedSettings&quot;: { # Hierarchical advanced settings for agent/flow/page/fulfillment/parameter. Settings exposed at lower level overrides the settings exposed at higher level. Hierarchy: Agent-&gt;Flow-&gt;Page-&gt;Fulfillment/Parameter. # Hierarchical advanced settings for this agent. The settings exposed at the lower level overrides the settings exposed at the higher level.
195 &quot;loggingSettings&quot;: { # Define behaviors on logging. # Settings for logging. Settings for Dialogflow History, Contact Center messages, StackDriver logs, and speech logging. Exposed at the following levels: - Agent level.
196 &quot;enableInteractionLogging&quot;: True or False, # If true, DF Interaction logging is currently enabled.
197 &quot;enableStackdriverLogging&quot;: True or False, # If true, StackDriver logging is currently enabled.
198 },
199 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800200 &quot;avatarUri&quot;: &quot;A String&quot;, # The URI of the agent&#x27;s avatar. Avatars are used throughout the Dialogflow console and in the self-hosted [Web Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo) integration.
yoshi-code-botb1eafb32021-06-15 00:26:02 -0700201 &quot;defaultLanguageCode&quot;: &quot;A String&quot;, # Required. Immutable. The default language of the agent as a language tag. See [Language Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) for a list of the currently supported language codes. This field cannot be set by the Agents.UpdateAgent method.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800202 &quot;description&quot;: &quot;A String&quot;, # The description of the agent. The maximum length is 500 characters. If exceeded, the request is rejected.
203 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the agent, unique within the location.
204 &quot;enableSpellCorrection&quot;: True or False, # Indicates if automatic spell correction is enabled in detect intent requests.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700205 &quot;enableStackdriverLogging&quot;: True or False, # Indicates if stackdriver logging is enabled for the agent. Please use agent.advanced_settings instead.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800206 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the agent. Required for the Agents.UpdateAgent method. Agents.CreateAgent populates the name automatically. Format: `projects//locations//agents/`.
207 &quot;securitySettings&quot;: &quot;A String&quot;, # Name of the SecuritySettings reference for the agent. Format: `projects//locations//securitySettings/`.
208 &quot;speechToTextSettings&quot;: { # Settings related to speech recognition. # Speech recognition related settings.
209 &quot;enableSpeechAdaptation&quot;: True or False, # Whether to use speech adaptation for speech recognition.
210 },
211 &quot;startFlow&quot;: &quot;A String&quot;, # Immutable. Name of the start flow in this agent. A start flow will be automatically created when the agent is created, and can only be deleted by deleting the agent. Format: `projects//locations//agents//flows/`.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700212 &quot;supportedLanguageCodes&quot;: [ # The list of all languages supported by the agent (except for the `default_language_code`).
213 &quot;A String&quot;,
214 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800215 &quot;timeZone&quot;: &quot;A String&quot;, # Required. The time zone of the agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
216}</pre>
217</div>
218
219<div class="method">
220 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
221 <pre>Deletes the specified agent.
222
223Args:
224 name: string, Required. The name of the agent to delete. Format: `projects//locations//agents/`. (required)
225 x__xgafv: string, V1 error format.
226 Allowed values
227 1 - v1 error format
228 2 - v2 error format
229
230Returns:
231 An object of the form:
232
233 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
234}</pre>
235</div>
236
237<div class="method">
238 <code class="details" id="export">export(name, body=None, x__xgafv=None)</code>
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700239 <pre>Exports the specified agent to a binary file. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: ExportAgentResponse
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800240
241Args:
242 name: string, Required. The name of the agent to export. Format: `projects//locations//agents/`. (required)
243 body: object, The request body.
244 The object takes the form of:
245
246{ # The request message for Agents.ExportAgent.
247 &quot;agentUri&quot;: &quot;A String&quot;, # Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the agent to. The format of this URI must be `gs:///`. If left unspecified, the serialized agent is returned inline.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700248 &quot;environment&quot;: &quot;A String&quot;, # Optional. Environment name. If not set, draft environment is assumed. Format: `projects//locations//agents//environments/`.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800249}
250
251 x__xgafv: string, V1 error format.
252 Allowed values
253 1 - v1 error format
254 2 - v2 error format
255
256Returns:
257 An object of the form:
258
259 { # This resource represents a long-running operation that is the result of a network API call.
260 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
261 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
262 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
263 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
264 {
265 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
266 },
267 ],
268 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
269 },
270 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
271 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
272 },
273 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
274 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
275 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
276 },
277}</pre>
278</div>
279
280<div class="method">
281 <code class="details" id="get">get(name, x__xgafv=None)</code>
282 <pre>Retrieves the specified agent.
283
284Args:
285 name: string, Required. The name of the agent. Format: `projects//locations//agents/`. (required)
286 x__xgafv: string, V1 error format.
287 Allowed values
288 1 - v1 error format
289 2 - v2 error format
290
291Returns:
292 An object of the form:
293
294 { # Agents are best described as Natural Language Understanding (NLU) modules that transform user requests into actionable data. You can include agents in your app, product, or service to determine user intent and respond to the user in a natural way. After you create an agent, you can add Intents, Entity Types, Flows, Fulfillments, Webhooks, and so on to manage the conversation flows..
yoshi-code-botb539cc42021-08-03 00:20:27 -0700295 &quot;advancedSettings&quot;: { # Hierarchical advanced settings for agent/flow/page/fulfillment/parameter. Settings exposed at lower level overrides the settings exposed at higher level. Hierarchy: Agent-&gt;Flow-&gt;Page-&gt;Fulfillment/Parameter. # Hierarchical advanced settings for this agent. The settings exposed at the lower level overrides the settings exposed at the higher level.
296 &quot;loggingSettings&quot;: { # Define behaviors on logging. # Settings for logging. Settings for Dialogflow History, Contact Center messages, StackDriver logs, and speech logging. Exposed at the following levels: - Agent level.
297 &quot;enableInteractionLogging&quot;: True or False, # If true, DF Interaction logging is currently enabled.
298 &quot;enableStackdriverLogging&quot;: True or False, # If true, StackDriver logging is currently enabled.
299 },
300 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800301 &quot;avatarUri&quot;: &quot;A String&quot;, # The URI of the agent&#x27;s avatar. Avatars are used throughout the Dialogflow console and in the self-hosted [Web Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo) integration.
yoshi-code-botb1eafb32021-06-15 00:26:02 -0700302 &quot;defaultLanguageCode&quot;: &quot;A String&quot;, # Required. Immutable. The default language of the agent as a language tag. See [Language Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) for a list of the currently supported language codes. This field cannot be set by the Agents.UpdateAgent method.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800303 &quot;description&quot;: &quot;A String&quot;, # The description of the agent. The maximum length is 500 characters. If exceeded, the request is rejected.
304 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the agent, unique within the location.
305 &quot;enableSpellCorrection&quot;: True or False, # Indicates if automatic spell correction is enabled in detect intent requests.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700306 &quot;enableStackdriverLogging&quot;: True or False, # Indicates if stackdriver logging is enabled for the agent. Please use agent.advanced_settings instead.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800307 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the agent. Required for the Agents.UpdateAgent method. Agents.CreateAgent populates the name automatically. Format: `projects//locations//agents/`.
308 &quot;securitySettings&quot;: &quot;A String&quot;, # Name of the SecuritySettings reference for the agent. Format: `projects//locations//securitySettings/`.
309 &quot;speechToTextSettings&quot;: { # Settings related to speech recognition. # Speech recognition related settings.
310 &quot;enableSpeechAdaptation&quot;: True or False, # Whether to use speech adaptation for speech recognition.
311 },
312 &quot;startFlow&quot;: &quot;A String&quot;, # Immutable. Name of the start flow in this agent. A start flow will be automatically created when the agent is created, and can only be deleted by deleting the agent. Format: `projects//locations//agents//flows/`.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700313 &quot;supportedLanguageCodes&quot;: [ # The list of all languages supported by the agent (except for the `default_language_code`).
314 &quot;A String&quot;,
315 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800316 &quot;timeZone&quot;: &quot;A String&quot;, # Required. The time zone of the agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
317}</pre>
318</div>
319
320<div class="method">
321 <code class="details" id="getValidationResult">getValidationResult(name, languageCode=None, x__xgafv=None)</code>
322 <pre>Gets the latest agent validation result. Agent validation is performed when ValidateAgent is called.
323
324Args:
325 name: string, Required. The agent name. Format: `projects//locations//agents//validationResult`. (required)
326 languageCode: string, If not specified, the agent&#x27;s default language is used.
327 x__xgafv: string, V1 error format.
328 Allowed values
329 1 - v1 error format
330 2 - v2 error format
331
332Returns:
333 An object of the form:
334
335 { # The response message for Agents.GetAgentValidationResult.
336 &quot;flowValidationResults&quot;: [ # Contains all flow validation results.
337 { # The response message for Flows.GetFlowValidationResult.
338 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the flow validation result. Format: `projects//locations//agents//flows//validationResult`.
339 &quot;updateTime&quot;: &quot;A String&quot;, # Last time the flow was validated.
340 &quot;validationMessages&quot;: [ # Contains all validation messages.
341 { # Agent/flow validation message.
342 &quot;detail&quot;: &quot;A String&quot;, # The message detail.
343 &quot;resourceNames&quot;: [ # The resource names of the resources where the message is found.
344 { # Resource name and display name.
345 &quot;displayName&quot;: &quot;A String&quot;, # Display name.
346 &quot;name&quot;: &quot;A String&quot;, # Name.
347 },
348 ],
349 &quot;resourceType&quot;: &quot;A String&quot;, # The type of the resources where the message is found.
350 &quot;resources&quot;: [ # The names of the resources where the message is found.
351 &quot;A String&quot;,
352 ],
353 &quot;severity&quot;: &quot;A String&quot;, # Indicates the severity of the message.
354 },
355 ],
356 },
357 ],
358 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the agent validation result. Format: `projects//locations//agents//validationResult`.
359}</pre>
360</div>
361
362<div class="method">
363 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
364 <pre>Returns the list of all agents in the specified location.
365
366Args:
367 parent: string, Required. The location to list all agents for. Format: `projects//locations/`. (required)
368 pageSize: integer, The maximum number of items to return in a single page. By default 100 and at most 1000.
369 pageToken: string, The next_page_token value returned from a previous list request.
370 x__xgafv: string, V1 error format.
371 Allowed values
372 1 - v1 error format
373 2 - v2 error format
374
375Returns:
376 An object of the form:
377
378 { # The response message for Agents.ListAgents.
379 &quot;agents&quot;: [ # The list of agents. There will be a maximum number of items returned based on the page_size field in the request.
380 { # Agents are best described as Natural Language Understanding (NLU) modules that transform user requests into actionable data. You can include agents in your app, product, or service to determine user intent and respond to the user in a natural way. After you create an agent, you can add Intents, Entity Types, Flows, Fulfillments, Webhooks, and so on to manage the conversation flows..
yoshi-code-botb539cc42021-08-03 00:20:27 -0700381 &quot;advancedSettings&quot;: { # Hierarchical advanced settings for agent/flow/page/fulfillment/parameter. Settings exposed at lower level overrides the settings exposed at higher level. Hierarchy: Agent-&gt;Flow-&gt;Page-&gt;Fulfillment/Parameter. # Hierarchical advanced settings for this agent. The settings exposed at the lower level overrides the settings exposed at the higher level.
382 &quot;loggingSettings&quot;: { # Define behaviors on logging. # Settings for logging. Settings for Dialogflow History, Contact Center messages, StackDriver logs, and speech logging. Exposed at the following levels: - Agent level.
383 &quot;enableInteractionLogging&quot;: True or False, # If true, DF Interaction logging is currently enabled.
384 &quot;enableStackdriverLogging&quot;: True or False, # If true, StackDriver logging is currently enabled.
385 },
386 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800387 &quot;avatarUri&quot;: &quot;A String&quot;, # The URI of the agent&#x27;s avatar. Avatars are used throughout the Dialogflow console and in the self-hosted [Web Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo) integration.
yoshi-code-botb1eafb32021-06-15 00:26:02 -0700388 &quot;defaultLanguageCode&quot;: &quot;A String&quot;, # Required. Immutable. The default language of the agent as a language tag. See [Language Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) for a list of the currently supported language codes. This field cannot be set by the Agents.UpdateAgent method.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800389 &quot;description&quot;: &quot;A String&quot;, # The description of the agent. The maximum length is 500 characters. If exceeded, the request is rejected.
390 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the agent, unique within the location.
391 &quot;enableSpellCorrection&quot;: True or False, # Indicates if automatic spell correction is enabled in detect intent requests.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700392 &quot;enableStackdriverLogging&quot;: True or False, # Indicates if stackdriver logging is enabled for the agent. Please use agent.advanced_settings instead.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800393 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the agent. Required for the Agents.UpdateAgent method. Agents.CreateAgent populates the name automatically. Format: `projects//locations//agents/`.
394 &quot;securitySettings&quot;: &quot;A String&quot;, # Name of the SecuritySettings reference for the agent. Format: `projects//locations//securitySettings/`.
395 &quot;speechToTextSettings&quot;: { # Settings related to speech recognition. # Speech recognition related settings.
396 &quot;enableSpeechAdaptation&quot;: True or False, # Whether to use speech adaptation for speech recognition.
397 },
398 &quot;startFlow&quot;: &quot;A String&quot;, # Immutable. Name of the start flow in this agent. A start flow will be automatically created when the agent is created, and can only be deleted by deleting the agent. Format: `projects//locations//agents//flows/`.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700399 &quot;supportedLanguageCodes&quot;: [ # The list of all languages supported by the agent (except for the `default_language_code`).
400 &quot;A String&quot;,
401 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800402 &quot;timeZone&quot;: &quot;A String&quot;, # Required. The time zone of the agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
403 },
404 ],
405 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more results in the list.
406}</pre>
407</div>
408
409<div class="method">
410 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
411 <pre>Retrieves the next page of results.
412
413Args:
414 previous_request: The request for the previous page. (required)
415 previous_response: The response from the request for the previous page. (required)
416
417Returns:
418 A request object that you can call &#x27;execute()&#x27; on to request the next
419 page. Returns None if there are no more items in the collection.
420 </pre>
421</div>
422
423<div class="method">
424 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
yoshi-code-bot04bafe12021-06-29 00:20:25 -0700425 <pre>Updates the specified agent. Note: You should always train flows prior to sending them queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800426
427Args:
428 name: string, The unique identifier of the agent. Required for the Agents.UpdateAgent method. Agents.CreateAgent populates the name automatically. Format: `projects//locations//agents/`. (required)
429 body: object, The request body.
430 The object takes the form of:
431
432{ # Agents are best described as Natural Language Understanding (NLU) modules that transform user requests into actionable data. You can include agents in your app, product, or service to determine user intent and respond to the user in a natural way. After you create an agent, you can add Intents, Entity Types, Flows, Fulfillments, Webhooks, and so on to manage the conversation flows..
yoshi-code-botb539cc42021-08-03 00:20:27 -0700433 &quot;advancedSettings&quot;: { # Hierarchical advanced settings for agent/flow/page/fulfillment/parameter. Settings exposed at lower level overrides the settings exposed at higher level. Hierarchy: Agent-&gt;Flow-&gt;Page-&gt;Fulfillment/Parameter. # Hierarchical advanced settings for this agent. The settings exposed at the lower level overrides the settings exposed at the higher level.
434 &quot;loggingSettings&quot;: { # Define behaviors on logging. # Settings for logging. Settings for Dialogflow History, Contact Center messages, StackDriver logs, and speech logging. Exposed at the following levels: - Agent level.
435 &quot;enableInteractionLogging&quot;: True or False, # If true, DF Interaction logging is currently enabled.
436 &quot;enableStackdriverLogging&quot;: True or False, # If true, StackDriver logging is currently enabled.
437 },
438 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800439 &quot;avatarUri&quot;: &quot;A String&quot;, # The URI of the agent&#x27;s avatar. Avatars are used throughout the Dialogflow console and in the self-hosted [Web Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo) integration.
yoshi-code-botb1eafb32021-06-15 00:26:02 -0700440 &quot;defaultLanguageCode&quot;: &quot;A String&quot;, # Required. Immutable. The default language of the agent as a language tag. See [Language Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) for a list of the currently supported language codes. This field cannot be set by the Agents.UpdateAgent method.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800441 &quot;description&quot;: &quot;A String&quot;, # The description of the agent. The maximum length is 500 characters. If exceeded, the request is rejected.
442 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the agent, unique within the location.
443 &quot;enableSpellCorrection&quot;: True or False, # Indicates if automatic spell correction is enabled in detect intent requests.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700444 &quot;enableStackdriverLogging&quot;: True or False, # Indicates if stackdriver logging is enabled for the agent. Please use agent.advanced_settings instead.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800445 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the agent. Required for the Agents.UpdateAgent method. Agents.CreateAgent populates the name automatically. Format: `projects//locations//agents/`.
446 &quot;securitySettings&quot;: &quot;A String&quot;, # Name of the SecuritySettings reference for the agent. Format: `projects//locations//securitySettings/`.
447 &quot;speechToTextSettings&quot;: { # Settings related to speech recognition. # Speech recognition related settings.
448 &quot;enableSpeechAdaptation&quot;: True or False, # Whether to use speech adaptation for speech recognition.
449 },
450 &quot;startFlow&quot;: &quot;A String&quot;, # Immutable. Name of the start flow in this agent. A start flow will be automatically created when the agent is created, and can only be deleted by deleting the agent. Format: `projects//locations//agents//flows/`.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700451 &quot;supportedLanguageCodes&quot;: [ # The list of all languages supported by the agent (except for the `default_language_code`).
452 &quot;A String&quot;,
453 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800454 &quot;timeZone&quot;: &quot;A String&quot;, # Required. The time zone of the agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
455}
456
457 updateMask: string, The mask to control which fields get updated. If the mask is not present, all fields will be updated.
458 x__xgafv: string, V1 error format.
459 Allowed values
460 1 - v1 error format
461 2 - v2 error format
462
463Returns:
464 An object of the form:
465
466 { # Agents are best described as Natural Language Understanding (NLU) modules that transform user requests into actionable data. You can include agents in your app, product, or service to determine user intent and respond to the user in a natural way. After you create an agent, you can add Intents, Entity Types, Flows, Fulfillments, Webhooks, and so on to manage the conversation flows..
yoshi-code-botb539cc42021-08-03 00:20:27 -0700467 &quot;advancedSettings&quot;: { # Hierarchical advanced settings for agent/flow/page/fulfillment/parameter. Settings exposed at lower level overrides the settings exposed at higher level. Hierarchy: Agent-&gt;Flow-&gt;Page-&gt;Fulfillment/Parameter. # Hierarchical advanced settings for this agent. The settings exposed at the lower level overrides the settings exposed at the higher level.
468 &quot;loggingSettings&quot;: { # Define behaviors on logging. # Settings for logging. Settings for Dialogflow History, Contact Center messages, StackDriver logs, and speech logging. Exposed at the following levels: - Agent level.
469 &quot;enableInteractionLogging&quot;: True or False, # If true, DF Interaction logging is currently enabled.
470 &quot;enableStackdriverLogging&quot;: True or False, # If true, StackDriver logging is currently enabled.
471 },
472 },
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800473 &quot;avatarUri&quot;: &quot;A String&quot;, # The URI of the agent&#x27;s avatar. Avatars are used throughout the Dialogflow console and in the self-hosted [Web Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo) integration.
yoshi-code-botb1eafb32021-06-15 00:26:02 -0700474 &quot;defaultLanguageCode&quot;: &quot;A String&quot;, # Required. Immutable. The default language of the agent as a language tag. See [Language Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) for a list of the currently supported language codes. This field cannot be set by the Agents.UpdateAgent method.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800475 &quot;description&quot;: &quot;A String&quot;, # The description of the agent. The maximum length is 500 characters. If exceeded, the request is rejected.
476 &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the agent, unique within the location.
477 &quot;enableSpellCorrection&quot;: True or False, # Indicates if automatic spell correction is enabled in detect intent requests.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700478 &quot;enableStackdriverLogging&quot;: True or False, # Indicates if stackdriver logging is enabled for the agent. Please use agent.advanced_settings instead.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800479 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the agent. Required for the Agents.UpdateAgent method. Agents.CreateAgent populates the name automatically. Format: `projects//locations//agents/`.
480 &quot;securitySettings&quot;: &quot;A String&quot;, # Name of the SecuritySettings reference for the agent. Format: `projects//locations//securitySettings/`.
481 &quot;speechToTextSettings&quot;: { # Settings related to speech recognition. # Speech recognition related settings.
482 &quot;enableSpeechAdaptation&quot;: True or False, # Whether to use speech adaptation for speech recognition.
483 },
484 &quot;startFlow&quot;: &quot;A String&quot;, # Immutable. Name of the start flow in this agent. A start flow will be automatically created when the agent is created, and can only be deleted by deleting the agent. Format: `projects//locations//agents//flows/`.
yoshi-code-bot44a67192021-05-02 03:48:02 -0700485 &quot;supportedLanguageCodes&quot;: [ # The list of all languages supported by the agent (except for the `default_language_code`).
486 &quot;A String&quot;,
487 ],
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800488 &quot;timeZone&quot;: &quot;A String&quot;, # Required. The time zone of the agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
489}</pre>
490</div>
491
492<div class="method">
493 <code class="details" id="restore">restore(name, body=None, x__xgafv=None)</code>
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700494 <pre>Restores the specified agent from a binary file. Replaces the current agent with a new one. Note that all existing resources in agent (e.g. intents, entity types, flows) will be removed. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) Note: You should always train flows prior to sending them queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800495
496Args:
497 name: string, Required. The name of the agent to restore into. Format: `projects//locations//agents/`. (required)
498 body: object, The request body.
499 The object takes the form of:
500
501{ # The request message for Agents.RestoreAgent.
502 &quot;agentContent&quot;: &quot;A String&quot;, # Uncompressed raw byte content for agent.
503 &quot;agentUri&quot;: &quot;A String&quot;, # The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to restore agent from. The format of this URI must be `gs:///`.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700504 &quot;restoreOption&quot;: &quot;A String&quot;, # Agent restore mode. If not specified, `KEEP` is assumed.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800505}
506
507 x__xgafv: string, V1 error format.
508 Allowed values
509 1 - v1 error format
510 2 - v2 error format
511
512Returns:
513 An object of the form:
514
515 { # This resource represents a long-running operation that is the result of a network API call.
516 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
517 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
518 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
519 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
520 {
521 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
522 },
523 ],
524 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
525 },
526 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
527 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
528 },
529 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
530 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
531 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
532 },
533}</pre>
534</div>
535
536<div class="method">
537 <code class="details" id="validate">validate(name, body=None, x__xgafv=None)</code>
538 <pre>Validates the specified agent and creates or updates validation results. The agent in draft version is validated. Please call this API after the training is completed to get the complete validation results.
539
540Args:
541 name: string, Required. The agent to validate. Format: `projects//locations//agents/`. (required)
542 body: object, The request body.
543 The object takes the form of:
544
545{ # The request message for Agents.ValidateAgent.
546 &quot;languageCode&quot;: &quot;A String&quot;, # If not specified, the agent&#x27;s default language is used.
547}
548
549 x__xgafv: string, V1 error format.
550 Allowed values
551 1 - v1 error format
552 2 - v2 error format
553
554Returns:
555 An object of the form:
556
557 { # The response message for Agents.GetAgentValidationResult.
558 &quot;flowValidationResults&quot;: [ # Contains all flow validation results.
559 { # The response message for Flows.GetFlowValidationResult.
560 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the flow validation result. Format: `projects//locations//agents//flows//validationResult`.
561 &quot;updateTime&quot;: &quot;A String&quot;, # Last time the flow was validated.
562 &quot;validationMessages&quot;: [ # Contains all validation messages.
563 { # Agent/flow validation message.
564 &quot;detail&quot;: &quot;A String&quot;, # The message detail.
565 &quot;resourceNames&quot;: [ # The resource names of the resources where the message is found.
566 { # Resource name and display name.
567 &quot;displayName&quot;: &quot;A String&quot;, # Display name.
568 &quot;name&quot;: &quot;A String&quot;, # Name.
569 },
570 ],
571 &quot;resourceType&quot;: &quot;A String&quot;, # The type of the resources where the message is found.
572 &quot;resources&quot;: [ # The names of the resources where the message is found.
573 &quot;A String&quot;,
574 ],
575 &quot;severity&quot;: &quot;A String&quot;, # Indicates the severity of the message.
576 },
577 ],
578 },
579 ],
580 &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the agent validation result. Format: `projects//locations//agents//validationResult`.
581}</pre>
582</div>
583
584</body></html>