@ondewo/nlu-client-typescript 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +191 -0
- package/README.md +27 -0
- package/api/google/api/annotations_pb.d.ts +6 -0
- package/api/google/api/annotations_pb.js +48 -0
- package/api/google/protobuf/any_pb.d.ts +28 -0
- package/api/google/protobuf/any_pb.js +275 -0
- package/api/google/protobuf/empty_pb.d.ts +18 -0
- package/api/google/protobuf/empty_pb.js +141 -0
- package/api/google/protobuf/field_mask_pb.d.ts +24 -0
- package/api/google/protobuf/field_mask_pb.js +196 -0
- package/api/google/protobuf/struct_pb.d.ts +99 -0
- package/api/google/protobuf/struct_pb.js +948 -0
- package/api/google/protobuf/timestamp_pb.d.ts +26 -0
- package/api/google/protobuf/timestamp_pb.js +236 -0
- package/api/google/rpc/status_pb.d.ts +33 -0
- package/api/google/rpc/status_pb.js +262 -0
- package/api/google/type/latlng_pb.d.ts +26 -0
- package/api/google/type/latlng_pb.js +200 -0
- package/api/ondewo/nlu/agent_grpc_web_pb.d.ts +489 -0
- package/api/ondewo/nlu/agent_grpc_web_pb.js +2476 -0
- package/api/ondewo/nlu/agent_pb.d.ts +2079 -0
- package/api/ondewo/nlu/agent_pb.js +16648 -0
- package/api/ondewo/nlu/aiservices_grpc_web_pb.d.ts +115 -0
- package/api/ondewo/nlu/aiservices_grpc_web_pb.js +569 -0
- package/api/ondewo/nlu/aiservices_pb.d.ts +933 -0
- package/api/ondewo/nlu/aiservices_pb.js +7601 -0
- package/api/ondewo/nlu/common_pb.d.ts +26 -0
- package/api/ondewo/nlu/common_pb.js +179 -0
- package/api/ondewo/nlu/context_grpc_web_pb.d.ts +92 -0
- package/api/ondewo/nlu/context_grpc_web_pb.js +447 -0
- package/api/ondewo/nlu/context_pb.d.ts +218 -0
- package/api/ondewo/nlu/context_pb.js +1788 -0
- package/api/ondewo/nlu/entity_type_grpc_web_pb.d.ts +165 -0
- package/api/ondewo/nlu/entity_type_grpc_web_pb.js +817 -0
- package/api/ondewo/nlu/entity_type_pb.d.ts +756 -0
- package/api/ondewo/nlu/entity_type_pb.js +5970 -0
- package/api/ondewo/nlu/intent_grpc_web_pb.d.ts +345 -0
- package/api/ondewo/nlu/intent_grpc_web_pb.js +1738 -0
- package/api/ondewo/nlu/intent_pb.d.ts +2344 -0
- package/api/ondewo/nlu/intent_pb.js +18784 -0
- package/api/ondewo/nlu/operation_metadata_pb.d.ts +112 -0
- package/api/ondewo/nlu/operation_metadata_pb.js +740 -0
- package/api/ondewo/nlu/operations_grpc_web_pb.d.ts +68 -0
- package/api/ondewo/nlu/operations_grpc_web_pb.js +331 -0
- package/api/ondewo/nlu/operations_pb.d.ts +236 -0
- package/api/ondewo/nlu/operations_pb.js +1826 -0
- package/api/ondewo/nlu/project_role_grpc_web_pb.d.ts +80 -0
- package/api/ondewo/nlu/project_role_grpc_web_pb.js +386 -0
- package/api/ondewo/nlu/project_role_pb.d.ts +220 -0
- package/api/ondewo/nlu/project_role_pb.js +1713 -0
- package/api/ondewo/nlu/project_statistics_grpc_web_pb.d.ts +116 -0
- package/api/ondewo/nlu/project_statistics_grpc_web_pb.js +571 -0
- package/api/ondewo/nlu/project_statistics_pb.d.ts +92 -0
- package/api/ondewo/nlu/project_statistics_pb.js +724 -0
- package/api/ondewo/nlu/server_statistics_grpc_web_pb.d.ts +57 -0
- package/api/ondewo/nlu/server_statistics_grpc_web_pb.js +264 -0
- package/api/ondewo/nlu/server_statistics_pb.d.ts +25 -0
- package/api/ondewo/nlu/server_statistics_pb.js +176 -0
- package/api/ondewo/nlu/session_grpc_web_pb.d.ts +176 -0
- package/api/ondewo/nlu/session_grpc_web_pb.js +884 -0
- package/api/ondewo/nlu/session_pb.d.ts +1192 -0
- package/api/ondewo/nlu/session_pb.js +9762 -0
- package/api/ondewo/nlu/user_grpc_web_pb.d.ts +200 -0
- package/api/ondewo/nlu/user_grpc_web_pb.js +998 -0
- package/api/ondewo/nlu/user_pb.d.ts +489 -0
- package/api/ondewo/nlu/user_pb.js +4057 -0
- package/api/ondewo/nlu/utility_grpc_web_pb.d.ts +115 -0
- package/api/ondewo/nlu/utility_grpc_web_pb.js +567 -0
- package/api/ondewo/nlu/utility_pb.d.ts +708 -0
- package/api/ondewo/nlu/utility_pb.js +5914 -0
- package/api/ondewo/nlu/webhook_grpc_web_pb.d.ts +55 -0
- package/api/ondewo/nlu/webhook_grpc_web_pb.js +268 -0
- package/api/ondewo/nlu/webhook_pb.d.ts +155 -0
- package/api/ondewo/nlu/webhook_pb.js +1267 -0
- package/api/ondewo/qa/qa_grpc_web_pb.d.ts +104 -0
- package/api/ondewo/qa/qa_grpc_web_pb.js +508 -0
- package/api/ondewo/qa/qa_pb.d.ts +304 -0
- package/api/ondewo/qa/qa_pb.js +2553 -0
- package/package.json +18 -0
- package/public-api.d.ts +38 -0
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview gRPC-Web generated client stub for ondewo.nlu
|
|
3
|
+
* @enhanceable
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
/* eslint-disable */
|
|
11
|
+
// @ts-nocheck
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
const grpc = {};
|
|
16
|
+
grpc.web = require('grpc-web');
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
var google_api_annotations_pb = require('../../google/api/annotations_pb.js')
|
|
20
|
+
|
|
21
|
+
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
|
|
22
|
+
|
|
23
|
+
var google_protobuf_field_mask_pb = require('google-protobuf/google/protobuf/field_mask_pb.js')
|
|
24
|
+
const proto = {};
|
|
25
|
+
proto.ondewo = {};
|
|
26
|
+
proto.ondewo.nlu = require('./context_pb.js');
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @param {string} hostname
|
|
30
|
+
* @param {?Object} credentials
|
|
31
|
+
* @param {?grpc.web.ClientOptions} options
|
|
32
|
+
* @constructor
|
|
33
|
+
* @struct
|
|
34
|
+
* @final
|
|
35
|
+
*/
|
|
36
|
+
proto.ondewo.nlu.ContextsClient =
|
|
37
|
+
function(hostname, credentials, options) {
|
|
38
|
+
if (!options) options = {};
|
|
39
|
+
options.format = 'binary';
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
|
43
|
+
*/
|
|
44
|
+
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @private @const {string} The hostname
|
|
48
|
+
*/
|
|
49
|
+
this.hostname_ = hostname;
|
|
50
|
+
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @param {string} hostname
|
|
56
|
+
* @param {?Object} credentials
|
|
57
|
+
* @param {?grpc.web.ClientOptions} options
|
|
58
|
+
* @constructor
|
|
59
|
+
* @struct
|
|
60
|
+
* @final
|
|
61
|
+
*/
|
|
62
|
+
proto.ondewo.nlu.ContextsPromiseClient =
|
|
63
|
+
function(hostname, credentials, options) {
|
|
64
|
+
if (!options) options = {};
|
|
65
|
+
options.format = 'binary';
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
|
69
|
+
*/
|
|
70
|
+
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @private @const {string} The hostname
|
|
74
|
+
*/
|
|
75
|
+
this.hostname_ = hostname;
|
|
76
|
+
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @const
|
|
82
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
83
|
+
* !proto.ondewo.nlu.ListContextsRequest,
|
|
84
|
+
* !proto.ondewo.nlu.ListContextsResponse>}
|
|
85
|
+
*/
|
|
86
|
+
const methodDescriptor_Contexts_ListContexts = new grpc.web.MethodDescriptor(
|
|
87
|
+
'/ondewo.nlu.Contexts/ListContexts',
|
|
88
|
+
grpc.web.MethodType.UNARY,
|
|
89
|
+
proto.ondewo.nlu.ListContextsRequest,
|
|
90
|
+
proto.ondewo.nlu.ListContextsResponse,
|
|
91
|
+
/**
|
|
92
|
+
* @param {!proto.ondewo.nlu.ListContextsRequest} request
|
|
93
|
+
* @return {!Uint8Array}
|
|
94
|
+
*/
|
|
95
|
+
function(request) {
|
|
96
|
+
return request.serializeBinary();
|
|
97
|
+
},
|
|
98
|
+
proto.ondewo.nlu.ListContextsResponse.deserializeBinary
|
|
99
|
+
);
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @param {!proto.ondewo.nlu.ListContextsRequest} request The
|
|
104
|
+
* request proto
|
|
105
|
+
* @param {?Object<string, string>} metadata User defined
|
|
106
|
+
* call metadata
|
|
107
|
+
* @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.ListContextsResponse)}
|
|
108
|
+
* callback The callback function(error, response)
|
|
109
|
+
* @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.ListContextsResponse>|undefined}
|
|
110
|
+
* The XHR Node Readable Stream
|
|
111
|
+
*/
|
|
112
|
+
proto.ondewo.nlu.ContextsClient.prototype.listContexts =
|
|
113
|
+
function(request, metadata, callback) {
|
|
114
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
115
|
+
'/ondewo.nlu.Contexts/ListContexts',
|
|
116
|
+
request,
|
|
117
|
+
metadata || {},
|
|
118
|
+
methodDescriptor_Contexts_ListContexts,
|
|
119
|
+
callback);
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @param {!proto.ondewo.nlu.ListContextsRequest} request The
|
|
125
|
+
* request proto
|
|
126
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
127
|
+
* call metadata
|
|
128
|
+
* @return {!Promise<!proto.ondewo.nlu.ListContextsResponse>}
|
|
129
|
+
* Promise that resolves to the response
|
|
130
|
+
*/
|
|
131
|
+
proto.ondewo.nlu.ContextsPromiseClient.prototype.listContexts =
|
|
132
|
+
function(request, metadata) {
|
|
133
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
134
|
+
'/ondewo.nlu.Contexts/ListContexts',
|
|
135
|
+
request,
|
|
136
|
+
metadata || {},
|
|
137
|
+
methodDescriptor_Contexts_ListContexts);
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @const
|
|
143
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
144
|
+
* !proto.ondewo.nlu.GetContextRequest,
|
|
145
|
+
* !proto.ondewo.nlu.Context>}
|
|
146
|
+
*/
|
|
147
|
+
const methodDescriptor_Contexts_GetContext = new grpc.web.MethodDescriptor(
|
|
148
|
+
'/ondewo.nlu.Contexts/GetContext',
|
|
149
|
+
grpc.web.MethodType.UNARY,
|
|
150
|
+
proto.ondewo.nlu.GetContextRequest,
|
|
151
|
+
proto.ondewo.nlu.Context,
|
|
152
|
+
/**
|
|
153
|
+
* @param {!proto.ondewo.nlu.GetContextRequest} request
|
|
154
|
+
* @return {!Uint8Array}
|
|
155
|
+
*/
|
|
156
|
+
function(request) {
|
|
157
|
+
return request.serializeBinary();
|
|
158
|
+
},
|
|
159
|
+
proto.ondewo.nlu.Context.deserializeBinary
|
|
160
|
+
);
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* @param {!proto.ondewo.nlu.GetContextRequest} request The
|
|
165
|
+
* request proto
|
|
166
|
+
* @param {?Object<string, string>} metadata User defined
|
|
167
|
+
* call metadata
|
|
168
|
+
* @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.Context)}
|
|
169
|
+
* callback The callback function(error, response)
|
|
170
|
+
* @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.Context>|undefined}
|
|
171
|
+
* The XHR Node Readable Stream
|
|
172
|
+
*/
|
|
173
|
+
proto.ondewo.nlu.ContextsClient.prototype.getContext =
|
|
174
|
+
function(request, metadata, callback) {
|
|
175
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
176
|
+
'/ondewo.nlu.Contexts/GetContext',
|
|
177
|
+
request,
|
|
178
|
+
metadata || {},
|
|
179
|
+
methodDescriptor_Contexts_GetContext,
|
|
180
|
+
callback);
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @param {!proto.ondewo.nlu.GetContextRequest} request The
|
|
186
|
+
* request proto
|
|
187
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
188
|
+
* call metadata
|
|
189
|
+
* @return {!Promise<!proto.ondewo.nlu.Context>}
|
|
190
|
+
* Promise that resolves to the response
|
|
191
|
+
*/
|
|
192
|
+
proto.ondewo.nlu.ContextsPromiseClient.prototype.getContext =
|
|
193
|
+
function(request, metadata) {
|
|
194
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
195
|
+
'/ondewo.nlu.Contexts/GetContext',
|
|
196
|
+
request,
|
|
197
|
+
metadata || {},
|
|
198
|
+
methodDescriptor_Contexts_GetContext);
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* @const
|
|
204
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
205
|
+
* !proto.ondewo.nlu.CreateContextRequest,
|
|
206
|
+
* !proto.ondewo.nlu.Context>}
|
|
207
|
+
*/
|
|
208
|
+
const methodDescriptor_Contexts_CreateContext = new grpc.web.MethodDescriptor(
|
|
209
|
+
'/ondewo.nlu.Contexts/CreateContext',
|
|
210
|
+
grpc.web.MethodType.UNARY,
|
|
211
|
+
proto.ondewo.nlu.CreateContextRequest,
|
|
212
|
+
proto.ondewo.nlu.Context,
|
|
213
|
+
/**
|
|
214
|
+
* @param {!proto.ondewo.nlu.CreateContextRequest} request
|
|
215
|
+
* @return {!Uint8Array}
|
|
216
|
+
*/
|
|
217
|
+
function(request) {
|
|
218
|
+
return request.serializeBinary();
|
|
219
|
+
},
|
|
220
|
+
proto.ondewo.nlu.Context.deserializeBinary
|
|
221
|
+
);
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* @param {!proto.ondewo.nlu.CreateContextRequest} request The
|
|
226
|
+
* request proto
|
|
227
|
+
* @param {?Object<string, string>} metadata User defined
|
|
228
|
+
* call metadata
|
|
229
|
+
* @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.Context)}
|
|
230
|
+
* callback The callback function(error, response)
|
|
231
|
+
* @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.Context>|undefined}
|
|
232
|
+
* The XHR Node Readable Stream
|
|
233
|
+
*/
|
|
234
|
+
proto.ondewo.nlu.ContextsClient.prototype.createContext =
|
|
235
|
+
function(request, metadata, callback) {
|
|
236
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
237
|
+
'/ondewo.nlu.Contexts/CreateContext',
|
|
238
|
+
request,
|
|
239
|
+
metadata || {},
|
|
240
|
+
methodDescriptor_Contexts_CreateContext,
|
|
241
|
+
callback);
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @param {!proto.ondewo.nlu.CreateContextRequest} request The
|
|
247
|
+
* request proto
|
|
248
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
249
|
+
* call metadata
|
|
250
|
+
* @return {!Promise<!proto.ondewo.nlu.Context>}
|
|
251
|
+
* Promise that resolves to the response
|
|
252
|
+
*/
|
|
253
|
+
proto.ondewo.nlu.ContextsPromiseClient.prototype.createContext =
|
|
254
|
+
function(request, metadata) {
|
|
255
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
256
|
+
'/ondewo.nlu.Contexts/CreateContext',
|
|
257
|
+
request,
|
|
258
|
+
metadata || {},
|
|
259
|
+
methodDescriptor_Contexts_CreateContext);
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* @const
|
|
265
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
266
|
+
* !proto.ondewo.nlu.UpdateContextRequest,
|
|
267
|
+
* !proto.ondewo.nlu.Context>}
|
|
268
|
+
*/
|
|
269
|
+
const methodDescriptor_Contexts_UpdateContext = new grpc.web.MethodDescriptor(
|
|
270
|
+
'/ondewo.nlu.Contexts/UpdateContext',
|
|
271
|
+
grpc.web.MethodType.UNARY,
|
|
272
|
+
proto.ondewo.nlu.UpdateContextRequest,
|
|
273
|
+
proto.ondewo.nlu.Context,
|
|
274
|
+
/**
|
|
275
|
+
* @param {!proto.ondewo.nlu.UpdateContextRequest} request
|
|
276
|
+
* @return {!Uint8Array}
|
|
277
|
+
*/
|
|
278
|
+
function(request) {
|
|
279
|
+
return request.serializeBinary();
|
|
280
|
+
},
|
|
281
|
+
proto.ondewo.nlu.Context.deserializeBinary
|
|
282
|
+
);
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* @param {!proto.ondewo.nlu.UpdateContextRequest} request The
|
|
287
|
+
* request proto
|
|
288
|
+
* @param {?Object<string, string>} metadata User defined
|
|
289
|
+
* call metadata
|
|
290
|
+
* @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.Context)}
|
|
291
|
+
* callback The callback function(error, response)
|
|
292
|
+
* @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.Context>|undefined}
|
|
293
|
+
* The XHR Node Readable Stream
|
|
294
|
+
*/
|
|
295
|
+
proto.ondewo.nlu.ContextsClient.prototype.updateContext =
|
|
296
|
+
function(request, metadata, callback) {
|
|
297
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
298
|
+
'/ondewo.nlu.Contexts/UpdateContext',
|
|
299
|
+
request,
|
|
300
|
+
metadata || {},
|
|
301
|
+
methodDescriptor_Contexts_UpdateContext,
|
|
302
|
+
callback);
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* @param {!proto.ondewo.nlu.UpdateContextRequest} request The
|
|
308
|
+
* request proto
|
|
309
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
310
|
+
* call metadata
|
|
311
|
+
* @return {!Promise<!proto.ondewo.nlu.Context>}
|
|
312
|
+
* Promise that resolves to the response
|
|
313
|
+
*/
|
|
314
|
+
proto.ondewo.nlu.ContextsPromiseClient.prototype.updateContext =
|
|
315
|
+
function(request, metadata) {
|
|
316
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
317
|
+
'/ondewo.nlu.Contexts/UpdateContext',
|
|
318
|
+
request,
|
|
319
|
+
metadata || {},
|
|
320
|
+
methodDescriptor_Contexts_UpdateContext);
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* @const
|
|
326
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
327
|
+
* !proto.ondewo.nlu.DeleteContextRequest,
|
|
328
|
+
* !proto.google.protobuf.Empty>}
|
|
329
|
+
*/
|
|
330
|
+
const methodDescriptor_Contexts_DeleteContext = new grpc.web.MethodDescriptor(
|
|
331
|
+
'/ondewo.nlu.Contexts/DeleteContext',
|
|
332
|
+
grpc.web.MethodType.UNARY,
|
|
333
|
+
proto.ondewo.nlu.DeleteContextRequest,
|
|
334
|
+
google_protobuf_empty_pb.Empty,
|
|
335
|
+
/**
|
|
336
|
+
* @param {!proto.ondewo.nlu.DeleteContextRequest} request
|
|
337
|
+
* @return {!Uint8Array}
|
|
338
|
+
*/
|
|
339
|
+
function(request) {
|
|
340
|
+
return request.serializeBinary();
|
|
341
|
+
},
|
|
342
|
+
google_protobuf_empty_pb.Empty.deserializeBinary
|
|
343
|
+
);
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* @param {!proto.ondewo.nlu.DeleteContextRequest} request The
|
|
348
|
+
* request proto
|
|
349
|
+
* @param {?Object<string, string>} metadata User defined
|
|
350
|
+
* call metadata
|
|
351
|
+
* @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
|
|
352
|
+
* callback The callback function(error, response)
|
|
353
|
+
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
|
|
354
|
+
* The XHR Node Readable Stream
|
|
355
|
+
*/
|
|
356
|
+
proto.ondewo.nlu.ContextsClient.prototype.deleteContext =
|
|
357
|
+
function(request, metadata, callback) {
|
|
358
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
359
|
+
'/ondewo.nlu.Contexts/DeleteContext',
|
|
360
|
+
request,
|
|
361
|
+
metadata || {},
|
|
362
|
+
methodDescriptor_Contexts_DeleteContext,
|
|
363
|
+
callback);
|
|
364
|
+
};
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* @param {!proto.ondewo.nlu.DeleteContextRequest} request The
|
|
369
|
+
* request proto
|
|
370
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
371
|
+
* call metadata
|
|
372
|
+
* @return {!Promise<!proto.google.protobuf.Empty>}
|
|
373
|
+
* Promise that resolves to the response
|
|
374
|
+
*/
|
|
375
|
+
proto.ondewo.nlu.ContextsPromiseClient.prototype.deleteContext =
|
|
376
|
+
function(request, metadata) {
|
|
377
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
378
|
+
'/ondewo.nlu.Contexts/DeleteContext',
|
|
379
|
+
request,
|
|
380
|
+
metadata || {},
|
|
381
|
+
methodDescriptor_Contexts_DeleteContext);
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* @const
|
|
387
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
388
|
+
* !proto.ondewo.nlu.DeleteAllContextsRequest,
|
|
389
|
+
* !proto.google.protobuf.Empty>}
|
|
390
|
+
*/
|
|
391
|
+
const methodDescriptor_Contexts_DeleteAllContexts = new grpc.web.MethodDescriptor(
|
|
392
|
+
'/ondewo.nlu.Contexts/DeleteAllContexts',
|
|
393
|
+
grpc.web.MethodType.UNARY,
|
|
394
|
+
proto.ondewo.nlu.DeleteAllContextsRequest,
|
|
395
|
+
google_protobuf_empty_pb.Empty,
|
|
396
|
+
/**
|
|
397
|
+
* @param {!proto.ondewo.nlu.DeleteAllContextsRequest} request
|
|
398
|
+
* @return {!Uint8Array}
|
|
399
|
+
*/
|
|
400
|
+
function(request) {
|
|
401
|
+
return request.serializeBinary();
|
|
402
|
+
},
|
|
403
|
+
google_protobuf_empty_pb.Empty.deserializeBinary
|
|
404
|
+
);
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* @param {!proto.ondewo.nlu.DeleteAllContextsRequest} request The
|
|
409
|
+
* request proto
|
|
410
|
+
* @param {?Object<string, string>} metadata User defined
|
|
411
|
+
* call metadata
|
|
412
|
+
* @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
|
|
413
|
+
* callback The callback function(error, response)
|
|
414
|
+
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
|
|
415
|
+
* The XHR Node Readable Stream
|
|
416
|
+
*/
|
|
417
|
+
proto.ondewo.nlu.ContextsClient.prototype.deleteAllContexts =
|
|
418
|
+
function(request, metadata, callback) {
|
|
419
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
420
|
+
'/ondewo.nlu.Contexts/DeleteAllContexts',
|
|
421
|
+
request,
|
|
422
|
+
metadata || {},
|
|
423
|
+
methodDescriptor_Contexts_DeleteAllContexts,
|
|
424
|
+
callback);
|
|
425
|
+
};
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* @param {!proto.ondewo.nlu.DeleteAllContextsRequest} request The
|
|
430
|
+
* request proto
|
|
431
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
432
|
+
* call metadata
|
|
433
|
+
* @return {!Promise<!proto.google.protobuf.Empty>}
|
|
434
|
+
* Promise that resolves to the response
|
|
435
|
+
*/
|
|
436
|
+
proto.ondewo.nlu.ContextsPromiseClient.prototype.deleteAllContexts =
|
|
437
|
+
function(request, metadata) {
|
|
438
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
439
|
+
'/ondewo.nlu.Contexts/DeleteAllContexts',
|
|
440
|
+
request,
|
|
441
|
+
metadata || {},
|
|
442
|
+
methodDescriptor_Contexts_DeleteAllContexts);
|
|
443
|
+
};
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
module.exports = proto.ondewo.nlu;
|
|
447
|
+
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import * as jspb from 'google-protobuf'
|
|
2
|
+
|
|
3
|
+
import * as google_api_annotations_pb from '../../google/api/annotations_pb';
|
|
4
|
+
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
|
|
5
|
+
import * as google_protobuf_field_mask_pb from 'google-protobuf/google/protobuf/field_mask_pb';
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export class Context extends jspb.Message {
|
|
9
|
+
getName(): string;
|
|
10
|
+
setName(value: string): Context;
|
|
11
|
+
|
|
12
|
+
getLifespanCount(): number;
|
|
13
|
+
setLifespanCount(value: number): Context;
|
|
14
|
+
|
|
15
|
+
getParametersMap(): jspb.Map<string, Context.Parameter>;
|
|
16
|
+
clearParametersMap(): Context;
|
|
17
|
+
|
|
18
|
+
getLifespanTime(): number;
|
|
19
|
+
setLifespanTime(value: number): Context;
|
|
20
|
+
|
|
21
|
+
serializeBinary(): Uint8Array;
|
|
22
|
+
toObject(includeInstance?: boolean): Context.AsObject;
|
|
23
|
+
static toObject(includeInstance: boolean, msg: Context): Context.AsObject;
|
|
24
|
+
static serializeBinaryToWriter(message: Context, writer: jspb.BinaryWriter): void;
|
|
25
|
+
static deserializeBinary(bytes: Uint8Array): Context;
|
|
26
|
+
static deserializeBinaryFromReader(message: Context, reader: jspb.BinaryReader): Context;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export namespace Context {
|
|
30
|
+
export type AsObject = {
|
|
31
|
+
name: string,
|
|
32
|
+
lifespanCount: number,
|
|
33
|
+
parametersMap: Array<[string, Context.Parameter.AsObject]>,
|
|
34
|
+
lifespanTime: number,
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export class Parameter extends jspb.Message {
|
|
38
|
+
getName(): string;
|
|
39
|
+
setName(value: string): Parameter;
|
|
40
|
+
|
|
41
|
+
getDisplayName(): string;
|
|
42
|
+
setDisplayName(value: string): Parameter;
|
|
43
|
+
|
|
44
|
+
getValue(): string;
|
|
45
|
+
setValue(value: string): Parameter;
|
|
46
|
+
|
|
47
|
+
getValueOriginal(): string;
|
|
48
|
+
setValueOriginal(value: string): Parameter;
|
|
49
|
+
|
|
50
|
+
serializeBinary(): Uint8Array;
|
|
51
|
+
toObject(includeInstance?: boolean): Parameter.AsObject;
|
|
52
|
+
static toObject(includeInstance: boolean, msg: Parameter): Parameter.AsObject;
|
|
53
|
+
static serializeBinaryToWriter(message: Parameter, writer: jspb.BinaryWriter): void;
|
|
54
|
+
static deserializeBinary(bytes: Uint8Array): Parameter;
|
|
55
|
+
static deserializeBinaryFromReader(message: Parameter, reader: jspb.BinaryReader): Parameter;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export namespace Parameter {
|
|
59
|
+
export type AsObject = {
|
|
60
|
+
name: string,
|
|
61
|
+
displayName: string,
|
|
62
|
+
value: string,
|
|
63
|
+
valueOriginal: string,
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export class ListContextsRequest extends jspb.Message {
|
|
70
|
+
getParent(): string;
|
|
71
|
+
setParent(value: string): ListContextsRequest;
|
|
72
|
+
|
|
73
|
+
getPageToken(): string;
|
|
74
|
+
setPageToken(value: string): ListContextsRequest;
|
|
75
|
+
|
|
76
|
+
serializeBinary(): Uint8Array;
|
|
77
|
+
toObject(includeInstance?: boolean): ListContextsRequest.AsObject;
|
|
78
|
+
static toObject(includeInstance: boolean, msg: ListContextsRequest): ListContextsRequest.AsObject;
|
|
79
|
+
static serializeBinaryToWriter(message: ListContextsRequest, writer: jspb.BinaryWriter): void;
|
|
80
|
+
static deserializeBinary(bytes: Uint8Array): ListContextsRequest;
|
|
81
|
+
static deserializeBinaryFromReader(message: ListContextsRequest, reader: jspb.BinaryReader): ListContextsRequest;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export namespace ListContextsRequest {
|
|
85
|
+
export type AsObject = {
|
|
86
|
+
parent: string,
|
|
87
|
+
pageToken: string,
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export class ListContextsResponse extends jspb.Message {
|
|
92
|
+
getContextsList(): Array<Context>;
|
|
93
|
+
setContextsList(value: Array<Context>): ListContextsResponse;
|
|
94
|
+
clearContextsList(): ListContextsResponse;
|
|
95
|
+
addContexts(value?: Context, index?: number): Context;
|
|
96
|
+
|
|
97
|
+
getNextPageToken(): string;
|
|
98
|
+
setNextPageToken(value: string): ListContextsResponse;
|
|
99
|
+
|
|
100
|
+
serializeBinary(): Uint8Array;
|
|
101
|
+
toObject(includeInstance?: boolean): ListContextsResponse.AsObject;
|
|
102
|
+
static toObject(includeInstance: boolean, msg: ListContextsResponse): ListContextsResponse.AsObject;
|
|
103
|
+
static serializeBinaryToWriter(message: ListContextsResponse, writer: jspb.BinaryWriter): void;
|
|
104
|
+
static deserializeBinary(bytes: Uint8Array): ListContextsResponse;
|
|
105
|
+
static deserializeBinaryFromReader(message: ListContextsResponse, reader: jspb.BinaryReader): ListContextsResponse;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export namespace ListContextsResponse {
|
|
109
|
+
export type AsObject = {
|
|
110
|
+
contextsList: Array<Context.AsObject>,
|
|
111
|
+
nextPageToken: string,
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export class GetContextRequest extends jspb.Message {
|
|
116
|
+
getName(): string;
|
|
117
|
+
setName(value: string): GetContextRequest;
|
|
118
|
+
|
|
119
|
+
serializeBinary(): Uint8Array;
|
|
120
|
+
toObject(includeInstance?: boolean): GetContextRequest.AsObject;
|
|
121
|
+
static toObject(includeInstance: boolean, msg: GetContextRequest): GetContextRequest.AsObject;
|
|
122
|
+
static serializeBinaryToWriter(message: GetContextRequest, writer: jspb.BinaryWriter): void;
|
|
123
|
+
static deserializeBinary(bytes: Uint8Array): GetContextRequest;
|
|
124
|
+
static deserializeBinaryFromReader(message: GetContextRequest, reader: jspb.BinaryReader): GetContextRequest;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export namespace GetContextRequest {
|
|
128
|
+
export type AsObject = {
|
|
129
|
+
name: string,
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export class CreateContextRequest extends jspb.Message {
|
|
134
|
+
getParent(): string;
|
|
135
|
+
setParent(value: string): CreateContextRequest;
|
|
136
|
+
|
|
137
|
+
getContext(): Context | undefined;
|
|
138
|
+
setContext(value?: Context): CreateContextRequest;
|
|
139
|
+
hasContext(): boolean;
|
|
140
|
+
clearContext(): CreateContextRequest;
|
|
141
|
+
|
|
142
|
+
serializeBinary(): Uint8Array;
|
|
143
|
+
toObject(includeInstance?: boolean): CreateContextRequest.AsObject;
|
|
144
|
+
static toObject(includeInstance: boolean, msg: CreateContextRequest): CreateContextRequest.AsObject;
|
|
145
|
+
static serializeBinaryToWriter(message: CreateContextRequest, writer: jspb.BinaryWriter): void;
|
|
146
|
+
static deserializeBinary(bytes: Uint8Array): CreateContextRequest;
|
|
147
|
+
static deserializeBinaryFromReader(message: CreateContextRequest, reader: jspb.BinaryReader): CreateContextRequest;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export namespace CreateContextRequest {
|
|
151
|
+
export type AsObject = {
|
|
152
|
+
parent: string,
|
|
153
|
+
context?: Context.AsObject,
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export class UpdateContextRequest extends jspb.Message {
|
|
158
|
+
getContext(): Context | undefined;
|
|
159
|
+
setContext(value?: Context): UpdateContextRequest;
|
|
160
|
+
hasContext(): boolean;
|
|
161
|
+
clearContext(): UpdateContextRequest;
|
|
162
|
+
|
|
163
|
+
getUpdateMask(): google_protobuf_field_mask_pb.FieldMask | undefined;
|
|
164
|
+
setUpdateMask(value?: google_protobuf_field_mask_pb.FieldMask): UpdateContextRequest;
|
|
165
|
+
hasUpdateMask(): boolean;
|
|
166
|
+
clearUpdateMask(): UpdateContextRequest;
|
|
167
|
+
|
|
168
|
+
serializeBinary(): Uint8Array;
|
|
169
|
+
toObject(includeInstance?: boolean): UpdateContextRequest.AsObject;
|
|
170
|
+
static toObject(includeInstance: boolean, msg: UpdateContextRequest): UpdateContextRequest.AsObject;
|
|
171
|
+
static serializeBinaryToWriter(message: UpdateContextRequest, writer: jspb.BinaryWriter): void;
|
|
172
|
+
static deserializeBinary(bytes: Uint8Array): UpdateContextRequest;
|
|
173
|
+
static deserializeBinaryFromReader(message: UpdateContextRequest, reader: jspb.BinaryReader): UpdateContextRequest;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export namespace UpdateContextRequest {
|
|
177
|
+
export type AsObject = {
|
|
178
|
+
context?: Context.AsObject,
|
|
179
|
+
updateMask?: google_protobuf_field_mask_pb.FieldMask.AsObject,
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export class DeleteContextRequest extends jspb.Message {
|
|
184
|
+
getName(): string;
|
|
185
|
+
setName(value: string): DeleteContextRequest;
|
|
186
|
+
|
|
187
|
+
serializeBinary(): Uint8Array;
|
|
188
|
+
toObject(includeInstance?: boolean): DeleteContextRequest.AsObject;
|
|
189
|
+
static toObject(includeInstance: boolean, msg: DeleteContextRequest): DeleteContextRequest.AsObject;
|
|
190
|
+
static serializeBinaryToWriter(message: DeleteContextRequest, writer: jspb.BinaryWriter): void;
|
|
191
|
+
static deserializeBinary(bytes: Uint8Array): DeleteContextRequest;
|
|
192
|
+
static deserializeBinaryFromReader(message: DeleteContextRequest, reader: jspb.BinaryReader): DeleteContextRequest;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export namespace DeleteContextRequest {
|
|
196
|
+
export type AsObject = {
|
|
197
|
+
name: string,
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export class DeleteAllContextsRequest extends jspb.Message {
|
|
202
|
+
getParent(): string;
|
|
203
|
+
setParent(value: string): DeleteAllContextsRequest;
|
|
204
|
+
|
|
205
|
+
serializeBinary(): Uint8Array;
|
|
206
|
+
toObject(includeInstance?: boolean): DeleteAllContextsRequest.AsObject;
|
|
207
|
+
static toObject(includeInstance: boolean, msg: DeleteAllContextsRequest): DeleteAllContextsRequest.AsObject;
|
|
208
|
+
static serializeBinaryToWriter(message: DeleteAllContextsRequest, writer: jspb.BinaryWriter): void;
|
|
209
|
+
static deserializeBinary(bytes: Uint8Array): DeleteAllContextsRequest;
|
|
210
|
+
static deserializeBinaryFromReader(message: DeleteAllContextsRequest, reader: jspb.BinaryReader): DeleteAllContextsRequest;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export namespace DeleteAllContextsRequest {
|
|
214
|
+
export type AsObject = {
|
|
215
|
+
parent: string,
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|