blob: 7474bcb3e2c64638c486d61d79d56d19be126607 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -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_v2.html">Dialogflow API</a> . <a href="dialogflow_v2.projects.html">projects</a> . <a href="dialogflow_v2.projects.agent.html">agent</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="dialogflow_v2.projects.agent.entityTypes.html">entityTypes()</a></code>
79</p>
80<p class="firstline">Returns the entityTypes Resource.</p>
81
82<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070083 <code><a href="dialogflow_v2.projects.agent.environments.html">environments()</a></code>
84</p>
85<p class="firstline">Returns the environments Resource.</p>
86
87<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088 <code><a href="dialogflow_v2.projects.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_v2.projects.agent.sessions.html">sessions()</a></code>
94</p>
95<p class="firstline">Returns the sessions Resource.</p>
96
97<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070098 <code><a href="#close">close()</a></code></p>
99<p class="firstline">Close httplib2 connections.</p>
100<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700101 <code><a href="#export">export(parent, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700102<p class="firstline">Exports the specified agent to a ZIP file. Operation </p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700104 <code><a href="#getFulfillment">getFulfillment(name, x__xgafv=None)</a></code></p>
105<p class="firstline">Retrieves the fulfillment.</p>
106<p class="toc_element">
107 <code><a href="#getValidationResult">getValidationResult(parent, languageCode=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700108<p class="firstline">Gets agent validation result. Agent validation is performed during training time and is updated automatically when training is completed.</p>
Dan O'Mearadd494642020-05-01 07:42:23 -0700109<p class="toc_element">
110 <code><a href="#import_">import_(parent, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700111<p class="firstline">Imports the specified agent from a ZIP file. Uploads new intents and entity types without deleting the existing ones. Intents and entity types with the same name are replaced with the new versions from ImportAgentRequest. After the import, the imported draft agent will be trained automatically (unless disabled in agent settings). However, once the import is done, training may not be completed yet. Please call TrainAgent and wait for the operation it returns in order to train explicitly. Operation An operation which tracks when importing is complete. It only tracks when the draft agent is updated not when it is done training.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700112<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700113 <code><a href="#restore">restore(parent, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700114<p class="firstline">Restores the specified agent from a ZIP file. Replaces the current agent version with a new one. All the intents and entity types in the older version are deleted. After the restore, the restored draft agent will be trained automatically (unless disabled in agent settings). However, once the restore is done, training may not be completed yet. Please call TrainAgent and wait for the operation it returns in order to train explicitly. Operation An operation which tracks when restoring is complete. It only tracks when the draft agent is updated not when it is done training.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700115<p class="toc_element">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800116 <code><a href="#search">search(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700117<p class="firstline">Returns the list of agents. Since there is at most one conversational agent per project, this method is useful primarily for listing all agents across projects the caller has access to. One can achieve that with a wildcard project collection id "-". Refer to [List Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700118<p class="toc_element">
119 <code><a href="#search_next">search_next(previous_request, previous_response)</a></code></p>
120<p class="firstline">Retrieves the next page of results.</p>
121<p class="toc_element">
122 <code><a href="#train">train(parent, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700123<p class="firstline">Trains the specified agent. Operation </p>
Dan O'Mearadd494642020-05-01 07:42:23 -0700124<p class="toc_element">
125 <code><a href="#updateFulfillment">updateFulfillment(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
126<p class="firstline">Updates the fulfillment.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700127<h3>Method Details</h3>
128<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700129 <code class="details" id="close">close()</code>
130 <pre>Close httplib2 connections.</pre>
131</div>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700132
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700133<div class="method">
134 <code class="details" id="export">export(parent, body=None, x__xgafv=None)</code>
135 <pre>Exports the specified agent to a ZIP file. Operation
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700136
137Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700138 parent: string, Required. The project that the agent to export is associated with. Format: `projects/`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700139 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700140 The object takes the form of:
141
142{ # The request message for Agents.ExportAgent.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700143 &quot;agentUri&quot;: &quot;A String&quot;, # Required. 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700144 }
145
146 x__xgafv: string, V1 error format.
147 Allowed values
148 1 - v1 error format
149 2 - v2 error format
150
151Returns:
152 An object of the form:
153
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700154 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800155 &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.
156 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
157 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700158 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800159 &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`.
160 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
161 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700162 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800163 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700164 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700165 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700166 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700167 },
168 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800169 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800170 },
171 &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}`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700172 }</pre>
173</div>
174
175<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700176 <code class="details" id="getFulfillment">getFulfillment(name, x__xgafv=None)</code>
177 <pre>Retrieves the fulfillment.
178
179Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700180 name: string, Required. The name of the fulfillment. Format: `projects//agent/fulfillment`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700181 x__xgafv: string, V1 error format.
182 Allowed values
183 1 - v1 error format
184 2 - v2 error format
185
186Returns:
187 An object of the form:
188
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700189 { # By default, your agent responds to a matched intent with a static response. As an alternative, you can provide a more dynamic response by using fulfillment. When you enable fulfillment for an intent, Dialogflow responds to that intent by calling a service that you define. For example, if an end-user wants to schedule a haircut on Friday, your service can check your database and respond to the end-user with availability information for Friday. For more information, see the [fulfillment guide](https://cloud.google.com/dialogflow/docs/fulfillment-overview).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800190 &quot;enabled&quot;: True or False, # Optional. Whether fulfillment is enabled.
191 &quot;genericWebService&quot;: { # Represents configuration for a generic web service. Dialogflow supports two mechanisms for authentications: - Basic authentication with username and password. - Authentication with additional authentication headers. More information could be found at: https://cloud.google.com/dialogflow/docs/fulfillment-configure. # Configuration for a generic web service.
192 &quot;requestHeaders&quot;: { # Optional. The HTTP request headers to send together with fulfillment requests.
193 &quot;a_key&quot;: &quot;A String&quot;,
194 },
195 &quot;password&quot;: &quot;A String&quot;, # Optional. The password for HTTP Basic authentication.
196 &quot;username&quot;: &quot;A String&quot;, # Optional. The user name for HTTP Basic authentication.
197 &quot;isCloudFunction&quot;: True or False, # Optional. Indicates if generic web service is created through Cloud Functions integration. Defaults to false.
198 &quot;uri&quot;: &quot;A String&quot;, # Required. The fulfillment URI for receiving POST requests. It must use https protocol.
199 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700200 &quot;features&quot;: [ # Optional. The field defines whether the fulfillment is enabled for certain features.
201 { # Whether fulfillment is enabled for the specific feature.
202 &quot;type&quot;: &quot;A String&quot;, # The type of the feature that enabled for fulfillment.
203 },
204 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700205 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the fulfillment. Format: `projects//agent/fulfillment`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800206 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The human-readable name of the fulfillment, unique within the agent.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700207 }</pre>
Dan O'Mearadd494642020-05-01 07:42:23 -0700208</div>
209
210<div class="method">
211 <code class="details" id="getValidationResult">getValidationResult(parent, languageCode=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700212 <pre>Gets agent validation result. Agent validation is performed during training time and is updated automatically when training is completed.
Dan O'Mearadd494642020-05-01 07:42:23 -0700213
214Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700215 parent: string, Required. The project that the agent is associated with. Format: `projects/`. (required)
216 languageCode: string, Optional. The language for which you want a validation result. If not specified, the agent&#x27;s default language is used. [Many languages](https://cloud.google.com/dialogflow/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.
Dan O'Mearadd494642020-05-01 07:42:23 -0700217 x__xgafv: string, V1 error format.
218 Allowed values
219 1 - v1 error format
220 2 - v2 error format
221
222Returns:
223 An object of the form:
224
225 { # Represents the output of agent validation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700226 &quot;validationErrors&quot;: [ # Contains all validation errors.
Dan O'Mearadd494642020-05-01 07:42:23 -0700227 { # Represents a single validation error.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700228 &quot;entries&quot;: [ # The names of the entries that the error is associated with. Format: - &quot;projects//agent&quot;, if the error is associated with the entire agent. - &quot;projects//agent/intents/&quot;, if the error is associated with certain intents. - &quot;projects//agent/intents//trainingPhrases/&quot;, if the error is associated with certain intent training phrases. - &quot;projects//agent/intents//parameters/&quot;, if the error is associated with certain intent parameters. - &quot;projects//agent/entities/&quot;, if the error is associated with certain entities.
Bu Sun Kim65020912020-05-20 12:08:20 -0700229 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700230 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800231 &quot;severity&quot;: &quot;A String&quot;, # The severity of the error.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700232 &quot;errorMessage&quot;: &quot;A String&quot;, # The detailed error messsage.
Dan O'Mearadd494642020-05-01 07:42:23 -0700233 },
234 ],
235 }</pre>
236</div>
237
238<div class="method">
239 <code class="details" id="import_">import_(parent, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700240 <pre>Imports the specified agent from a ZIP file. Uploads new intents and entity types without deleting the existing ones. Intents and entity types with the same name are replaced with the new versions from ImportAgentRequest. After the import, the imported draft agent will be trained automatically (unless disabled in agent settings). However, once the import is done, training may not be completed yet. Please call TrainAgent and wait for the operation it returns in order to train explicitly. Operation An operation which tracks when importing is complete. It only tracks when the draft agent is updated not when it is done training.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700241
242Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700243 parent: string, Required. The project that the agent to import is associated with. Format: `projects/`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700244 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700245 The object takes the form of:
246
247{ # The request message for Agents.ImportAgent.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700248 &quot;agentContent&quot;: &quot;A String&quot;, # Zip compressed raw byte content for agent.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800249 &quot;agentUri&quot;: &quot;A String&quot;, # The URI to a Google Cloud Storage file containing the agent to import. Note: The URI must start with &quot;gs://&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700250 }
251
252 x__xgafv: string, V1 error format.
253 Allowed values
254 1 - v1 error format
255 2 - v2 error format
256
257Returns:
258 An object of the form:
259
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700260 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800261 &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.
262 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
263 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700264 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800265 &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`.
266 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
267 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700268 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800269 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700270 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700271 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700272 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700273 },
274 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800275 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800276 },
277 &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}`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700278 }</pre>
279</div>
280
281<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700282 <code class="details" id="restore">restore(parent, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700283 <pre>Restores the specified agent from a ZIP file. Replaces the current agent version with a new one. All the intents and entity types in the older version are deleted. After the restore, the restored draft agent will be trained automatically (unless disabled in agent settings). However, once the restore is done, training may not be completed yet. Please call TrainAgent and wait for the operation it returns in order to train explicitly. Operation An operation which tracks when restoring is complete. It only tracks when the draft agent is updated not when it is done training.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700284
285Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700286 parent: string, Required. The project that the agent to restore is associated with. Format: `projects/`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700287 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700288 The object takes the form of:
289
290{ # The request message for Agents.RestoreAgent.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700291 &quot;agentContent&quot;: &quot;A String&quot;, # Zip compressed raw byte content for agent.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800292 &quot;agentUri&quot;: &quot;A String&quot;, # The URI to a Google Cloud Storage file containing the agent to restore. Note: The URI must start with &quot;gs://&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700293 }
294
295 x__xgafv: string, V1 error format.
296 Allowed values
297 1 - v1 error format
298 2 - v2 error format
299
300Returns:
301 An object of the form:
302
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700303 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800304 &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.
305 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
306 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700307 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800308 &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`.
309 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
310 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700311 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800312 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700313 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700314 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700315 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700316 },
317 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800318 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800319 },
320 &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}`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700321 }</pre>
322</div>
323
324<div class="method">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800325 <code class="details" id="search">search(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700326 <pre>Returns the list of agents. Since there is at most one conversational agent per project, this method is useful primarily for listing all agents across projects the caller has access to. One can achieve that with a wildcard project collection id &quot;-&quot;. Refer to [List Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700327
328Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700329 parent: string, Required. The project to list agents from. Format: `projects/`. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700330 pageSize: integer, Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800331 pageToken: string, The next_page_token value returned from a previous list request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700332 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.SearchAgents.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800341 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700342 &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.
343 { # A Dialogflow agent is a virtual agent that handles conversations with your end-users. It is a natural language understanding module that understands the nuances of human language. Dialogflow translates end-user text or audio during a conversation to structured data that your apps and services can understand. You design and build a Dialogflow agent to handle the types of conversations required for your system. For more information about agents, see the [Agent guide](https://cloud.google.com/dialogflow/docs/agents-overview).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800344 &quot;timeZone&quot;: &quot;A String&quot;, # Required. The time zone of this agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800345 &quot;defaultLanguageCode&quot;: &quot;A String&quot;, # Required. The default language of the agent as a language tag. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. This field cannot be set by the `Update` method.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800346 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected.
347 &quot;matchMode&quot;: &quot;A String&quot;, # Optional. Determines how intents are detected from user queries.
348 &quot;avatarUri&quot;: &quot;A String&quot;, # Optional. 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.
349 &quot;enableLogging&quot;: True or False, # Optional. Determines whether this agent should log conversation queries.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800350 &quot;supportedLanguageCodes&quot;: [ # Optional. The list of all languages supported by this agent (except for the `default_language_code`).
351 &quot;A String&quot;,
352 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800353 &quot;tier&quot;: &quot;A String&quot;, # Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800354 &quot;displayName&quot;: &quot;A String&quot;, # Required. The name of this agent.
355 &quot;classificationThreshold&quot;: 3.14, # Optional. To filter out false positive results and still get variety in matched natural language inputs for your agent, you can tune the machine learning classification threshold. If the returned score value is less than the threshold value, then a fallback intent will be triggered or, if there are no fallback intents defined, no intent will be triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the default of 0.3 is used.
356 &quot;parent&quot;: &quot;A String&quot;, # Required. The project of this agent. Format: `projects/`.
357 &quot;apiVersion&quot;: &quot;A String&quot;, # Optional. API version displayed in Dialogflow console. If not specified, V2 API is assumed. Clients are free to query different service endpoints for different API versions. However, bots connectors and webhook calls will follow the specified API version.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800358 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700359 ],
360 }</pre>
361</div>
362
363<div class="method">
364 <code class="details" id="search_next">search_next(previous_request, previous_response)</code>
365 <pre>Retrieves the next page of results.
366
367Args:
368 previous_request: The request for the previous page. (required)
369 previous_response: The response from the request for the previous page. (required)
370
371Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700372 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700373 page. Returns None if there are no more items in the collection.
374 </pre>
375</div>
376
377<div class="method">
378 <code class="details" id="train">train(parent, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700379 <pre>Trains the specified agent. Operation
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700380
381Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700382 parent: string, Required. The project that the agent to train is associated with. Format: `projects/`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700383 body: object, The request body.
384 The object takes the form of:
385
386{ # The request message for Agents.TrainAgent.
387 }
388
389 x__xgafv: string, V1 error format.
390 Allowed values
391 1 - v1 error format
392 2 - v2 error format
393
394Returns:
395 An object of the form:
396
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700397 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800398 &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.
399 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
400 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700401 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800402 &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`.
403 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
404 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700405 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800406 &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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700407 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700408 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700409 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700410 },
411 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800412 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800413 },
414 &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}`.
Dan O'Mearadd494642020-05-01 07:42:23 -0700415 }</pre>
416</div>
417
418<div class="method">
419 <code class="details" id="updateFulfillment">updateFulfillment(name, body=None, updateMask=None, x__xgafv=None)</code>
420 <pre>Updates the fulfillment.
421
422Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700423 name: string, Required. The unique identifier of the fulfillment. Format: `projects//agent/fulfillment`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700424 body: object, The request body.
425 The object takes the form of:
426
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700427{ # By default, your agent responds to a matched intent with a static response. As an alternative, you can provide a more dynamic response by using fulfillment. When you enable fulfillment for an intent, Dialogflow responds to that intent by calling a service that you define. For example, if an end-user wants to schedule a haircut on Friday, your service can check your database and respond to the end-user with availability information for Friday. For more information, see the [fulfillment guide](https://cloud.google.com/dialogflow/docs/fulfillment-overview).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800428 &quot;enabled&quot;: True or False, # Optional. Whether fulfillment is enabled.
429 &quot;genericWebService&quot;: { # Represents configuration for a generic web service. Dialogflow supports two mechanisms for authentications: - Basic authentication with username and password. - Authentication with additional authentication headers. More information could be found at: https://cloud.google.com/dialogflow/docs/fulfillment-configure. # Configuration for a generic web service.
430 &quot;requestHeaders&quot;: { # Optional. The HTTP request headers to send together with fulfillment requests.
431 &quot;a_key&quot;: &quot;A String&quot;,
432 },
433 &quot;password&quot;: &quot;A String&quot;, # Optional. The password for HTTP Basic authentication.
434 &quot;username&quot;: &quot;A String&quot;, # Optional. The user name for HTTP Basic authentication.
435 &quot;isCloudFunction&quot;: True or False, # Optional. Indicates if generic web service is created through Cloud Functions integration. Defaults to false.
436 &quot;uri&quot;: &quot;A String&quot;, # Required. The fulfillment URI for receiving POST requests. It must use https protocol.
437 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700438 &quot;features&quot;: [ # Optional. The field defines whether the fulfillment is enabled for certain features.
439 { # Whether fulfillment is enabled for the specific feature.
440 &quot;type&quot;: &quot;A String&quot;, # The type of the feature that enabled for fulfillment.
441 },
442 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700443 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the fulfillment. Format: `projects//agent/fulfillment`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800444 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The human-readable name of the fulfillment, unique within the agent.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700445 }
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700446
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700447 updateMask: string, Required. The mask to control which fields get updated. If the mask is not present, all fields will be updated.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700448 x__xgafv: string, V1 error format.
449 Allowed values
450 1 - v1 error format
451 2 - v2 error format
452
453Returns:
454 An object of the form:
455
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700456 { # By default, your agent responds to a matched intent with a static response. As an alternative, you can provide a more dynamic response by using fulfillment. When you enable fulfillment for an intent, Dialogflow responds to that intent by calling a service that you define. For example, if an end-user wants to schedule a haircut on Friday, your service can check your database and respond to the end-user with availability information for Friday. For more information, see the [fulfillment guide](https://cloud.google.com/dialogflow/docs/fulfillment-overview).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800457 &quot;enabled&quot;: True or False, # Optional. Whether fulfillment is enabled.
458 &quot;genericWebService&quot;: { # Represents configuration for a generic web service. Dialogflow supports two mechanisms for authentications: - Basic authentication with username and password. - Authentication with additional authentication headers. More information could be found at: https://cloud.google.com/dialogflow/docs/fulfillment-configure. # Configuration for a generic web service.
459 &quot;requestHeaders&quot;: { # Optional. The HTTP request headers to send together with fulfillment requests.
460 &quot;a_key&quot;: &quot;A String&quot;,
461 },
462 &quot;password&quot;: &quot;A String&quot;, # Optional. The password for HTTP Basic authentication.
463 &quot;username&quot;: &quot;A String&quot;, # Optional. The user name for HTTP Basic authentication.
464 &quot;isCloudFunction&quot;: True or False, # Optional. Indicates if generic web service is created through Cloud Functions integration. Defaults to false.
465 &quot;uri&quot;: &quot;A String&quot;, # Required. The fulfillment URI for receiving POST requests. It must use https protocol.
466 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700467 &quot;features&quot;: [ # Optional. The field defines whether the fulfillment is enabled for certain features.
468 { # Whether fulfillment is enabled for the specific feature.
469 &quot;type&quot;: &quot;A String&quot;, # The type of the feature that enabled for fulfillment.
470 },
471 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700472 &quot;name&quot;: &quot;A String&quot;, # Required. The unique identifier of the fulfillment. Format: `projects//agent/fulfillment`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800473 &quot;displayName&quot;: &quot;A String&quot;, # Optional. The human-readable name of the fulfillment, unique within the agent.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700474 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700475</div>
476
477</body></html>