blob: 6e85bdad92e73498705e6d84d81da971a0cb2cca [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -07001<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_v2beta1.html">Dialogflow API</a> . <a href="dialogflow_v2beta1.projects.html">projects</a> . <a href="dialogflow_v2beta1.projects.locations.html">locations</a> . <a href="dialogflow_v2beta1.projects.locations.agent.html">agent</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="dialogflow_v2beta1.projects.locations.agent.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_v2beta1.projects.locations.agent.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_v2beta1.projects.locations.agent.intents.html">intents()</a></code>
89</p>
90<p class="firstline">Returns the intents Resource.</p>
91
92<p class="toc_element">
93 <code><a href="dialogflow_v2beta1.projects.locations.agent.sessions.html">sessions()</a></code>
94</p>
95<p class="firstline">Returns the sessions Resource.</p>
96
97<p class="toc_element">
98 <code><a href="#export">export(parent, body=None, x__xgafv=None)</a></code></p>
99<p class="firstline">Exports the specified agent to a ZIP file.</p>
100<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -0700101 <code><a href="#getFulfillment">getFulfillment(name, x__xgafv=None)</a></code></p>
102<p class="firstline">Retrieves the fulfillment.</p>
103<p class="toc_element">
104 <code><a href="#import_">import_(parent, body=None, x__xgafv=None)</a></code></p>
105<p class="firstline">Imports the specified agent from a ZIP file.</p>
106<p class="toc_element">
107 <code><a href="#restore">restore(parent, body=None, x__xgafv=None)</a></code></p>
108<p class="firstline">Restores the specified agent from a ZIP file.</p>
109<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700110 <code><a href="#search">search(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
111<p class="firstline">Returns the list of agents.</p>
112<p class="toc_element">
113 <code><a href="#search_next">search_next(previous_request, previous_response)</a></code></p>
114<p class="firstline">Retrieves the next page of results.</p>
115<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -0700116 <code><a href="#train">train(parent, body=None, x__xgafv=None)</a></code></p>
117<p class="firstline">Trains the specified agent.</p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700118<p class="toc_element">
119 <code><a href="#updateFulfillment">updateFulfillment(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
120<p class="firstline">Updates the fulfillment.</p>
Bu Sun Kim65020912020-05-20 12:08:20 -0700121<h3>Method Details</h3>
122<div class="method">
123 <code class="details" id="export">export(parent, body=None, x__xgafv=None)</code>
124 <pre>Exports the specified agent to a ZIP file.
125
126
127Operation &lt;response: ExportAgentResponse&gt;
128
129Args:
130 parent: string, Required. The project that the agent to export is associated with.
131Format: `projects/&lt;Project ID&gt;`. (required)
132 body: object, The request body.
133 The object takes the form of:
134
135{ # The request message for Agents.ExportAgent.
136 &quot;agentUri&quot;: &quot;A String&quot;, # Optional. The
137 # [Google Cloud Storage](https://cloud.google.com/storage/docs/)
138 # URI to export the agent to.
139 # The format of this URI must be `gs://&lt;bucket-name&gt;/&lt;object-name&gt;`.
140 # If left unspecified, the serialized agent is returned inline.
141 }
142
143 x__xgafv: string, V1 error format.
144 Allowed values
145 1 - v1 error format
146 2 - v2 error format
147
148Returns:
149 An object of the form:
150
151 { # This resource represents a long-running operation that is the result of a
152 # network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700153 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
154 # originally returns it. If you use the default HTTP mapping, the
155 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700156 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
157 # method returns no data on success, such as `Delete`, the response is
158 # `google.protobuf.Empty`. If the original method is standard
159 # `Get`/`Create`/`Update`, the response should be the resource. For other
160 # methods, the response should have the type `XxxResponse`, where `Xxx`
161 # is the original method name. For example, if the original method name
162 # is `TakeSnapshot()`, the inferred response type is
163 # `TakeSnapshotResponse`.
164 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
165 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700166 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
167 # If `true`, the operation is completed, and either `error` or `response` is
168 # available.
169 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
170 # different programming environments, including REST APIs and RPC APIs. It is
171 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
172 # three pieces of data: error code, error message, and error details.
173 #
174 # You can find out more about this error model and how to work with it in the
175 # [API Design Guide](https://cloud.google.com/apis/design/errors).
176 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
177 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
178 # message types for APIs to use.
179 {
180 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700181 },
182 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700183 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
184 # user-facing error message should be localized and sent in the
185 # google.rpc.Status.details field, or localized by the client.
186 },
187 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
188 # contains progress information and common metadata such as create time.
189 # Some services might not provide such metadata. Any method that returns a
190 # long-running operation should document the metadata type, if any.
191 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
192 },
193 }</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700194</div>
195
196<div class="method">
197 <code class="details" id="getFulfillment">getFulfillment(name, x__xgafv=None)</code>
198 <pre>Retrieves the fulfillment.
199
200Args:
201 name: string, Required. The name of the fulfillment.
202Format: `projects/&lt;Project ID&gt;/agent/fulfillment`. (required)
203 x__xgafv: string, V1 error format.
204 Allowed values
205 1 - v1 error format
206 2 - v2 error format
207
208Returns:
209 An object of the form:
210
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700211 { # By default, your agent responds to a matched intent with a static response.
212 # As an alternative, you can provide a more dynamic response by using
213 # fulfillment. When you enable fulfillment for an intent, Dialogflow responds
214 # to that intent by calling a service that you define. For example, if an
215 # end-user wants to schedule a haircut on Friday, your service can check your
216 # database and respond to the end-user with availability information for
217 # Friday.
218 #
219 # For more information, see the [fulfillment
220 # guide](https://cloud.google.com/dialogflow/docs/fulfillment-overview).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700221 &quot;features&quot;: [ # Optional. The field defines whether the fulfillment is enabled for certain features.
222 { # Whether fulfillment is enabled for the specific feature.
223 &quot;type&quot;: &quot;A String&quot;, # The type of the feature that enabled for fulfillment.
224 },
225 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700226 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The human-readable name of the fulfillment, unique within the agent.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700227 &quot;genericWebService&quot;: { # Represents configuration for a generic web service. # Configuration for a generic web service.
228 # Dialogflow supports two mechanisms for authentications:
229 # - Basic authentication with username and password.
230 # - Authentication with additional authentication headers.
231 # More information could be found at:
232 # https://cloud.google.com/dialogflow/docs/fulfillment-configure.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700233 &quot;requestHeaders&quot;: { # Optional. The HTTP request headers to send together with fulfillment requests.
234 &quot;a_key&quot;: &quot;A String&quot;,
235 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700236 &quot;uri&quot;: &quot;A String&quot;, # Required. The fulfillment URI for receiving POST requests.
237 # It must use https protocol.
238 &quot;isCloudFunction&quot;: True or False, # Optional. Indicates if generic web service is created through Cloud Functions
239 # integration. Defaults to false.
240 &quot;username&quot;: &quot;A String&quot;, # Optional. The user name for HTTP Basic authentication.
241 &quot;password&quot;: &quot;A String&quot;, # Optional. The password for HTTP Basic authentication.
Bu Sun Kim65020912020-05-20 12:08:20 -0700242 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700243 &quot;enabled&quot;: True or False, # Optional. Whether fulfillment is enabled.
244 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the fulfillment.
245 # Format: `projects/&lt;Project ID&gt;/agent/fulfillment`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700246 }</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700247</div>
248
249<div class="method">
250 <code class="details" id="import_">import_(parent, body=None, x__xgafv=None)</code>
251 <pre>Imports the specified agent from a ZIP file.
252
253Uploads new intents and entity types without deleting the existing ones.
254Intents and entity types with the same name are replaced with the new
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700255versions from ImportAgentRequest. After the import, the imported draft
256agent will be trained automatically (unless disabled in agent settings).
257However, once the import is done, training may not be completed yet. Please
258call TrainAgent and wait for the operation it returns in order to train
259explicitly.
Bu Sun Kim65020912020-05-20 12:08:20 -0700260
261
262Operation &lt;response: google.protobuf.Empty&gt;
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700263An operation which tracks when importing is complete. It only tracks
264when the draft agent is updated not when it is done training.
Bu Sun Kim65020912020-05-20 12:08:20 -0700265
266Args:
267 parent: string, Required. The project that the agent to import is associated with.
268Format: `projects/&lt;Project ID&gt;`. (required)
269 body: object, The request body.
270 The object takes the form of:
271
272{ # The request message for Agents.ImportAgent.
273 &quot;agentContent&quot;: &quot;A String&quot;, # Zip compressed raw byte content for agent.
274 &quot;agentUri&quot;: &quot;A String&quot;, # The URI to a Google Cloud Storage file containing the agent to import.
275 # Note: The URI must start with &quot;gs://&quot;.
276 }
277
278 x__xgafv: string, V1 error format.
279 Allowed values
280 1 - v1 error format
281 2 - v2 error format
282
283Returns:
284 An object of the form:
285
286 { # This resource represents a long-running operation that is the result of a
287 # network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700288 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
289 # originally returns it. If you use the default HTTP mapping, the
290 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700291 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
292 # method returns no data on success, such as `Delete`, the response is
293 # `google.protobuf.Empty`. If the original method is standard
294 # `Get`/`Create`/`Update`, the response should be the resource. For other
295 # methods, the response should have the type `XxxResponse`, where `Xxx`
296 # is the original method name. For example, if the original method name
297 # is `TakeSnapshot()`, the inferred response type is
298 # `TakeSnapshotResponse`.
299 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
300 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700301 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
302 # If `true`, the operation is completed, and either `error` or `response` is
303 # available.
304 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
305 # different programming environments, including REST APIs and RPC APIs. It is
306 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
307 # three pieces of data: error code, error message, and error details.
308 #
309 # You can find out more about this error model and how to work with it in the
310 # [API Design Guide](https://cloud.google.com/apis/design/errors).
311 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
312 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
313 # message types for APIs to use.
314 {
315 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
316 },
317 ],
318 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
319 # user-facing error message should be localized and sent in the
320 # google.rpc.Status.details field, or localized by the client.
321 },
322 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
323 # contains progress information and common metadata such as create time.
324 # Some services might not provide such metadata. Any method that returns a
325 # long-running operation should document the metadata type, if any.
326 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
327 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700328 }</pre>
329</div>
330
331<div class="method">
332 <code class="details" id="restore">restore(parent, body=None, x__xgafv=None)</code>
333 <pre>Restores the specified agent from a ZIP file.
334
335Replaces the current agent version with a new one. All the intents and
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700336entity types in the older version are deleted. After the restore, the
337restored draft agent will be trained automatically (unless disabled in
338agent settings). However, once the restore is done, training may not be
339completed yet. Please call TrainAgent and wait for the operation it
340returns in order to train explicitly.
Bu Sun Kim65020912020-05-20 12:08:20 -0700341
342
343Operation &lt;response: google.protobuf.Empty&gt;
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700344An operation which tracks when restoring is complete. It only tracks
345when the draft agent is updated not when it is done training.
Bu Sun Kim65020912020-05-20 12:08:20 -0700346
347Args:
348 parent: string, Required. The project that the agent to restore is associated with.
349Format: `projects/&lt;Project ID&gt;`. (required)
350 body: object, The request body.
351 The object takes the form of:
352
353{ # The request message for Agents.RestoreAgent.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700354 &quot;agentContent&quot;: &quot;A String&quot;, # Zip compressed raw byte content for agent.
Bu Sun Kim65020912020-05-20 12:08:20 -0700355 &quot;agentUri&quot;: &quot;A String&quot;, # The URI to a Google Cloud Storage file containing the agent to restore.
356 # Note: The URI must start with &quot;gs://&quot;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700357 }
358
359 x__xgafv: string, V1 error format.
360 Allowed values
361 1 - v1 error format
362 2 - v2 error format
363
364Returns:
365 An object of the form:
366
367 { # This resource represents a long-running operation that is the result of a
368 # network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700369 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
370 # originally returns it. If you use the default HTTP mapping, the
371 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700372 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
373 # method returns no data on success, such as `Delete`, the response is
374 # `google.protobuf.Empty`. If the original method is standard
375 # `Get`/`Create`/`Update`, the response should be the resource. For other
376 # methods, the response should have the type `XxxResponse`, where `Xxx`
377 # is the original method name. For example, if the original method name
378 # is `TakeSnapshot()`, the inferred response type is
379 # `TakeSnapshotResponse`.
380 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
381 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700382 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
383 # If `true`, the operation is completed, and either `error` or `response` is
384 # available.
385 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
386 # different programming environments, including REST APIs and RPC APIs. It is
387 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
388 # three pieces of data: error code, error message, and error details.
389 #
390 # You can find out more about this error model and how to work with it in the
391 # [API Design Guide](https://cloud.google.com/apis/design/errors).
392 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
393 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
394 # message types for APIs to use.
395 {
396 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
397 },
398 ],
399 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
400 # user-facing error message should be localized and sent in the
401 # google.rpc.Status.details field, or localized by the client.
402 },
403 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
404 # contains progress information and common metadata such as create time.
405 # Some services might not provide such metadata. Any method that returns a
406 # long-running operation should document the metadata type, if any.
407 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
408 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700409 }</pre>
410</div>
411
412<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700413 <code class="details" id="search">search(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
414 <pre>Returns the list of agents.
415Since there is at most one conversational agent per project, this method is
416useful primarily for listing all agents across projects the caller has
417access to. One can achieve that with a wildcard project collection id &quot;-&quot;.
418Refer to [List
419Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
420
421Args:
422 parent: string, Required. The project to list agents from.
423Format: `projects/&lt;Project ID or &#x27;-&#x27;&gt;`. (required)
424 pageSize: integer, Optional. The maximum number of items to return in a single page. By
425default 100 and at most 1000.
426 pageToken: string, Optional. The next_page_token value returned from a previous list request.
427 x__xgafv: string, V1 error format.
428 Allowed values
429 1 - v1 error format
430 2 - v2 error format
431
432Returns:
433 An object of the form:
434
435 { # The response message for Agents.SearchAgents.
436 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no
437 # more results in the list.
438 &quot;agents&quot;: [ # The list of agents. There will be a maximum number of items returned based
439 # on the page_size field in the request.
440 { # A Dialogflow agent is a virtual agent that handles conversations with your
441 # end-users. It is a natural language understanding module that understands the
442 # nuances of human language. Dialogflow translates end-user text or audio
443 # during a conversation to structured data that your apps and services can
444 # understand. You design and build a Dialogflow agent to handle the types of
445 # conversations required for your system.
446 #
447 # For more information about agents, see the
448 # [Agent guide](https://cloud.google.com/dialogflow/docs/agents-overview).
449 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this agent.
450 &quot;timeZone&quot;: &quot;A String&quot;, # Required. The time zone of this agent from the
451 # [time zone database](https://www.iana.org/time-zones), e.g.,
452 # America/New_York, Europe/Paris.
453 &quot;parent&quot;: &quot;A String&quot;, # Required. The project of this agent.
454 # Format: `projects/&lt;Project ID&gt;`.
455 &quot;classificationThreshold&quot;: 3.14, # Optional. To filter out false positive results and still get variety in
456 # matched natural language inputs for your agent, you can tune the machine
457 # learning classification threshold. If the returned score value is less than
458 # the threshold value, then a fallback intent will be triggered or, if there
459 # are no fallback intents defined, no intent will be triggered. The score
460 # values range from 0.0 (completely uncertain) to 1.0 (completely certain).
461 # If set to 0.0, the default of 0.3 is used.
462 &quot;defaultLanguageCode&quot;: &quot;A String&quot;, # Required. The default language of the agent as a language tag. See
463 # [Language
464 # Support](https://cloud.google.com/dialogflow/docs/reference/language)
465 # for a list of the currently supported language codes. This field cannot be
466 # set by the `Update` method.
467 &quot;enableLogging&quot;: True or False, # Optional. Determines whether this agent should log conversation queries.
468 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of this agent.
469 # The maximum length is 500 characters. If exceeded, the request is rejected.
470 &quot;apiVersion&quot;: &quot;A String&quot;, # Optional. API version displayed in Dialogflow console. If not specified,
471 # V2 API is assumed. Clients are free to query different service endpoints
472 # for different API versions. However, bots connectors and webhook calls will
473 # follow the specified API version.
474 &quot;tier&quot;: &quot;A String&quot;, # Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
475 &quot;avatarUri&quot;: &quot;A String&quot;, # Optional. The URI of the agent&#x27;s avatar.
476 # Avatars are used throughout the Dialogflow console and in the self-hosted
477 # [Web
478 # Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
479 # integration.
480 &quot;matchMode&quot;: &quot;A String&quot;, # Optional. Determines how intents are detected from user queries.
481 &quot;supportedLanguageCodes&quot;: [ # Optional. The list of all languages supported by this agent (except for the
482 # `default_language_code`).
483 &quot;A String&quot;,
484 ],
485 },
486 ],
487 }</pre>
488</div>
489
490<div class="method">
491 <code class="details" id="search_next">search_next(previous_request, previous_response)</code>
492 <pre>Retrieves the next page of results.
493
494Args:
495 previous_request: The request for the previous page. (required)
496 previous_response: The response from the request for the previous page. (required)
497
498Returns:
499 A request object that you can call &#x27;execute()&#x27; on to request the next
500 page. Returns None if there are no more items in the collection.
501 </pre>
502</div>
503
504<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700505 <code class="details" id="train">train(parent, body=None, x__xgafv=None)</code>
506 <pre>Trains the specified agent.
507
508
509Operation &lt;response: google.protobuf.Empty&gt;
510
511Args:
512 parent: string, Required. The project that the agent to train is associated with.
513Format: `projects/&lt;Project ID&gt;`. (required)
514 body: object, The request body.
515 The object takes the form of:
516
517{ # The request message for Agents.TrainAgent.
518 }
519
520 x__xgafv: string, V1 error format.
521 Allowed values
522 1 - v1 error format
523 2 - v2 error format
524
525Returns:
526 An object of the form:
527
528 { # This resource represents a long-running operation that is the result of a
529 # network API call.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700530 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
531 # originally returns it. If you use the default HTTP mapping, the
532 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700533 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
534 # method returns no data on success, such as `Delete`, the response is
535 # `google.protobuf.Empty`. If the original method is standard
536 # `Get`/`Create`/`Update`, the response should be the resource. For other
537 # methods, the response should have the type `XxxResponse`, where `Xxx`
538 # is the original method name. For example, if the original method name
539 # is `TakeSnapshot()`, the inferred response type is
540 # `TakeSnapshotResponse`.
541 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
542 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700543 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
544 # If `true`, the operation is completed, and either `error` or `response` is
545 # available.
546 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
547 # different programming environments, including REST APIs and RPC APIs. It is
548 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
549 # three pieces of data: error code, error message, and error details.
550 #
551 # You can find out more about this error model and how to work with it in the
552 # [API Design Guide](https://cloud.google.com/apis/design/errors).
553 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
554 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
555 # message types for APIs to use.
556 {
557 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
558 },
559 ],
560 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
561 # user-facing error message should be localized and sent in the
562 # google.rpc.Status.details field, or localized by the client.
563 },
564 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
565 # contains progress information and common metadata such as create time.
566 # Some services might not provide such metadata. Any method that returns a
567 # long-running operation should document the metadata type, if any.
568 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
569 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700570 }</pre>
571</div>
572
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700573<div class="method">
574 <code class="details" id="updateFulfillment">updateFulfillment(name, body=None, updateMask=None, x__xgafv=None)</code>
575 <pre>Updates the fulfillment.
576
577Args:
578 name: string, Required. The unique identifier of the fulfillment.
579Format: `projects/&lt;Project ID&gt;/agent/fulfillment`. (required)
580 body: object, The request body.
581 The object takes the form of:
582
583{ # By default, your agent responds to a matched intent with a static response.
584 # As an alternative, you can provide a more dynamic response by using
585 # fulfillment. When you enable fulfillment for an intent, Dialogflow responds
586 # to that intent by calling a service that you define. For example, if an
587 # end-user wants to schedule a haircut on Friday, your service can check your
588 # database and respond to the end-user with availability information for
589 # Friday.
590 #
591 # For more information, see the [fulfillment
592 # guide](https://cloud.google.com/dialogflow/docs/fulfillment-overview).
593 &quot;features&quot;: [ # Optional. The field defines whether the fulfillment is enabled for certain features.
594 { # Whether fulfillment is enabled for the specific feature.
595 &quot;type&quot;: &quot;A String&quot;, # The type of the feature that enabled for fulfillment.
596 },
597 ],
598 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The human-readable name of the fulfillment, unique within the agent.
599 &quot;genericWebService&quot;: { # Represents configuration for a generic web service. # Configuration for a generic web service.
600 # Dialogflow supports two mechanisms for authentications:
601 # - Basic authentication with username and password.
602 # - Authentication with additional authentication headers.
603 # More information could be found at:
604 # https://cloud.google.com/dialogflow/docs/fulfillment-configure.
605 &quot;requestHeaders&quot;: { # Optional. The HTTP request headers to send together with fulfillment requests.
606 &quot;a_key&quot;: &quot;A String&quot;,
607 },
608 &quot;uri&quot;: &quot;A String&quot;, # Required. The fulfillment URI for receiving POST requests.
609 # It must use https protocol.
610 &quot;isCloudFunction&quot;: True or False, # Optional. Indicates if generic web service is created through Cloud Functions
611 # integration. Defaults to false.
612 &quot;username&quot;: &quot;A String&quot;, # Optional. The user name for HTTP Basic authentication.
613 &quot;password&quot;: &quot;A String&quot;, # Optional. The password for HTTP Basic authentication.
614 },
615 &quot;enabled&quot;: True or False, # Optional. Whether fulfillment is enabled.
616 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the fulfillment.
617 # Format: `projects/&lt;Project ID&gt;/agent/fulfillment`.
618 }
619
620 updateMask: string, Required. The mask to control which fields get updated. If the mask is not
621present, all fields will be updated.
622 x__xgafv: string, V1 error format.
623 Allowed values
624 1 - v1 error format
625 2 - v2 error format
626
627Returns:
628 An object of the form:
629
630 { # By default, your agent responds to a matched intent with a static response.
631 # As an alternative, you can provide a more dynamic response by using
632 # fulfillment. When you enable fulfillment for an intent, Dialogflow responds
633 # to that intent by calling a service that you define. For example, if an
634 # end-user wants to schedule a haircut on Friday, your service can check your
635 # database and respond to the end-user with availability information for
636 # Friday.
637 #
638 # For more information, see the [fulfillment
639 # guide](https://cloud.google.com/dialogflow/docs/fulfillment-overview).
640 &quot;features&quot;: [ # Optional. The field defines whether the fulfillment is enabled for certain features.
641 { # Whether fulfillment is enabled for the specific feature.
642 &quot;type&quot;: &quot;A String&quot;, # The type of the feature that enabled for fulfillment.
643 },
644 ],
645 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The human-readable name of the fulfillment, unique within the agent.
646 &quot;genericWebService&quot;: { # Represents configuration for a generic web service. # Configuration for a generic web service.
647 # Dialogflow supports two mechanisms for authentications:
648 # - Basic authentication with username and password.
649 # - Authentication with additional authentication headers.
650 # More information could be found at:
651 # https://cloud.google.com/dialogflow/docs/fulfillment-configure.
652 &quot;requestHeaders&quot;: { # Optional. The HTTP request headers to send together with fulfillment requests.
653 &quot;a_key&quot;: &quot;A String&quot;,
654 },
655 &quot;uri&quot;: &quot;A String&quot;, # Required. The fulfillment URI for receiving POST requests.
656 # It must use https protocol.
657 &quot;isCloudFunction&quot;: True or False, # Optional. Indicates if generic web service is created through Cloud Functions
658 # integration. Defaults to false.
659 &quot;username&quot;: &quot;A String&quot;, # Optional. The user name for HTTP Basic authentication.
660 &quot;password&quot;: &quot;A String&quot;, # Optional. The password for HTTP Basic authentication.
661 },
662 &quot;enabled&quot;: True or False, # Optional. Whether fulfillment is enabled.
663 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the fulfillment.
664 # Format: `projects/&lt;Project ID&gt;/agent/fulfillment`.
665 }</pre>
666</div>
667
Bu Sun Kim65020912020-05-20 12:08:20 -0700668</body></html>