/
package-info.java
365 lines (363 loc) · 16.7 KB
/
package-info.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
/*
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* A client to Dialogflow API
*
* <p>The interfaces provided are listed below, along with usage samples.
*
* <p>======================= AgentsClient =======================
*
* <p>Service Description: Service for managing [Agents][google.cloud.dialogflow.cx.v3.Agent].
*
* <p>Sample for AgentsClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (AgentsClient agentsClient = AgentsClient.create()) {
* AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]");
* Agent response = agentsClient.getAgent(name);
* }
* }</pre>
*
* <p>======================= ChangelogsClient =======================
*
* <p>Service Description: Service for managing
* [Changelogs][google.cloud.dialogflow.cx.v3.Changelog].
*
* <p>Sample for ChangelogsClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (ChangelogsClient changelogsClient = ChangelogsClient.create()) {
* ChangelogName name = ChangelogName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[CHANGELOG]");
* Changelog response = changelogsClient.getChangelog(name);
* }
* }</pre>
*
* <p>======================= DeploymentsClient =======================
*
* <p>Service Description: Service for managing
* [Deployments][google.cloud.dialogflow.cx.v3.Deployment].
*
* <p>Sample for DeploymentsClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (DeploymentsClient deploymentsClient = DeploymentsClient.create()) {
* DeploymentName name =
* DeploymentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[DEPLOYMENT]");
* Deployment response = deploymentsClient.getDeployment(name);
* }
* }</pre>
*
* <p>======================= EntityTypesClient =======================
*
* <p>Service Description: Service for managing
* [EntityTypes][google.cloud.dialogflow.cx.v3.EntityType].
*
* <p>Sample for EntityTypesClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (EntityTypesClient entityTypesClient = EntityTypesClient.create()) {
* EntityTypeName name =
* EntityTypeName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENTITY_TYPE]");
* EntityType response = entityTypesClient.getEntityType(name);
* }
* }</pre>
*
* <p>======================= EnvironmentsClient =======================
*
* <p>Service Description: Service for managing
* [Environments][google.cloud.dialogflow.cx.v3.Environment].
*
* <p>Sample for EnvironmentsClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (EnvironmentsClient environmentsClient = EnvironmentsClient.create()) {
* EnvironmentName name =
* EnvironmentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]");
* Environment response = environmentsClient.getEnvironment(name);
* }
* }</pre>
*
* <p>======================= ExperimentsClient =======================
*
* <p>Service Description: Service for managing
* [Experiments][google.cloud.dialogflow.cx.v3.Experiment].
*
* <p>Sample for ExperimentsClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (ExperimentsClient experimentsClient = ExperimentsClient.create()) {
* ExperimentName name =
* ExperimentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[ENVIRONMENT]", "[EXPERIMENT]");
* Experiment response = experimentsClient.getExperiment(name);
* }
* }</pre>
*
* <p>======================= FlowsClient =======================
*
* <p>Service Description: Service for managing [Flows][google.cloud.dialogflow.cx.v3.Flow].
*
* <p>Sample for FlowsClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (FlowsClient flowsClient = FlowsClient.create()) {
* AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]");
* Flow flow = Flow.newBuilder().build();
* Flow response = flowsClient.createFlow(parent, flow);
* }
* }</pre>
*
* <p>======================= GeneratorsClient =======================
*
* <p>Service Description: Service for managing
* [Generators][google.cloud.dialogflow.cx.v3.Generator]
*
* <p>Sample for GeneratorsClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (GeneratorsClient generatorsClient = GeneratorsClient.create()) {
* GeneratorName name = GeneratorName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[GENERATOR]");
* Generator response = generatorsClient.getGenerator(name);
* }
* }</pre>
*
* <p>======================= IntentsClient =======================
*
* <p>Service Description: Service for managing [Intents][google.cloud.dialogflow.cx.v3.Intent].
*
* <p>Sample for IntentsClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (IntentsClient intentsClient = IntentsClient.create()) {
* IntentName name = IntentName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[INTENT]");
* Intent response = intentsClient.getIntent(name);
* }
* }</pre>
*
* <p>======================= PagesClient =======================
*
* <p>Service Description: Service for managing [Pages][google.cloud.dialogflow.cx.v3.Page].
*
* <p>Sample for PagesClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (PagesClient pagesClient = PagesClient.create()) {
* PageName name = PageName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[PAGE]");
* Page response = pagesClient.getPage(name);
* }
* }</pre>
*
* <p>======================= SecuritySettingsServiceClient =======================
*
* <p>Service Description: Service for managing security settings for Dialogflow.
*
* <p>Sample for SecuritySettingsServiceClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SecuritySettingsServiceClient securitySettingsServiceClient =
* SecuritySettingsServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* SecuritySettings securitySettings = SecuritySettings.newBuilder().build();
* SecuritySettings response =
* securitySettingsServiceClient.createSecuritySettings(parent, securitySettings);
* }
* }</pre>
*
* <p>======================= SessionsClient =======================
*
* <p>Service Description: A session represents an interaction with a user. You retrieve user input
* and pass it to the [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to
* determine user intent and respond.
*
* <p>Sample for SessionsClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SessionsClient sessionsClient = SessionsClient.create()) {
* DetectIntentRequest request =
* DetectIntentRequest.newBuilder()
* .setSession(
* SessionName.ofProjectLocationAgentSessionName(
* "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]")
* .toString())
* .setQueryParams(QueryParameters.newBuilder().build())
* .setQueryInput(QueryInput.newBuilder().build())
* .setOutputAudioConfig(OutputAudioConfig.newBuilder().build())
* .build();
* DetectIntentResponse response = sessionsClient.detectIntent(request);
* }
* }</pre>
*
* <p>======================= SessionEntityTypesClient =======================
*
* <p>Service Description: Service for managing
* [SessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityType].
*
* <p>Sample for SessionEntityTypesClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (SessionEntityTypesClient sessionEntityTypesClient = SessionEntityTypesClient.create()) {
* SessionEntityTypeName name =
* SessionEntityTypeName.ofProjectLocationAgentSessionEntityTypeName(
* "[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]", "[ENTITY_TYPE]");
* SessionEntityType response = sessionEntityTypesClient.getSessionEntityType(name);
* }
* }</pre>
*
* <p>======================= TestCasesClient =======================
*
* <p>Service Description: Service for managing [Test Cases][google.cloud.dialogflow.cx.v3.TestCase]
* and [Test Case Results][google.cloud.dialogflow.cx.v3.TestCaseResult].
*
* <p>Sample for TestCasesClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (TestCasesClient testCasesClient = TestCasesClient.create()) {
* AgentName parent = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]");
* testCasesClient.batchDeleteTestCases(parent);
* }
* }</pre>
*
* <p>======================= TransitionRouteGroupsClient =======================
*
* <p>Service Description: Service for managing
* [TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
*
* <p>Sample for TransitionRouteGroupsClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (TransitionRouteGroupsClient transitionRouteGroupsClient =
* TransitionRouteGroupsClient.create()) {
* TransitionRouteGroupName name =
* TransitionRouteGroupName.ofProjectLocationAgentFlowTransitionRouteGroupName(
* "[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[TRANSITION_ROUTE_GROUP]");
* TransitionRouteGroup response = transitionRouteGroupsClient.getTransitionRouteGroup(name);
* }
* }</pre>
*
* <p>======================= VersionsClient =======================
*
* <p>Service Description: Service for managing [Versions][google.cloud.dialogflow.cx.v3.Version].
*
* <p>Sample for VersionsClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (VersionsClient versionsClient = VersionsClient.create()) {
* VersionName name =
* VersionName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]");
* Version response = versionsClient.getVersion(name);
* }
* }</pre>
*
* <p>======================= WebhooksClient =======================
*
* <p>Service Description: Service for managing [Webhooks][google.cloud.dialogflow.cx.v3.Webhook].
*
* <p>Sample for WebhooksClient:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (WebhooksClient webhooksClient = WebhooksClient.create()) {
* WebhookName name = WebhookName.of("[PROJECT]", "[LOCATION]", "[AGENT]", "[WEBHOOK]");
* Webhook response = webhooksClient.getWebhook(name);
* }
* }</pre>
*/
@Generated("by gapic-generator-java")
package com.google.cloud.dialogflow.cx.v3;
import javax.annotation.Generated;