1<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.changelogs.html">changelogs()</a></code>
79</p>
80<p class="firstline">Returns the changelogs Resource.</p>
81
82<p class="toc_element">
83  <code><a href="dialogflow_v3.projects.locations.agents.entityTypes.html">entityTypes()</a></code>
84</p>
85<p class="firstline">Returns the entityTypes Resource.</p>
86
87<p class="toc_element">
88  <code><a href="dialogflow_v3.projects.locations.agents.environments.html">environments()</a></code>
89</p>
90<p class="firstline">Returns the environments Resource.</p>
91
92<p class="toc_element">
93  <code><a href="dialogflow_v3.projects.locations.agents.flows.html">flows()</a></code>
94</p>
95<p class="firstline">Returns the flows Resource.</p>
96
97<p class="toc_element">
98  <code><a href="dialogflow_v3.projects.locations.agents.intents.html">intents()</a></code>
99</p>
100<p class="firstline">Returns the intents Resource.</p>
101
102<p class="toc_element">
103  <code><a href="dialogflow_v3.projects.locations.agents.sessions.html">sessions()</a></code>
104</p>
105<p class="firstline">Returns the sessions Resource.</p>
106
107<p class="toc_element">
108  <code><a href="dialogflow_v3.projects.locations.agents.testCases.html">testCases()</a></code>
109</p>
110<p class="firstline">Returns the testCases Resource.</p>
111
112<p class="toc_element">
113  <code><a href="dialogflow_v3.projects.locations.agents.webhooks.html">webhooks()</a></code>
114</p>
115<p class="firstline">Returns the webhooks Resource.</p>
116
117<p class="toc_element">
118  <code><a href="#close">close()</a></code></p>
119<p class="firstline">Close httplib2 connections.</p>
120<p class="toc_element">
121  <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
122<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>
123<p class="toc_element">
124  <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
125<p class="firstline">Deletes the specified agent.</p>
126<p class="toc_element">
127  <code><a href="#export">export(name, body=None, x__xgafv=None)</a></code></p>
128<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>
129<p class="toc_element">
130  <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
131<p class="firstline">Retrieves the specified agent.</p>
132<p class="toc_element">
133  <code><a href="#getValidationResult">getValidationResult(name, languageCode=None, x__xgafv=None)</a></code></p>
134<p class="firstline">Gets the latest agent validation result. Agent validation is performed when ValidateAgent is called.</p>
135<p class="toc_element">
136  <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
137<p class="firstline">Returns the list of all agents in the specified location.</p>
138<p class="toc_element">
139  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
140<p class="firstline">Retrieves the next page of results.</p>
141<p class="toc_element">
142  <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
143<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>
144<p class="toc_element">
145  <code><a href="#restore">restore(name, body=None, x__xgafv=None)</a></code></p>
146<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>
147<p class="toc_element">
148  <code><a href="#validate">validate(name, body=None, x__xgafv=None)</a></code></p>
149<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>
150<h3>Method Details</h3>
151<div class="method">
152    <code class="details" id="close">close()</code>
153  <pre>Close httplib2 connections.</pre>
154</div>
155
156<div class="method">
157    <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
158  <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).
159
160Args:
161  parent: string, Required. The location to create a agent for. Format: `projects//locations/`. (required)
162  body: object, The request body.
163    The object takes the form of:
164
165{ # 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..
166  &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.
167    &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.
168      &quot;enableInteractionLogging&quot;: True or False, # If true, DF Interaction logging is currently enabled.
169      &quot;enableStackdriverLogging&quot;: True or False, # If true, StackDriver logging is currently enabled.
170    },
171  },
172  &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.
173  &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.
174  &quot;description&quot;: &quot;A String&quot;, # The description of the agent. The maximum length is 500 characters. If exceeded, the request is rejected.
175  &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the agent, unique within the location.
176  &quot;enableSpellCorrection&quot;: True or False, # Indicates if automatic spell correction is enabled in detect intent requests.
177  &quot;enableStackdriverLogging&quot;: True or False, # Indicates if stackdriver logging is enabled for the agent. Please use agent.advanced_settings instead.
178  &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/`.
179  &quot;securitySettings&quot;: &quot;A String&quot;, # Name of the SecuritySettings reference for the agent. Format: `projects//locations//securitySettings/`.
180  &quot;speechToTextSettings&quot;: { # Settings related to speech recognition. # Speech recognition related settings.
181    &quot;enableSpeechAdaptation&quot;: True or False, # Whether to use speech adaptation for speech recognition.
182  },
183  &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/`.
184  &quot;supportedLanguageCodes&quot;: [ # The list of all languages supported by the agent (except for the `default_language_code`).
185    &quot;A String&quot;,
186  ],
187  &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.
188}
189
190  x__xgafv: string, V1 error format.
191    Allowed values
192      1 - v1 error format
193      2 - v2 error format
194
195Returns:
196  An object of the form:
197
198    { # 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..
199  &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.
200    &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.
201      &quot;enableInteractionLogging&quot;: True or False, # If true, DF Interaction logging is currently enabled.
202      &quot;enableStackdriverLogging&quot;: True or False, # If true, StackDriver logging is currently enabled.
203    },
204  },
205  &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.
206  &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.
207  &quot;description&quot;: &quot;A String&quot;, # The description of the agent. The maximum length is 500 characters. If exceeded, the request is rejected.
208  &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the agent, unique within the location.
209  &quot;enableSpellCorrection&quot;: True or False, # Indicates if automatic spell correction is enabled in detect intent requests.
210  &quot;enableStackdriverLogging&quot;: True or False, # Indicates if stackdriver logging is enabled for the agent. Please use agent.advanced_settings instead.
211  &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/`.
212  &quot;securitySettings&quot;: &quot;A String&quot;, # Name of the SecuritySettings reference for the agent. Format: `projects//locations//securitySettings/`.
213  &quot;speechToTextSettings&quot;: { # Settings related to speech recognition. # Speech recognition related settings.
214    &quot;enableSpeechAdaptation&quot;: True or False, # Whether to use speech adaptation for speech recognition.
215  },
216  &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/`.
217  &quot;supportedLanguageCodes&quot;: [ # The list of all languages supported by the agent (except for the `default_language_code`).
218    &quot;A String&quot;,
219  ],
220  &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.
221}</pre>
222</div>
223
224<div class="method">
225    <code class="details" id="delete">delete(name, x__xgafv=None)</code>
226  <pre>Deletes the specified agent.
227
228Args:
229  name: string, Required. The name of the agent to delete. Format: `projects//locations//agents/`. (required)
230  x__xgafv: string, V1 error format.
231    Allowed values
232      1 - v1 error format
233      2 - v2 error format
234
235Returns:
236  An object of the form:
237
238    { # 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 `{}`.
239}</pre>
240</div>
241
242<div class="method">
243    <code class="details" id="export">export(name, body=None, x__xgafv=None)</code>
244  <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
245
246Args:
247  name: string, Required. The name of the agent to export. Format: `projects//locations//agents/`. (required)
248  body: object, The request body.
249    The object takes the form of:
250
251{ # The request message for Agents.ExportAgent.
252  &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.
253  &quot;environment&quot;: &quot;A String&quot;, # Optional. Environment name. If not set, draft environment is assumed. Format: `projects//locations//agents//environments/`.
254}
255
256  x__xgafv: string, V1 error format.
257    Allowed values
258      1 - v1 error format
259      2 - v2 error format
260
261Returns:
262  An object of the form:
263
264    { # This resource represents a long-running operation that is the result of a network API call.
265  &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.
266  &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.
267    &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
268    &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
269      {
270        &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
271      },
272    ],
273    &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.
274  },
275  &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.
276    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
277  },
278  &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}`.
279  &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`.
280    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
281  },
282}</pre>
283</div>
284
285<div class="method">
286    <code class="details" id="get">get(name, x__xgafv=None)</code>
287  <pre>Retrieves the specified agent.
288
289Args:
290  name: string, Required. The name of the agent. Format: `projects//locations//agents/`. (required)
291  x__xgafv: string, V1 error format.
292    Allowed values
293      1 - v1 error format
294      2 - v2 error format
295
296Returns:
297  An object of the form:
298
299    { # 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..
300  &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.
301    &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.
302      &quot;enableInteractionLogging&quot;: True or False, # If true, DF Interaction logging is currently enabled.
303      &quot;enableStackdriverLogging&quot;: True or False, # If true, StackDriver logging is currently enabled.
304    },
305  },
306  &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.
307  &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.
308  &quot;description&quot;: &quot;A String&quot;, # The description of the agent. The maximum length is 500 characters. If exceeded, the request is rejected.
309  &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the agent, unique within the location.
310  &quot;enableSpellCorrection&quot;: True or False, # Indicates if automatic spell correction is enabled in detect intent requests.
311  &quot;enableStackdriverLogging&quot;: True or False, # Indicates if stackdriver logging is enabled for the agent. Please use agent.advanced_settings instead.
312  &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/`.
313  &quot;securitySettings&quot;: &quot;A String&quot;, # Name of the SecuritySettings reference for the agent. Format: `projects//locations//securitySettings/`.
314  &quot;speechToTextSettings&quot;: { # Settings related to speech recognition. # Speech recognition related settings.
315    &quot;enableSpeechAdaptation&quot;: True or False, # Whether to use speech adaptation for speech recognition.
316  },
317  &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/`.
318  &quot;supportedLanguageCodes&quot;: [ # The list of all languages supported by the agent (except for the `default_language_code`).
319    &quot;A String&quot;,
320  ],
321  &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.
322}</pre>
323</div>
324
325<div class="method">
326    <code class="details" id="getValidationResult">getValidationResult(name, languageCode=None, x__xgafv=None)</code>
327  <pre>Gets the latest agent validation result. Agent validation is performed when ValidateAgent is called.
328
329Args:
330  name: string, Required. The agent name. Format: `projects//locations//agents//validationResult`. (required)
331  languageCode: string, If not specified, the agent&#x27;s default language is used.
332  x__xgafv: string, V1 error format.
333    Allowed values
334      1 - v1 error format
335      2 - v2 error format
336
337Returns:
338  An object of the form:
339
340    { # The response message for Agents.GetAgentValidationResult.
341  &quot;flowValidationResults&quot;: [ # Contains all flow validation results.
342    { # The response message for Flows.GetFlowValidationResult.
343      &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the flow validation result. Format: `projects//locations//agents//flows//validationResult`.
344      &quot;updateTime&quot;: &quot;A String&quot;, # Last time the flow was validated.
345      &quot;validationMessages&quot;: [ # Contains all validation messages.
346        { # Agent/flow validation message.
347          &quot;detail&quot;: &quot;A String&quot;, # The message detail.
348          &quot;resourceNames&quot;: [ # The resource names of the resources where the message is found.
349            { # Resource name and display name.
350              &quot;displayName&quot;: &quot;A String&quot;, # Display name.
351              &quot;name&quot;: &quot;A String&quot;, # Name.
352            },
353          ],
354          &quot;resourceType&quot;: &quot;A String&quot;, # The type of the resources where the message is found.
355          &quot;resources&quot;: [ # The names of the resources where the message is found.
356            &quot;A String&quot;,
357          ],
358          &quot;severity&quot;: &quot;A String&quot;, # Indicates the severity of the message.
359        },
360      ],
361    },
362  ],
363  &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the agent validation result. Format: `projects//locations//agents//validationResult`.
364}</pre>
365</div>
366
367<div class="method">
368    <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
369  <pre>Returns the list of all agents in the specified location.
370
371Args:
372  parent: string, Required. The location to list all agents for. Format: `projects//locations/`. (required)
373  pageSize: integer, The maximum number of items to return in a single page. By default 100 and at most 1000.
374  pageToken: string, The next_page_token value returned from a previous list request.
375  x__xgafv: string, V1 error format.
376    Allowed values
377      1 - v1 error format
378      2 - v2 error format
379
380Returns:
381  An object of the form:
382
383    { # The response message for Agents.ListAgents.
384  &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.
385    { # 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..
386      &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.
387        &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.
388          &quot;enableInteractionLogging&quot;: True or False, # If true, DF Interaction logging is currently enabled.
389          &quot;enableStackdriverLogging&quot;: True or False, # If true, StackDriver logging is currently enabled.
390        },
391      },
392      &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.
393      &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.
394      &quot;description&quot;: &quot;A String&quot;, # The description of the agent. The maximum length is 500 characters. If exceeded, the request is rejected.
395      &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the agent, unique within the location.
396      &quot;enableSpellCorrection&quot;: True or False, # Indicates if automatic spell correction is enabled in detect intent requests.
397      &quot;enableStackdriverLogging&quot;: True or False, # Indicates if stackdriver logging is enabled for the agent. Please use agent.advanced_settings instead.
398      &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/`.
399      &quot;securitySettings&quot;: &quot;A String&quot;, # Name of the SecuritySettings reference for the agent. Format: `projects//locations//securitySettings/`.
400      &quot;speechToTextSettings&quot;: { # Settings related to speech recognition. # Speech recognition related settings.
401        &quot;enableSpeechAdaptation&quot;: True or False, # Whether to use speech adaptation for speech recognition.
402      },
403      &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/`.
404      &quot;supportedLanguageCodes&quot;: [ # The list of all languages supported by the agent (except for the `default_language_code`).
405        &quot;A String&quot;,
406      ],
407      &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.
408    },
409  ],
410  &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.
411}</pre>
412</div>
413
414<div class="method">
415    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
416  <pre>Retrieves the next page of results.
417
418Args:
419  previous_request: The request for the previous page. (required)
420  previous_response: The response from the request for the previous page. (required)
421
422Returns:
423  A request object that you can call &#x27;execute()&#x27; on to request the next
424  page. Returns None if there are no more items in the collection.
425    </pre>
426</div>
427
428<div class="method">
429    <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
430  <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).
431
432Args:
433  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)
434  body: object, The request body.
435    The object takes the form of:
436
437{ # 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..
438  &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.
439    &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.
440      &quot;enableInteractionLogging&quot;: True or False, # If true, DF Interaction logging is currently enabled.
441      &quot;enableStackdriverLogging&quot;: True or False, # If true, StackDriver logging is currently enabled.
442    },
443  },
444  &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.
445  &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.
446  &quot;description&quot;: &quot;A String&quot;, # The description of the agent. The maximum length is 500 characters. If exceeded, the request is rejected.
447  &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the agent, unique within the location.
448  &quot;enableSpellCorrection&quot;: True or False, # Indicates if automatic spell correction is enabled in detect intent requests.
449  &quot;enableStackdriverLogging&quot;: True or False, # Indicates if stackdriver logging is enabled for the agent. Please use agent.advanced_settings instead.
450  &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/`.
451  &quot;securitySettings&quot;: &quot;A String&quot;, # Name of the SecuritySettings reference for the agent. Format: `projects//locations//securitySettings/`.
452  &quot;speechToTextSettings&quot;: { # Settings related to speech recognition. # Speech recognition related settings.
453    &quot;enableSpeechAdaptation&quot;: True or False, # Whether to use speech adaptation for speech recognition.
454  },
455  &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/`.
456  &quot;supportedLanguageCodes&quot;: [ # The list of all languages supported by the agent (except for the `default_language_code`).
457    &quot;A String&quot;,
458  ],
459  &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.
460}
461
462  updateMask: string, The mask to control which fields get updated. If the mask is not present, all fields will be updated.
463  x__xgafv: string, V1 error format.
464    Allowed values
465      1 - v1 error format
466      2 - v2 error format
467
468Returns:
469  An object of the form:
470
471    { # 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..
472  &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.
473    &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.
474      &quot;enableInteractionLogging&quot;: True or False, # If true, DF Interaction logging is currently enabled.
475      &quot;enableStackdriverLogging&quot;: True or False, # If true, StackDriver logging is currently enabled.
476    },
477  },
478  &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.
479  &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.
480  &quot;description&quot;: &quot;A String&quot;, # The description of the agent. The maximum length is 500 characters. If exceeded, the request is rejected.
481  &quot;displayName&quot;: &quot;A String&quot;, # Required. The human-readable name of the agent, unique within the location.
482  &quot;enableSpellCorrection&quot;: True or False, # Indicates if automatic spell correction is enabled in detect intent requests.
483  &quot;enableStackdriverLogging&quot;: True or False, # Indicates if stackdriver logging is enabled for the agent. Please use agent.advanced_settings instead.
484  &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/`.
485  &quot;securitySettings&quot;: &quot;A String&quot;, # Name of the SecuritySettings reference for the agent. Format: `projects//locations//securitySettings/`.
486  &quot;speechToTextSettings&quot;: { # Settings related to speech recognition. # Speech recognition related settings.
487    &quot;enableSpeechAdaptation&quot;: True or False, # Whether to use speech adaptation for speech recognition.
488  },
489  &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/`.
490  &quot;supportedLanguageCodes&quot;: [ # The list of all languages supported by the agent (except for the `default_language_code`).
491    &quot;A String&quot;,
492  ],
493  &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.
494}</pre>
495</div>
496
497<div class="method">
498    <code class="details" id="restore">restore(name, body=None, x__xgafv=None)</code>
499  <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).
500
501Args:
502  name: string, Required. The name of the agent to restore into. Format: `projects//locations//agents/`. (required)
503  body: object, The request body.
504    The object takes the form of:
505
506{ # The request message for Agents.RestoreAgent.
507  &quot;agentContent&quot;: &quot;A String&quot;, # Uncompressed raw byte content for agent.
508  &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:///`.
509  &quot;restoreOption&quot;: &quot;A String&quot;, # Agent restore mode. If not specified, `KEEP` is assumed.
510}
511
512  x__xgafv: string, V1 error format.
513    Allowed values
514      1 - v1 error format
515      2 - v2 error format
516
517Returns:
518  An object of the form:
519
520    { # This resource represents a long-running operation that is the result of a network API call.
521  &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.
522  &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.
523    &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
524    &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
525      {
526        &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
527      },
528    ],
529    &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.
530  },
531  &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.
532    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
533  },
534  &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}`.
535  &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`.
536    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
537  },
538}</pre>
539</div>
540
541<div class="method">
542    <code class="details" id="validate">validate(name, body=None, x__xgafv=None)</code>
543  <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.
544
545Args:
546  name: string, Required. The agent to validate. Format: `projects//locations//agents/`. (required)
547  body: object, The request body.
548    The object takes the form of:
549
550{ # The request message for Agents.ValidateAgent.
551  &quot;languageCode&quot;: &quot;A String&quot;, # If not specified, the agent&#x27;s default language is used.
552}
553
554  x__xgafv: string, V1 error format.
555    Allowed values
556      1 - v1 error format
557      2 - v2 error format
558
559Returns:
560  An object of the form:
561
562    { # The response message for Agents.GetAgentValidationResult.
563  &quot;flowValidationResults&quot;: [ # Contains all flow validation results.
564    { # The response message for Flows.GetFlowValidationResult.
565      &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the flow validation result. Format: `projects//locations//agents//flows//validationResult`.
566      &quot;updateTime&quot;: &quot;A String&quot;, # Last time the flow was validated.
567      &quot;validationMessages&quot;: [ # Contains all validation messages.
568        { # Agent/flow validation message.
569          &quot;detail&quot;: &quot;A String&quot;, # The message detail.
570          &quot;resourceNames&quot;: [ # The resource names of the resources where the message is found.
571            { # Resource name and display name.
572              &quot;displayName&quot;: &quot;A String&quot;, # Display name.
573              &quot;name&quot;: &quot;A String&quot;, # Name.
574            },
575          ],
576          &quot;resourceType&quot;: &quot;A String&quot;, # The type of the resources where the message is found.
577          &quot;resources&quot;: [ # The names of the resources where the message is found.
578            &quot;A String&quot;,
579          ],
580          &quot;severity&quot;: &quot;A String&quot;, # Indicates the severity of the message.
581        },
582      ],
583    },
584  ],
585  &quot;name&quot;: &quot;A String&quot;, # The unique identifier of the agent validation result. Format: `projects//locations//agents//validationResult`.
586}</pre>
587</div>
588
589</body></html>