@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,68 @@
|
|
|
1
|
+
import * as grpcWeb from 'grpc-web';
|
|
2
|
+
|
|
3
|
+
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
|
|
4
|
+
import * as ondewo_nlu_operations_pb from '../../ondewo/nlu/operations_pb';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export class OperationsClient {
|
|
8
|
+
constructor (hostname: string,
|
|
9
|
+
credentials?: null | { [index: string]: string; },
|
|
10
|
+
options?: null | { [index: string]: any; });
|
|
11
|
+
|
|
12
|
+
listOperations(
|
|
13
|
+
request: ondewo_nlu_operations_pb.ListOperationsRequest,
|
|
14
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
15
|
+
callback: (err: grpcWeb.RpcError,
|
|
16
|
+
response: ondewo_nlu_operations_pb.ListOperationsResponse) => void
|
|
17
|
+
): grpcWeb.ClientReadableStream<ondewo_nlu_operations_pb.ListOperationsResponse>;
|
|
18
|
+
|
|
19
|
+
getOperation(
|
|
20
|
+
request: ondewo_nlu_operations_pb.GetOperationRequest,
|
|
21
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
22
|
+
callback: (err: grpcWeb.RpcError,
|
|
23
|
+
response: ondewo_nlu_operations_pb.Operation) => void
|
|
24
|
+
): grpcWeb.ClientReadableStream<ondewo_nlu_operations_pb.Operation>;
|
|
25
|
+
|
|
26
|
+
deleteOperation(
|
|
27
|
+
request: ondewo_nlu_operations_pb.DeleteOperationRequest,
|
|
28
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
29
|
+
callback: (err: grpcWeb.RpcError,
|
|
30
|
+
response: google_protobuf_empty_pb.Empty) => void
|
|
31
|
+
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
|
32
|
+
|
|
33
|
+
cancelOperation(
|
|
34
|
+
request: ondewo_nlu_operations_pb.CancelOperationRequest,
|
|
35
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
36
|
+
callback: (err: grpcWeb.RpcError,
|
|
37
|
+
response: google_protobuf_empty_pb.Empty) => void
|
|
38
|
+
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export class OperationsPromiseClient {
|
|
43
|
+
constructor (hostname: string,
|
|
44
|
+
credentials?: null | { [index: string]: string; },
|
|
45
|
+
options?: null | { [index: string]: any; });
|
|
46
|
+
|
|
47
|
+
listOperations(
|
|
48
|
+
request: ondewo_nlu_operations_pb.ListOperationsRequest,
|
|
49
|
+
metadata?: grpcWeb.Metadata
|
|
50
|
+
): Promise<ondewo_nlu_operations_pb.ListOperationsResponse>;
|
|
51
|
+
|
|
52
|
+
getOperation(
|
|
53
|
+
request: ondewo_nlu_operations_pb.GetOperationRequest,
|
|
54
|
+
metadata?: grpcWeb.Metadata
|
|
55
|
+
): Promise<ondewo_nlu_operations_pb.Operation>;
|
|
56
|
+
|
|
57
|
+
deleteOperation(
|
|
58
|
+
request: ondewo_nlu_operations_pb.DeleteOperationRequest,
|
|
59
|
+
metadata?: grpcWeb.Metadata
|
|
60
|
+
): Promise<google_protobuf_empty_pb.Empty>;
|
|
61
|
+
|
|
62
|
+
cancelOperation(
|
|
63
|
+
request: ondewo_nlu_operations_pb.CancelOperationRequest,
|
|
64
|
+
metadata?: grpcWeb.Metadata
|
|
65
|
+
): Promise<google_protobuf_empty_pb.Empty>;
|
|
66
|
+
|
|
67
|
+
}
|
|
68
|
+
|
|
@@ -0,0 +1,331 @@
|
|
|
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_any_pb = require('google-protobuf/google/protobuf/any_pb.js')
|
|
22
|
+
|
|
23
|
+
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
|
|
24
|
+
|
|
25
|
+
var google_rpc_status_pb = require('../../google/rpc/status_pb.js')
|
|
26
|
+
|
|
27
|
+
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js')
|
|
28
|
+
|
|
29
|
+
var ondewo_nlu_operation_metadata_pb = require('../../ondewo/nlu/operation_metadata_pb.js')
|
|
30
|
+
const proto = {};
|
|
31
|
+
proto.ondewo = {};
|
|
32
|
+
proto.ondewo.nlu = require('./operations_pb.js');
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @param {string} hostname
|
|
36
|
+
* @param {?Object} credentials
|
|
37
|
+
* @param {?grpc.web.ClientOptions} options
|
|
38
|
+
* @constructor
|
|
39
|
+
* @struct
|
|
40
|
+
* @final
|
|
41
|
+
*/
|
|
42
|
+
proto.ondewo.nlu.OperationsClient =
|
|
43
|
+
function(hostname, credentials, options) {
|
|
44
|
+
if (!options) options = {};
|
|
45
|
+
options.format = 'binary';
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
|
49
|
+
*/
|
|
50
|
+
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @private @const {string} The hostname
|
|
54
|
+
*/
|
|
55
|
+
this.hostname_ = hostname;
|
|
56
|
+
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @param {string} hostname
|
|
62
|
+
* @param {?Object} credentials
|
|
63
|
+
* @param {?grpc.web.ClientOptions} options
|
|
64
|
+
* @constructor
|
|
65
|
+
* @struct
|
|
66
|
+
* @final
|
|
67
|
+
*/
|
|
68
|
+
proto.ondewo.nlu.OperationsPromiseClient =
|
|
69
|
+
function(hostname, credentials, options) {
|
|
70
|
+
if (!options) options = {};
|
|
71
|
+
options.format = 'binary';
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
|
75
|
+
*/
|
|
76
|
+
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @private @const {string} The hostname
|
|
80
|
+
*/
|
|
81
|
+
this.hostname_ = hostname;
|
|
82
|
+
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @const
|
|
88
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
89
|
+
* !proto.ondewo.nlu.ListOperationsRequest,
|
|
90
|
+
* !proto.ondewo.nlu.ListOperationsResponse>}
|
|
91
|
+
*/
|
|
92
|
+
const methodDescriptor_Operations_ListOperations = new grpc.web.MethodDescriptor(
|
|
93
|
+
'/ondewo.nlu.Operations/ListOperations',
|
|
94
|
+
grpc.web.MethodType.UNARY,
|
|
95
|
+
proto.ondewo.nlu.ListOperationsRequest,
|
|
96
|
+
proto.ondewo.nlu.ListOperationsResponse,
|
|
97
|
+
/**
|
|
98
|
+
* @param {!proto.ondewo.nlu.ListOperationsRequest} request
|
|
99
|
+
* @return {!Uint8Array}
|
|
100
|
+
*/
|
|
101
|
+
function(request) {
|
|
102
|
+
return request.serializeBinary();
|
|
103
|
+
},
|
|
104
|
+
proto.ondewo.nlu.ListOperationsResponse.deserializeBinary
|
|
105
|
+
);
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @param {!proto.ondewo.nlu.ListOperationsRequest} request The
|
|
110
|
+
* request proto
|
|
111
|
+
* @param {?Object<string, string>} metadata User defined
|
|
112
|
+
* call metadata
|
|
113
|
+
* @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.ListOperationsResponse)}
|
|
114
|
+
* callback The callback function(error, response)
|
|
115
|
+
* @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.ListOperationsResponse>|undefined}
|
|
116
|
+
* The XHR Node Readable Stream
|
|
117
|
+
*/
|
|
118
|
+
proto.ondewo.nlu.OperationsClient.prototype.listOperations =
|
|
119
|
+
function(request, metadata, callback) {
|
|
120
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
121
|
+
'/ondewo.nlu.Operations/ListOperations',
|
|
122
|
+
request,
|
|
123
|
+
metadata || {},
|
|
124
|
+
methodDescriptor_Operations_ListOperations,
|
|
125
|
+
callback);
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @param {!proto.ondewo.nlu.ListOperationsRequest} request The
|
|
131
|
+
* request proto
|
|
132
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
133
|
+
* call metadata
|
|
134
|
+
* @return {!Promise<!proto.ondewo.nlu.ListOperationsResponse>}
|
|
135
|
+
* Promise that resolves to the response
|
|
136
|
+
*/
|
|
137
|
+
proto.ondewo.nlu.OperationsPromiseClient.prototype.listOperations =
|
|
138
|
+
function(request, metadata) {
|
|
139
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
140
|
+
'/ondewo.nlu.Operations/ListOperations',
|
|
141
|
+
request,
|
|
142
|
+
metadata || {},
|
|
143
|
+
methodDescriptor_Operations_ListOperations);
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* @const
|
|
149
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
150
|
+
* !proto.ondewo.nlu.GetOperationRequest,
|
|
151
|
+
* !proto.ondewo.nlu.Operation>}
|
|
152
|
+
*/
|
|
153
|
+
const methodDescriptor_Operations_GetOperation = new grpc.web.MethodDescriptor(
|
|
154
|
+
'/ondewo.nlu.Operations/GetOperation',
|
|
155
|
+
grpc.web.MethodType.UNARY,
|
|
156
|
+
proto.ondewo.nlu.GetOperationRequest,
|
|
157
|
+
proto.ondewo.nlu.Operation,
|
|
158
|
+
/**
|
|
159
|
+
* @param {!proto.ondewo.nlu.GetOperationRequest} request
|
|
160
|
+
* @return {!Uint8Array}
|
|
161
|
+
*/
|
|
162
|
+
function(request) {
|
|
163
|
+
return request.serializeBinary();
|
|
164
|
+
},
|
|
165
|
+
proto.ondewo.nlu.Operation.deserializeBinary
|
|
166
|
+
);
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @param {!proto.ondewo.nlu.GetOperationRequest} request The
|
|
171
|
+
* request proto
|
|
172
|
+
* @param {?Object<string, string>} metadata User defined
|
|
173
|
+
* call metadata
|
|
174
|
+
* @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.Operation)}
|
|
175
|
+
* callback The callback function(error, response)
|
|
176
|
+
* @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.Operation>|undefined}
|
|
177
|
+
* The XHR Node Readable Stream
|
|
178
|
+
*/
|
|
179
|
+
proto.ondewo.nlu.OperationsClient.prototype.getOperation =
|
|
180
|
+
function(request, metadata, callback) {
|
|
181
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
182
|
+
'/ondewo.nlu.Operations/GetOperation',
|
|
183
|
+
request,
|
|
184
|
+
metadata || {},
|
|
185
|
+
methodDescriptor_Operations_GetOperation,
|
|
186
|
+
callback);
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* @param {!proto.ondewo.nlu.GetOperationRequest} request The
|
|
192
|
+
* request proto
|
|
193
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
194
|
+
* call metadata
|
|
195
|
+
* @return {!Promise<!proto.ondewo.nlu.Operation>}
|
|
196
|
+
* Promise that resolves to the response
|
|
197
|
+
*/
|
|
198
|
+
proto.ondewo.nlu.OperationsPromiseClient.prototype.getOperation =
|
|
199
|
+
function(request, metadata) {
|
|
200
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
201
|
+
'/ondewo.nlu.Operations/GetOperation',
|
|
202
|
+
request,
|
|
203
|
+
metadata || {},
|
|
204
|
+
methodDescriptor_Operations_GetOperation);
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @const
|
|
210
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
211
|
+
* !proto.ondewo.nlu.DeleteOperationRequest,
|
|
212
|
+
* !proto.google.protobuf.Empty>}
|
|
213
|
+
*/
|
|
214
|
+
const methodDescriptor_Operations_DeleteOperation = new grpc.web.MethodDescriptor(
|
|
215
|
+
'/ondewo.nlu.Operations/DeleteOperation',
|
|
216
|
+
grpc.web.MethodType.UNARY,
|
|
217
|
+
proto.ondewo.nlu.DeleteOperationRequest,
|
|
218
|
+
google_protobuf_empty_pb.Empty,
|
|
219
|
+
/**
|
|
220
|
+
* @param {!proto.ondewo.nlu.DeleteOperationRequest} request
|
|
221
|
+
* @return {!Uint8Array}
|
|
222
|
+
*/
|
|
223
|
+
function(request) {
|
|
224
|
+
return request.serializeBinary();
|
|
225
|
+
},
|
|
226
|
+
google_protobuf_empty_pb.Empty.deserializeBinary
|
|
227
|
+
);
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* @param {!proto.ondewo.nlu.DeleteOperationRequest} request The
|
|
232
|
+
* request proto
|
|
233
|
+
* @param {?Object<string, string>} metadata User defined
|
|
234
|
+
* call metadata
|
|
235
|
+
* @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
|
|
236
|
+
* callback The callback function(error, response)
|
|
237
|
+
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
|
|
238
|
+
* The XHR Node Readable Stream
|
|
239
|
+
*/
|
|
240
|
+
proto.ondewo.nlu.OperationsClient.prototype.deleteOperation =
|
|
241
|
+
function(request, metadata, callback) {
|
|
242
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
243
|
+
'/ondewo.nlu.Operations/DeleteOperation',
|
|
244
|
+
request,
|
|
245
|
+
metadata || {},
|
|
246
|
+
methodDescriptor_Operations_DeleteOperation,
|
|
247
|
+
callback);
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* @param {!proto.ondewo.nlu.DeleteOperationRequest} request The
|
|
253
|
+
* request proto
|
|
254
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
255
|
+
* call metadata
|
|
256
|
+
* @return {!Promise<!proto.google.protobuf.Empty>}
|
|
257
|
+
* Promise that resolves to the response
|
|
258
|
+
*/
|
|
259
|
+
proto.ondewo.nlu.OperationsPromiseClient.prototype.deleteOperation =
|
|
260
|
+
function(request, metadata) {
|
|
261
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
262
|
+
'/ondewo.nlu.Operations/DeleteOperation',
|
|
263
|
+
request,
|
|
264
|
+
metadata || {},
|
|
265
|
+
methodDescriptor_Operations_DeleteOperation);
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* @const
|
|
271
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
272
|
+
* !proto.ondewo.nlu.CancelOperationRequest,
|
|
273
|
+
* !proto.google.protobuf.Empty>}
|
|
274
|
+
*/
|
|
275
|
+
const methodDescriptor_Operations_CancelOperation = new grpc.web.MethodDescriptor(
|
|
276
|
+
'/ondewo.nlu.Operations/CancelOperation',
|
|
277
|
+
grpc.web.MethodType.UNARY,
|
|
278
|
+
proto.ondewo.nlu.CancelOperationRequest,
|
|
279
|
+
google_protobuf_empty_pb.Empty,
|
|
280
|
+
/**
|
|
281
|
+
* @param {!proto.ondewo.nlu.CancelOperationRequest} request
|
|
282
|
+
* @return {!Uint8Array}
|
|
283
|
+
*/
|
|
284
|
+
function(request) {
|
|
285
|
+
return request.serializeBinary();
|
|
286
|
+
},
|
|
287
|
+
google_protobuf_empty_pb.Empty.deserializeBinary
|
|
288
|
+
);
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* @param {!proto.ondewo.nlu.CancelOperationRequest} request The
|
|
293
|
+
* request proto
|
|
294
|
+
* @param {?Object<string, string>} metadata User defined
|
|
295
|
+
* call metadata
|
|
296
|
+
* @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
|
|
297
|
+
* callback The callback function(error, response)
|
|
298
|
+
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
|
|
299
|
+
* The XHR Node Readable Stream
|
|
300
|
+
*/
|
|
301
|
+
proto.ondewo.nlu.OperationsClient.prototype.cancelOperation =
|
|
302
|
+
function(request, metadata, callback) {
|
|
303
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
304
|
+
'/ondewo.nlu.Operations/CancelOperation',
|
|
305
|
+
request,
|
|
306
|
+
metadata || {},
|
|
307
|
+
methodDescriptor_Operations_CancelOperation,
|
|
308
|
+
callback);
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* @param {!proto.ondewo.nlu.CancelOperationRequest} request The
|
|
314
|
+
* request proto
|
|
315
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
316
|
+
* call metadata
|
|
317
|
+
* @return {!Promise<!proto.google.protobuf.Empty>}
|
|
318
|
+
* Promise that resolves to the response
|
|
319
|
+
*/
|
|
320
|
+
proto.ondewo.nlu.OperationsPromiseClient.prototype.cancelOperation =
|
|
321
|
+
function(request, metadata) {
|
|
322
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
323
|
+
'/ondewo.nlu.Operations/CancelOperation',
|
|
324
|
+
request,
|
|
325
|
+
metadata || {},
|
|
326
|
+
methodDescriptor_Operations_CancelOperation);
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
module.exports = proto.ondewo.nlu;
|
|
331
|
+
|
|
@@ -0,0 +1,236 @@
|
|
|
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_any_pb from 'google-protobuf/google/protobuf/any_pb';
|
|
5
|
+
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
|
|
6
|
+
import * as google_rpc_status_pb from '../../google/rpc/status_pb';
|
|
7
|
+
import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb';
|
|
8
|
+
import * as ondewo_nlu_operation_metadata_pb from '../../ondewo/nlu/operation_metadata_pb';
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export class Operation extends jspb.Message {
|
|
12
|
+
getName(): string;
|
|
13
|
+
setName(value: string): Operation;
|
|
14
|
+
|
|
15
|
+
getMetadata(): ondewo_nlu_operation_metadata_pb.OperationMetadata | undefined;
|
|
16
|
+
setMetadata(value?: ondewo_nlu_operation_metadata_pb.OperationMetadata): Operation;
|
|
17
|
+
hasMetadata(): boolean;
|
|
18
|
+
clearMetadata(): Operation;
|
|
19
|
+
|
|
20
|
+
getDone(): boolean;
|
|
21
|
+
setDone(value: boolean): Operation;
|
|
22
|
+
|
|
23
|
+
getError(): google_rpc_status_pb.Status | undefined;
|
|
24
|
+
setError(value?: google_rpc_status_pb.Status): Operation;
|
|
25
|
+
hasError(): boolean;
|
|
26
|
+
clearError(): Operation;
|
|
27
|
+
|
|
28
|
+
getResponse(): google_protobuf_any_pb.Any | undefined;
|
|
29
|
+
setResponse(value?: google_protobuf_any_pb.Any): Operation;
|
|
30
|
+
hasResponse(): boolean;
|
|
31
|
+
clearResponse(): Operation;
|
|
32
|
+
|
|
33
|
+
getResultCase(): Operation.ResultCase;
|
|
34
|
+
|
|
35
|
+
serializeBinary(): Uint8Array;
|
|
36
|
+
toObject(includeInstance?: boolean): Operation.AsObject;
|
|
37
|
+
static toObject(includeInstance: boolean, msg: Operation): Operation.AsObject;
|
|
38
|
+
static serializeBinaryToWriter(message: Operation, writer: jspb.BinaryWriter): void;
|
|
39
|
+
static deserializeBinary(bytes: Uint8Array): Operation;
|
|
40
|
+
static deserializeBinaryFromReader(message: Operation, reader: jspb.BinaryReader): Operation;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export namespace Operation {
|
|
44
|
+
export type AsObject = {
|
|
45
|
+
name: string,
|
|
46
|
+
metadata?: ondewo_nlu_operation_metadata_pb.OperationMetadata.AsObject,
|
|
47
|
+
done: boolean,
|
|
48
|
+
error?: google_rpc_status_pb.Status.AsObject,
|
|
49
|
+
response?: google_protobuf_any_pb.Any.AsObject,
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export enum ResultCase {
|
|
53
|
+
RESULT_NOT_SET = 0,
|
|
54
|
+
ERROR = 4,
|
|
55
|
+
RESPONSE = 5,
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export class GetOperationRequest extends jspb.Message {
|
|
60
|
+
getName(): string;
|
|
61
|
+
setName(value: string): GetOperationRequest;
|
|
62
|
+
|
|
63
|
+
serializeBinary(): Uint8Array;
|
|
64
|
+
toObject(includeInstance?: boolean): GetOperationRequest.AsObject;
|
|
65
|
+
static toObject(includeInstance: boolean, msg: GetOperationRequest): GetOperationRequest.AsObject;
|
|
66
|
+
static serializeBinaryToWriter(message: GetOperationRequest, writer: jspb.BinaryWriter): void;
|
|
67
|
+
static deserializeBinary(bytes: Uint8Array): GetOperationRequest;
|
|
68
|
+
static deserializeBinaryFromReader(message: GetOperationRequest, reader: jspb.BinaryReader): GetOperationRequest;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export namespace GetOperationRequest {
|
|
72
|
+
export type AsObject = {
|
|
73
|
+
name: string,
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export class ListOperationsRequest extends jspb.Message {
|
|
78
|
+
getName(): string;
|
|
79
|
+
setName(value: string): ListOperationsRequest;
|
|
80
|
+
|
|
81
|
+
getFilter(): string;
|
|
82
|
+
setFilter(value: string): ListOperationsRequest;
|
|
83
|
+
|
|
84
|
+
getPageSize(): number;
|
|
85
|
+
setPageSize(value: number): ListOperationsRequest;
|
|
86
|
+
|
|
87
|
+
getPageToken(): string;
|
|
88
|
+
setPageToken(value: string): ListOperationsRequest;
|
|
89
|
+
|
|
90
|
+
getOperationFilter(): OperationFilter | undefined;
|
|
91
|
+
setOperationFilter(value?: OperationFilter): ListOperationsRequest;
|
|
92
|
+
hasOperationFilter(): boolean;
|
|
93
|
+
clearOperationFilter(): ListOperationsRequest;
|
|
94
|
+
|
|
95
|
+
serializeBinary(): Uint8Array;
|
|
96
|
+
toObject(includeInstance?: boolean): ListOperationsRequest.AsObject;
|
|
97
|
+
static toObject(includeInstance: boolean, msg: ListOperationsRequest): ListOperationsRequest.AsObject;
|
|
98
|
+
static serializeBinaryToWriter(message: ListOperationsRequest, writer: jspb.BinaryWriter): void;
|
|
99
|
+
static deserializeBinary(bytes: Uint8Array): ListOperationsRequest;
|
|
100
|
+
static deserializeBinaryFromReader(message: ListOperationsRequest, reader: jspb.BinaryReader): ListOperationsRequest;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export namespace ListOperationsRequest {
|
|
104
|
+
export type AsObject = {
|
|
105
|
+
name: string,
|
|
106
|
+
filter: string,
|
|
107
|
+
pageSize: number,
|
|
108
|
+
pageToken: string,
|
|
109
|
+
operationFilter?: OperationFilter.AsObject,
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export class OperationFilter extends jspb.Message {
|
|
114
|
+
getProjectParentsList(): Array<string>;
|
|
115
|
+
setProjectParentsList(value: Array<string>): OperationFilter;
|
|
116
|
+
clearProjectParentsList(): OperationFilter;
|
|
117
|
+
addProjectParents(value: string, index?: number): OperationFilter;
|
|
118
|
+
|
|
119
|
+
getStatusesList(): Array<ondewo_nlu_operation_metadata_pb.OperationMetadata.Status>;
|
|
120
|
+
setStatusesList(value: Array<ondewo_nlu_operation_metadata_pb.OperationMetadata.Status>): OperationFilter;
|
|
121
|
+
clearStatusesList(): OperationFilter;
|
|
122
|
+
addStatuses(value: ondewo_nlu_operation_metadata_pb.OperationMetadata.Status, index?: number): OperationFilter;
|
|
123
|
+
|
|
124
|
+
getTypesList(): Array<ondewo_nlu_operation_metadata_pb.OperationMetadata.OperationType>;
|
|
125
|
+
setTypesList(value: Array<ondewo_nlu_operation_metadata_pb.OperationMetadata.OperationType>): OperationFilter;
|
|
126
|
+
clearTypesList(): OperationFilter;
|
|
127
|
+
addTypes(value: ondewo_nlu_operation_metadata_pb.OperationMetadata.OperationType, index?: number): OperationFilter;
|
|
128
|
+
|
|
129
|
+
getStartTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
130
|
+
setStartTime(value?: google_protobuf_timestamp_pb.Timestamp): OperationFilter;
|
|
131
|
+
hasStartTime(): boolean;
|
|
132
|
+
clearStartTime(): OperationFilter;
|
|
133
|
+
|
|
134
|
+
getEndTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
135
|
+
setEndTime(value?: google_protobuf_timestamp_pb.Timestamp): OperationFilter;
|
|
136
|
+
hasEndTime(): boolean;
|
|
137
|
+
clearEndTime(): OperationFilter;
|
|
138
|
+
|
|
139
|
+
getUserIdsList(): Array<string>;
|
|
140
|
+
setUserIdsList(value: Array<string>): OperationFilter;
|
|
141
|
+
clearUserIdsList(): OperationFilter;
|
|
142
|
+
addUserIds(value: string, index?: number): OperationFilter;
|
|
143
|
+
|
|
144
|
+
getStartTimeOneofCase(): OperationFilter.StartTimeOneofCase;
|
|
145
|
+
|
|
146
|
+
getEndTimeOneofCase(): OperationFilter.EndTimeOneofCase;
|
|
147
|
+
|
|
148
|
+
serializeBinary(): Uint8Array;
|
|
149
|
+
toObject(includeInstance?: boolean): OperationFilter.AsObject;
|
|
150
|
+
static toObject(includeInstance: boolean, msg: OperationFilter): OperationFilter.AsObject;
|
|
151
|
+
static serializeBinaryToWriter(message: OperationFilter, writer: jspb.BinaryWriter): void;
|
|
152
|
+
static deserializeBinary(bytes: Uint8Array): OperationFilter;
|
|
153
|
+
static deserializeBinaryFromReader(message: OperationFilter, reader: jspb.BinaryReader): OperationFilter;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export namespace OperationFilter {
|
|
157
|
+
export type AsObject = {
|
|
158
|
+
projectParentsList: Array<string>,
|
|
159
|
+
statusesList: Array<ondewo_nlu_operation_metadata_pb.OperationMetadata.Status>,
|
|
160
|
+
typesList: Array<ondewo_nlu_operation_metadata_pb.OperationMetadata.OperationType>,
|
|
161
|
+
startTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
162
|
+
endTime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
163
|
+
userIdsList: Array<string>,
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export enum StartTimeOneofCase {
|
|
167
|
+
START_TIME_ONEOF_NOT_SET = 0,
|
|
168
|
+
START_TIME = 4,
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export enum EndTimeOneofCase {
|
|
172
|
+
END_TIME_ONEOF_NOT_SET = 0,
|
|
173
|
+
END_TIME = 5,
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export class ListOperationsResponse extends jspb.Message {
|
|
178
|
+
getOperationsList(): Array<Operation>;
|
|
179
|
+
setOperationsList(value: Array<Operation>): ListOperationsResponse;
|
|
180
|
+
clearOperationsList(): ListOperationsResponse;
|
|
181
|
+
addOperations(value?: Operation, index?: number): Operation;
|
|
182
|
+
|
|
183
|
+
getNextPageToken(): string;
|
|
184
|
+
setNextPageToken(value: string): ListOperationsResponse;
|
|
185
|
+
|
|
186
|
+
serializeBinary(): Uint8Array;
|
|
187
|
+
toObject(includeInstance?: boolean): ListOperationsResponse.AsObject;
|
|
188
|
+
static toObject(includeInstance: boolean, msg: ListOperationsResponse): ListOperationsResponse.AsObject;
|
|
189
|
+
static serializeBinaryToWriter(message: ListOperationsResponse, writer: jspb.BinaryWriter): void;
|
|
190
|
+
static deserializeBinary(bytes: Uint8Array): ListOperationsResponse;
|
|
191
|
+
static deserializeBinaryFromReader(message: ListOperationsResponse, reader: jspb.BinaryReader): ListOperationsResponse;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export namespace ListOperationsResponse {
|
|
195
|
+
export type AsObject = {
|
|
196
|
+
operationsList: Array<Operation.AsObject>,
|
|
197
|
+
nextPageToken: string,
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export class CancelOperationRequest extends jspb.Message {
|
|
202
|
+
getName(): string;
|
|
203
|
+
setName(value: string): CancelOperationRequest;
|
|
204
|
+
|
|
205
|
+
serializeBinary(): Uint8Array;
|
|
206
|
+
toObject(includeInstance?: boolean): CancelOperationRequest.AsObject;
|
|
207
|
+
static toObject(includeInstance: boolean, msg: CancelOperationRequest): CancelOperationRequest.AsObject;
|
|
208
|
+
static serializeBinaryToWriter(message: CancelOperationRequest, writer: jspb.BinaryWriter): void;
|
|
209
|
+
static deserializeBinary(bytes: Uint8Array): CancelOperationRequest;
|
|
210
|
+
static deserializeBinaryFromReader(message: CancelOperationRequest, reader: jspb.BinaryReader): CancelOperationRequest;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export namespace CancelOperationRequest {
|
|
214
|
+
export type AsObject = {
|
|
215
|
+
name: string,
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export class DeleteOperationRequest extends jspb.Message {
|
|
220
|
+
getName(): string;
|
|
221
|
+
setName(value: string): DeleteOperationRequest;
|
|
222
|
+
|
|
223
|
+
serializeBinary(): Uint8Array;
|
|
224
|
+
toObject(includeInstance?: boolean): DeleteOperationRequest.AsObject;
|
|
225
|
+
static toObject(includeInstance: boolean, msg: DeleteOperationRequest): DeleteOperationRequest.AsObject;
|
|
226
|
+
static serializeBinaryToWriter(message: DeleteOperationRequest, writer: jspb.BinaryWriter): void;
|
|
227
|
+
static deserializeBinary(bytes: Uint8Array): DeleteOperationRequest;
|
|
228
|
+
static deserializeBinaryFromReader(message: DeleteOperationRequest, reader: jspb.BinaryReader): DeleteOperationRequest;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export namespace DeleteOperationRequest {
|
|
232
|
+
export type AsObject = {
|
|
233
|
+
name: string,
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|