@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.
Files changed (80) hide show
  1. package/LICENSE +191 -0
  2. package/README.md +27 -0
  3. package/api/google/api/annotations_pb.d.ts +6 -0
  4. package/api/google/api/annotations_pb.js +48 -0
  5. package/api/google/protobuf/any_pb.d.ts +28 -0
  6. package/api/google/protobuf/any_pb.js +275 -0
  7. package/api/google/protobuf/empty_pb.d.ts +18 -0
  8. package/api/google/protobuf/empty_pb.js +141 -0
  9. package/api/google/protobuf/field_mask_pb.d.ts +24 -0
  10. package/api/google/protobuf/field_mask_pb.js +196 -0
  11. package/api/google/protobuf/struct_pb.d.ts +99 -0
  12. package/api/google/protobuf/struct_pb.js +948 -0
  13. package/api/google/protobuf/timestamp_pb.d.ts +26 -0
  14. package/api/google/protobuf/timestamp_pb.js +236 -0
  15. package/api/google/rpc/status_pb.d.ts +33 -0
  16. package/api/google/rpc/status_pb.js +262 -0
  17. package/api/google/type/latlng_pb.d.ts +26 -0
  18. package/api/google/type/latlng_pb.js +200 -0
  19. package/api/ondewo/nlu/agent_grpc_web_pb.d.ts +489 -0
  20. package/api/ondewo/nlu/agent_grpc_web_pb.js +2476 -0
  21. package/api/ondewo/nlu/agent_pb.d.ts +2079 -0
  22. package/api/ondewo/nlu/agent_pb.js +16648 -0
  23. package/api/ondewo/nlu/aiservices_grpc_web_pb.d.ts +115 -0
  24. package/api/ondewo/nlu/aiservices_grpc_web_pb.js +569 -0
  25. package/api/ondewo/nlu/aiservices_pb.d.ts +933 -0
  26. package/api/ondewo/nlu/aiservices_pb.js +7601 -0
  27. package/api/ondewo/nlu/common_pb.d.ts +26 -0
  28. package/api/ondewo/nlu/common_pb.js +179 -0
  29. package/api/ondewo/nlu/context_grpc_web_pb.d.ts +92 -0
  30. package/api/ondewo/nlu/context_grpc_web_pb.js +447 -0
  31. package/api/ondewo/nlu/context_pb.d.ts +218 -0
  32. package/api/ondewo/nlu/context_pb.js +1788 -0
  33. package/api/ondewo/nlu/entity_type_grpc_web_pb.d.ts +165 -0
  34. package/api/ondewo/nlu/entity_type_grpc_web_pb.js +817 -0
  35. package/api/ondewo/nlu/entity_type_pb.d.ts +756 -0
  36. package/api/ondewo/nlu/entity_type_pb.js +5970 -0
  37. package/api/ondewo/nlu/intent_grpc_web_pb.d.ts +345 -0
  38. package/api/ondewo/nlu/intent_grpc_web_pb.js +1738 -0
  39. package/api/ondewo/nlu/intent_pb.d.ts +2344 -0
  40. package/api/ondewo/nlu/intent_pb.js +18784 -0
  41. package/api/ondewo/nlu/operation_metadata_pb.d.ts +112 -0
  42. package/api/ondewo/nlu/operation_metadata_pb.js +740 -0
  43. package/api/ondewo/nlu/operations_grpc_web_pb.d.ts +68 -0
  44. package/api/ondewo/nlu/operations_grpc_web_pb.js +331 -0
  45. package/api/ondewo/nlu/operations_pb.d.ts +236 -0
  46. package/api/ondewo/nlu/operations_pb.js +1826 -0
  47. package/api/ondewo/nlu/project_role_grpc_web_pb.d.ts +80 -0
  48. package/api/ondewo/nlu/project_role_grpc_web_pb.js +386 -0
  49. package/api/ondewo/nlu/project_role_pb.d.ts +220 -0
  50. package/api/ondewo/nlu/project_role_pb.js +1713 -0
  51. package/api/ondewo/nlu/project_statistics_grpc_web_pb.d.ts +116 -0
  52. package/api/ondewo/nlu/project_statistics_grpc_web_pb.js +571 -0
  53. package/api/ondewo/nlu/project_statistics_pb.d.ts +92 -0
  54. package/api/ondewo/nlu/project_statistics_pb.js +724 -0
  55. package/api/ondewo/nlu/server_statistics_grpc_web_pb.d.ts +57 -0
  56. package/api/ondewo/nlu/server_statistics_grpc_web_pb.js +264 -0
  57. package/api/ondewo/nlu/server_statistics_pb.d.ts +25 -0
  58. package/api/ondewo/nlu/server_statistics_pb.js +176 -0
  59. package/api/ondewo/nlu/session_grpc_web_pb.d.ts +176 -0
  60. package/api/ondewo/nlu/session_grpc_web_pb.js +884 -0
  61. package/api/ondewo/nlu/session_pb.d.ts +1192 -0
  62. package/api/ondewo/nlu/session_pb.js +9762 -0
  63. package/api/ondewo/nlu/user_grpc_web_pb.d.ts +200 -0
  64. package/api/ondewo/nlu/user_grpc_web_pb.js +998 -0
  65. package/api/ondewo/nlu/user_pb.d.ts +489 -0
  66. package/api/ondewo/nlu/user_pb.js +4057 -0
  67. package/api/ondewo/nlu/utility_grpc_web_pb.d.ts +115 -0
  68. package/api/ondewo/nlu/utility_grpc_web_pb.js +567 -0
  69. package/api/ondewo/nlu/utility_pb.d.ts +708 -0
  70. package/api/ondewo/nlu/utility_pb.js +5914 -0
  71. package/api/ondewo/nlu/webhook_grpc_web_pb.d.ts +55 -0
  72. package/api/ondewo/nlu/webhook_grpc_web_pb.js +268 -0
  73. package/api/ondewo/nlu/webhook_pb.d.ts +155 -0
  74. package/api/ondewo/nlu/webhook_pb.js +1267 -0
  75. package/api/ondewo/qa/qa_grpc_web_pb.d.ts +104 -0
  76. package/api/ondewo/qa/qa_grpc_web_pb.js +508 -0
  77. package/api/ondewo/qa/qa_pb.d.ts +304 -0
  78. package/api/ondewo/qa/qa_pb.js +2553 -0
  79. package/package.json +18 -0
  80. package/public-api.d.ts +38 -0
@@ -0,0 +1,724 @@
1
+ // source: ondewo/nlu/project_statistics.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
17
+
18
+ var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
19
+ goog.object.extend(proto, google_api_annotations_pb);
20
+ var ondewo_nlu_intent_pb = require('../../ondewo/nlu/intent_pb.js');
21
+ goog.object.extend(proto, ondewo_nlu_intent_pb);
22
+ var ondewo_nlu_common_pb = require('../../ondewo/nlu/common_pb.js');
23
+ goog.object.extend(proto, ondewo_nlu_common_pb);
24
+ var ondewo_nlu_entity_type_pb = require('../../ondewo/nlu/entity_type_pb.js');
25
+ goog.object.extend(proto, ondewo_nlu_entity_type_pb);
26
+ goog.exportSymbol('proto.ondewo.nlu.GetEntityTypeCountRequest', null, global);
27
+ goog.exportSymbol('proto.ondewo.nlu.GetIntentCountRequest', null, global);
28
+ goog.exportSymbol('proto.ondewo.nlu.GetProjectElementStatRequest', null, global);
29
+ goog.exportSymbol('proto.ondewo.nlu.GetProjectStatRequest', null, global);
30
+ /**
31
+ * Generated by JsPbCodeGenerator.
32
+ * @param {Array=} opt_data Optional initial data array, typically from a
33
+ * server response, or constructed directly in Javascript. The array is used
34
+ * in place and becomes part of the constructed object. It is not cloned.
35
+ * If no data is provided, the constructed object will be empty, but still
36
+ * valid.
37
+ * @extends {jspb.Message}
38
+ * @constructor
39
+ */
40
+ proto.ondewo.nlu.GetIntentCountRequest = function(opt_data) {
41
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
42
+ };
43
+ goog.inherits(proto.ondewo.nlu.GetIntentCountRequest, jspb.Message);
44
+ if (goog.DEBUG && !COMPILED) {
45
+ /**
46
+ * @public
47
+ * @override
48
+ */
49
+ proto.ondewo.nlu.GetIntentCountRequest.displayName = 'proto.ondewo.nlu.GetIntentCountRequest';
50
+ }
51
+ /**
52
+ * Generated by JsPbCodeGenerator.
53
+ * @param {Array=} opt_data Optional initial data array, typically from a
54
+ * server response, or constructed directly in Javascript. The array is used
55
+ * in place and becomes part of the constructed object. It is not cloned.
56
+ * If no data is provided, the constructed object will be empty, but still
57
+ * valid.
58
+ * @extends {jspb.Message}
59
+ * @constructor
60
+ */
61
+ proto.ondewo.nlu.GetEntityTypeCountRequest = function(opt_data) {
62
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
63
+ };
64
+ goog.inherits(proto.ondewo.nlu.GetEntityTypeCountRequest, jspb.Message);
65
+ if (goog.DEBUG && !COMPILED) {
66
+ /**
67
+ * @public
68
+ * @override
69
+ */
70
+ proto.ondewo.nlu.GetEntityTypeCountRequest.displayName = 'proto.ondewo.nlu.GetEntityTypeCountRequest';
71
+ }
72
+ /**
73
+ * Generated by JsPbCodeGenerator.
74
+ * @param {Array=} opt_data Optional initial data array, typically from a
75
+ * server response, or constructed directly in Javascript. The array is used
76
+ * in place and becomes part of the constructed object. It is not cloned.
77
+ * If no data is provided, the constructed object will be empty, but still
78
+ * valid.
79
+ * @extends {jspb.Message}
80
+ * @constructor
81
+ */
82
+ proto.ondewo.nlu.GetProjectStatRequest = function(opt_data) {
83
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
84
+ };
85
+ goog.inherits(proto.ondewo.nlu.GetProjectStatRequest, jspb.Message);
86
+ if (goog.DEBUG && !COMPILED) {
87
+ /**
88
+ * @public
89
+ * @override
90
+ */
91
+ proto.ondewo.nlu.GetProjectStatRequest.displayName = 'proto.ondewo.nlu.GetProjectStatRequest';
92
+ }
93
+ /**
94
+ * Generated by JsPbCodeGenerator.
95
+ * @param {Array=} opt_data Optional initial data array, typically from a
96
+ * server response, or constructed directly in Javascript. The array is used
97
+ * in place and becomes part of the constructed object. It is not cloned.
98
+ * If no data is provided, the constructed object will be empty, but still
99
+ * valid.
100
+ * @extends {jspb.Message}
101
+ * @constructor
102
+ */
103
+ proto.ondewo.nlu.GetProjectElementStatRequest = function(opt_data) {
104
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
105
+ };
106
+ goog.inherits(proto.ondewo.nlu.GetProjectElementStatRequest, jspb.Message);
107
+ if (goog.DEBUG && !COMPILED) {
108
+ /**
109
+ * @public
110
+ * @override
111
+ */
112
+ proto.ondewo.nlu.GetProjectElementStatRequest.displayName = 'proto.ondewo.nlu.GetProjectElementStatRequest';
113
+ }
114
+
115
+
116
+
117
+ if (jspb.Message.GENERATE_TO_OBJECT) {
118
+ /**
119
+ * Creates an object representation of this proto.
120
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
121
+ * Optional fields that are not set will be set to undefined.
122
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
123
+ * For the list of reserved names please see:
124
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
125
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
126
+ * JSPB instance for transitional soy proto support:
127
+ * http://goto/soy-param-migration
128
+ * @return {!Object}
129
+ */
130
+ proto.ondewo.nlu.GetIntentCountRequest.prototype.toObject = function(opt_includeInstance) {
131
+ return proto.ondewo.nlu.GetIntentCountRequest.toObject(opt_includeInstance, this);
132
+ };
133
+
134
+
135
+ /**
136
+ * Static version of the {@see toObject} method.
137
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
138
+ * the JSPB instance for transitional soy proto support:
139
+ * http://goto/soy-param-migration
140
+ * @param {!proto.ondewo.nlu.GetIntentCountRequest} msg The msg instance to transform.
141
+ * @return {!Object}
142
+ * @suppress {unusedLocalVariables} f is only used for nested messages
143
+ */
144
+ proto.ondewo.nlu.GetIntentCountRequest.toObject = function(includeInstance, msg) {
145
+ var f, obj = {
146
+ parent: jspb.Message.getFieldWithDefault(msg, 1, ""),
147
+ filterByCategory: jspb.Message.getFieldWithDefault(msg, 2, 0)
148
+ };
149
+
150
+ if (includeInstance) {
151
+ obj.$jspbMessageInstance = msg;
152
+ }
153
+ return obj;
154
+ };
155
+ }
156
+
157
+
158
+ /**
159
+ * Deserializes binary data (in protobuf wire format).
160
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
161
+ * @return {!proto.ondewo.nlu.GetIntentCountRequest}
162
+ */
163
+ proto.ondewo.nlu.GetIntentCountRequest.deserializeBinary = function(bytes) {
164
+ var reader = new jspb.BinaryReader(bytes);
165
+ var msg = new proto.ondewo.nlu.GetIntentCountRequest;
166
+ return proto.ondewo.nlu.GetIntentCountRequest.deserializeBinaryFromReader(msg, reader);
167
+ };
168
+
169
+
170
+ /**
171
+ * Deserializes binary data (in protobuf wire format) from the
172
+ * given reader into the given message object.
173
+ * @param {!proto.ondewo.nlu.GetIntentCountRequest} msg The message object to deserialize into.
174
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
175
+ * @return {!proto.ondewo.nlu.GetIntentCountRequest}
176
+ */
177
+ proto.ondewo.nlu.GetIntentCountRequest.deserializeBinaryFromReader = function(msg, reader) {
178
+ while (reader.nextField()) {
179
+ if (reader.isEndGroup()) {
180
+ break;
181
+ }
182
+ var field = reader.getFieldNumber();
183
+ switch (field) {
184
+ case 1:
185
+ var value = /** @type {string} */ (reader.readString());
186
+ msg.setParent(value);
187
+ break;
188
+ case 2:
189
+ var value = /** @type {!proto.ondewo.nlu.IntentCategory} */ (reader.readEnum());
190
+ msg.setFilterByCategory(value);
191
+ break;
192
+ default:
193
+ reader.skipField();
194
+ break;
195
+ }
196
+ }
197
+ return msg;
198
+ };
199
+
200
+
201
+ /**
202
+ * Serializes the message to binary data (in protobuf wire format).
203
+ * @return {!Uint8Array}
204
+ */
205
+ proto.ondewo.nlu.GetIntentCountRequest.prototype.serializeBinary = function() {
206
+ var writer = new jspb.BinaryWriter();
207
+ proto.ondewo.nlu.GetIntentCountRequest.serializeBinaryToWriter(this, writer);
208
+ return writer.getResultBuffer();
209
+ };
210
+
211
+
212
+ /**
213
+ * Serializes the given message to binary data (in protobuf wire
214
+ * format), writing to the given BinaryWriter.
215
+ * @param {!proto.ondewo.nlu.GetIntentCountRequest} message
216
+ * @param {!jspb.BinaryWriter} writer
217
+ * @suppress {unusedLocalVariables} f is only used for nested messages
218
+ */
219
+ proto.ondewo.nlu.GetIntentCountRequest.serializeBinaryToWriter = function(message, writer) {
220
+ var f = undefined;
221
+ f = message.getParent();
222
+ if (f.length > 0) {
223
+ writer.writeString(
224
+ 1,
225
+ f
226
+ );
227
+ }
228
+ f = message.getFilterByCategory();
229
+ if (f !== 0.0) {
230
+ writer.writeEnum(
231
+ 2,
232
+ f
233
+ );
234
+ }
235
+ };
236
+
237
+
238
+ /**
239
+ * optional string parent = 1;
240
+ * @return {string}
241
+ */
242
+ proto.ondewo.nlu.GetIntentCountRequest.prototype.getParent = function() {
243
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
244
+ };
245
+
246
+
247
+ /**
248
+ * @param {string} value
249
+ * @return {!proto.ondewo.nlu.GetIntentCountRequest} returns this
250
+ */
251
+ proto.ondewo.nlu.GetIntentCountRequest.prototype.setParent = function(value) {
252
+ return jspb.Message.setProto3StringField(this, 1, value);
253
+ };
254
+
255
+
256
+ /**
257
+ * optional IntentCategory filter_by_category = 2;
258
+ * @return {!proto.ondewo.nlu.IntentCategory}
259
+ */
260
+ proto.ondewo.nlu.GetIntentCountRequest.prototype.getFilterByCategory = function() {
261
+ return /** @type {!proto.ondewo.nlu.IntentCategory} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
262
+ };
263
+
264
+
265
+ /**
266
+ * @param {!proto.ondewo.nlu.IntentCategory} value
267
+ * @return {!proto.ondewo.nlu.GetIntentCountRequest} returns this
268
+ */
269
+ proto.ondewo.nlu.GetIntentCountRequest.prototype.setFilterByCategory = function(value) {
270
+ return jspb.Message.setProto3EnumField(this, 2, value);
271
+ };
272
+
273
+
274
+
275
+
276
+
277
+ if (jspb.Message.GENERATE_TO_OBJECT) {
278
+ /**
279
+ * Creates an object representation of this proto.
280
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
281
+ * Optional fields that are not set will be set to undefined.
282
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
283
+ * For the list of reserved names please see:
284
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
285
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
286
+ * JSPB instance for transitional soy proto support:
287
+ * http://goto/soy-param-migration
288
+ * @return {!Object}
289
+ */
290
+ proto.ondewo.nlu.GetEntityTypeCountRequest.prototype.toObject = function(opt_includeInstance) {
291
+ return proto.ondewo.nlu.GetEntityTypeCountRequest.toObject(opt_includeInstance, this);
292
+ };
293
+
294
+
295
+ /**
296
+ * Static version of the {@see toObject} method.
297
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
298
+ * the JSPB instance for transitional soy proto support:
299
+ * http://goto/soy-param-migration
300
+ * @param {!proto.ondewo.nlu.GetEntityTypeCountRequest} msg The msg instance to transform.
301
+ * @return {!Object}
302
+ * @suppress {unusedLocalVariables} f is only used for nested messages
303
+ */
304
+ proto.ondewo.nlu.GetEntityTypeCountRequest.toObject = function(includeInstance, msg) {
305
+ var f, obj = {
306
+ parent: jspb.Message.getFieldWithDefault(msg, 1, ""),
307
+ filterByCategory: jspb.Message.getFieldWithDefault(msg, 2, 0)
308
+ };
309
+
310
+ if (includeInstance) {
311
+ obj.$jspbMessageInstance = msg;
312
+ }
313
+ return obj;
314
+ };
315
+ }
316
+
317
+
318
+ /**
319
+ * Deserializes binary data (in protobuf wire format).
320
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
321
+ * @return {!proto.ondewo.nlu.GetEntityTypeCountRequest}
322
+ */
323
+ proto.ondewo.nlu.GetEntityTypeCountRequest.deserializeBinary = function(bytes) {
324
+ var reader = new jspb.BinaryReader(bytes);
325
+ var msg = new proto.ondewo.nlu.GetEntityTypeCountRequest;
326
+ return proto.ondewo.nlu.GetEntityTypeCountRequest.deserializeBinaryFromReader(msg, reader);
327
+ };
328
+
329
+
330
+ /**
331
+ * Deserializes binary data (in protobuf wire format) from the
332
+ * given reader into the given message object.
333
+ * @param {!proto.ondewo.nlu.GetEntityTypeCountRequest} msg The message object to deserialize into.
334
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
335
+ * @return {!proto.ondewo.nlu.GetEntityTypeCountRequest}
336
+ */
337
+ proto.ondewo.nlu.GetEntityTypeCountRequest.deserializeBinaryFromReader = function(msg, reader) {
338
+ while (reader.nextField()) {
339
+ if (reader.isEndGroup()) {
340
+ break;
341
+ }
342
+ var field = reader.getFieldNumber();
343
+ switch (field) {
344
+ case 1:
345
+ var value = /** @type {string} */ (reader.readString());
346
+ msg.setParent(value);
347
+ break;
348
+ case 2:
349
+ var value = /** @type {!proto.ondewo.nlu.EntityTypeCategory} */ (reader.readEnum());
350
+ msg.setFilterByCategory(value);
351
+ break;
352
+ default:
353
+ reader.skipField();
354
+ break;
355
+ }
356
+ }
357
+ return msg;
358
+ };
359
+
360
+
361
+ /**
362
+ * Serializes the message to binary data (in protobuf wire format).
363
+ * @return {!Uint8Array}
364
+ */
365
+ proto.ondewo.nlu.GetEntityTypeCountRequest.prototype.serializeBinary = function() {
366
+ var writer = new jspb.BinaryWriter();
367
+ proto.ondewo.nlu.GetEntityTypeCountRequest.serializeBinaryToWriter(this, writer);
368
+ return writer.getResultBuffer();
369
+ };
370
+
371
+
372
+ /**
373
+ * Serializes the given message to binary data (in protobuf wire
374
+ * format), writing to the given BinaryWriter.
375
+ * @param {!proto.ondewo.nlu.GetEntityTypeCountRequest} message
376
+ * @param {!jspb.BinaryWriter} writer
377
+ * @suppress {unusedLocalVariables} f is only used for nested messages
378
+ */
379
+ proto.ondewo.nlu.GetEntityTypeCountRequest.serializeBinaryToWriter = function(message, writer) {
380
+ var f = undefined;
381
+ f = message.getParent();
382
+ if (f.length > 0) {
383
+ writer.writeString(
384
+ 1,
385
+ f
386
+ );
387
+ }
388
+ f = message.getFilterByCategory();
389
+ if (f !== 0.0) {
390
+ writer.writeEnum(
391
+ 2,
392
+ f
393
+ );
394
+ }
395
+ };
396
+
397
+
398
+ /**
399
+ * optional string parent = 1;
400
+ * @return {string}
401
+ */
402
+ proto.ondewo.nlu.GetEntityTypeCountRequest.prototype.getParent = function() {
403
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
404
+ };
405
+
406
+
407
+ /**
408
+ * @param {string} value
409
+ * @return {!proto.ondewo.nlu.GetEntityTypeCountRequest} returns this
410
+ */
411
+ proto.ondewo.nlu.GetEntityTypeCountRequest.prototype.setParent = function(value) {
412
+ return jspb.Message.setProto3StringField(this, 1, value);
413
+ };
414
+
415
+
416
+ /**
417
+ * optional EntityTypeCategory filter_by_category = 2;
418
+ * @return {!proto.ondewo.nlu.EntityTypeCategory}
419
+ */
420
+ proto.ondewo.nlu.GetEntityTypeCountRequest.prototype.getFilterByCategory = function() {
421
+ return /** @type {!proto.ondewo.nlu.EntityTypeCategory} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
422
+ };
423
+
424
+
425
+ /**
426
+ * @param {!proto.ondewo.nlu.EntityTypeCategory} value
427
+ * @return {!proto.ondewo.nlu.GetEntityTypeCountRequest} returns this
428
+ */
429
+ proto.ondewo.nlu.GetEntityTypeCountRequest.prototype.setFilterByCategory = function(value) {
430
+ return jspb.Message.setProto3EnumField(this, 2, value);
431
+ };
432
+
433
+
434
+
435
+
436
+
437
+ if (jspb.Message.GENERATE_TO_OBJECT) {
438
+ /**
439
+ * Creates an object representation of this proto.
440
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
441
+ * Optional fields that are not set will be set to undefined.
442
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
443
+ * For the list of reserved names please see:
444
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
445
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
446
+ * JSPB instance for transitional soy proto support:
447
+ * http://goto/soy-param-migration
448
+ * @return {!Object}
449
+ */
450
+ proto.ondewo.nlu.GetProjectStatRequest.prototype.toObject = function(opt_includeInstance) {
451
+ return proto.ondewo.nlu.GetProjectStatRequest.toObject(opt_includeInstance, this);
452
+ };
453
+
454
+
455
+ /**
456
+ * Static version of the {@see toObject} method.
457
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
458
+ * the JSPB instance for transitional soy proto support:
459
+ * http://goto/soy-param-migration
460
+ * @param {!proto.ondewo.nlu.GetProjectStatRequest} msg The msg instance to transform.
461
+ * @return {!Object}
462
+ * @suppress {unusedLocalVariables} f is only used for nested messages
463
+ */
464
+ proto.ondewo.nlu.GetProjectStatRequest.toObject = function(includeInstance, msg) {
465
+ var f, obj = {
466
+ parent: jspb.Message.getFieldWithDefault(msg, 1, "")
467
+ };
468
+
469
+ if (includeInstance) {
470
+ obj.$jspbMessageInstance = msg;
471
+ }
472
+ return obj;
473
+ };
474
+ }
475
+
476
+
477
+ /**
478
+ * Deserializes binary data (in protobuf wire format).
479
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
480
+ * @return {!proto.ondewo.nlu.GetProjectStatRequest}
481
+ */
482
+ proto.ondewo.nlu.GetProjectStatRequest.deserializeBinary = function(bytes) {
483
+ var reader = new jspb.BinaryReader(bytes);
484
+ var msg = new proto.ondewo.nlu.GetProjectStatRequest;
485
+ return proto.ondewo.nlu.GetProjectStatRequest.deserializeBinaryFromReader(msg, reader);
486
+ };
487
+
488
+
489
+ /**
490
+ * Deserializes binary data (in protobuf wire format) from the
491
+ * given reader into the given message object.
492
+ * @param {!proto.ondewo.nlu.GetProjectStatRequest} msg The message object to deserialize into.
493
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
494
+ * @return {!proto.ondewo.nlu.GetProjectStatRequest}
495
+ */
496
+ proto.ondewo.nlu.GetProjectStatRequest.deserializeBinaryFromReader = function(msg, reader) {
497
+ while (reader.nextField()) {
498
+ if (reader.isEndGroup()) {
499
+ break;
500
+ }
501
+ var field = reader.getFieldNumber();
502
+ switch (field) {
503
+ case 1:
504
+ var value = /** @type {string} */ (reader.readString());
505
+ msg.setParent(value);
506
+ break;
507
+ default:
508
+ reader.skipField();
509
+ break;
510
+ }
511
+ }
512
+ return msg;
513
+ };
514
+
515
+
516
+ /**
517
+ * Serializes the message to binary data (in protobuf wire format).
518
+ * @return {!Uint8Array}
519
+ */
520
+ proto.ondewo.nlu.GetProjectStatRequest.prototype.serializeBinary = function() {
521
+ var writer = new jspb.BinaryWriter();
522
+ proto.ondewo.nlu.GetProjectStatRequest.serializeBinaryToWriter(this, writer);
523
+ return writer.getResultBuffer();
524
+ };
525
+
526
+
527
+ /**
528
+ * Serializes the given message to binary data (in protobuf wire
529
+ * format), writing to the given BinaryWriter.
530
+ * @param {!proto.ondewo.nlu.GetProjectStatRequest} message
531
+ * @param {!jspb.BinaryWriter} writer
532
+ * @suppress {unusedLocalVariables} f is only used for nested messages
533
+ */
534
+ proto.ondewo.nlu.GetProjectStatRequest.serializeBinaryToWriter = function(message, writer) {
535
+ var f = undefined;
536
+ f = message.getParent();
537
+ if (f.length > 0) {
538
+ writer.writeString(
539
+ 1,
540
+ f
541
+ );
542
+ }
543
+ };
544
+
545
+
546
+ /**
547
+ * optional string parent = 1;
548
+ * @return {string}
549
+ */
550
+ proto.ondewo.nlu.GetProjectStatRequest.prototype.getParent = function() {
551
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
552
+ };
553
+
554
+
555
+ /**
556
+ * @param {string} value
557
+ * @return {!proto.ondewo.nlu.GetProjectStatRequest} returns this
558
+ */
559
+ proto.ondewo.nlu.GetProjectStatRequest.prototype.setParent = function(value) {
560
+ return jspb.Message.setProto3StringField(this, 1, value);
561
+ };
562
+
563
+
564
+
565
+
566
+
567
+ if (jspb.Message.GENERATE_TO_OBJECT) {
568
+ /**
569
+ * Creates an object representation of this proto.
570
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
571
+ * Optional fields that are not set will be set to undefined.
572
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
573
+ * For the list of reserved names please see:
574
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
575
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
576
+ * JSPB instance for transitional soy proto support:
577
+ * http://goto/soy-param-migration
578
+ * @return {!Object}
579
+ */
580
+ proto.ondewo.nlu.GetProjectElementStatRequest.prototype.toObject = function(opt_includeInstance) {
581
+ return proto.ondewo.nlu.GetProjectElementStatRequest.toObject(opt_includeInstance, this);
582
+ };
583
+
584
+
585
+ /**
586
+ * Static version of the {@see toObject} method.
587
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
588
+ * the JSPB instance for transitional soy proto support:
589
+ * http://goto/soy-param-migration
590
+ * @param {!proto.ondewo.nlu.GetProjectElementStatRequest} msg The msg instance to transform.
591
+ * @return {!Object}
592
+ * @suppress {unusedLocalVariables} f is only used for nested messages
593
+ */
594
+ proto.ondewo.nlu.GetProjectElementStatRequest.toObject = function(includeInstance, msg) {
595
+ var f, obj = {
596
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
597
+ languageCode: jspb.Message.getFieldWithDefault(msg, 2, "")
598
+ };
599
+
600
+ if (includeInstance) {
601
+ obj.$jspbMessageInstance = msg;
602
+ }
603
+ return obj;
604
+ };
605
+ }
606
+
607
+
608
+ /**
609
+ * Deserializes binary data (in protobuf wire format).
610
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
611
+ * @return {!proto.ondewo.nlu.GetProjectElementStatRequest}
612
+ */
613
+ proto.ondewo.nlu.GetProjectElementStatRequest.deserializeBinary = function(bytes) {
614
+ var reader = new jspb.BinaryReader(bytes);
615
+ var msg = new proto.ondewo.nlu.GetProjectElementStatRequest;
616
+ return proto.ondewo.nlu.GetProjectElementStatRequest.deserializeBinaryFromReader(msg, reader);
617
+ };
618
+
619
+
620
+ /**
621
+ * Deserializes binary data (in protobuf wire format) from the
622
+ * given reader into the given message object.
623
+ * @param {!proto.ondewo.nlu.GetProjectElementStatRequest} msg The message object to deserialize into.
624
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
625
+ * @return {!proto.ondewo.nlu.GetProjectElementStatRequest}
626
+ */
627
+ proto.ondewo.nlu.GetProjectElementStatRequest.deserializeBinaryFromReader = function(msg, reader) {
628
+ while (reader.nextField()) {
629
+ if (reader.isEndGroup()) {
630
+ break;
631
+ }
632
+ var field = reader.getFieldNumber();
633
+ switch (field) {
634
+ case 1:
635
+ var value = /** @type {string} */ (reader.readString());
636
+ msg.setName(value);
637
+ break;
638
+ case 2:
639
+ var value = /** @type {string} */ (reader.readString());
640
+ msg.setLanguageCode(value);
641
+ break;
642
+ default:
643
+ reader.skipField();
644
+ break;
645
+ }
646
+ }
647
+ return msg;
648
+ };
649
+
650
+
651
+ /**
652
+ * Serializes the message to binary data (in protobuf wire format).
653
+ * @return {!Uint8Array}
654
+ */
655
+ proto.ondewo.nlu.GetProjectElementStatRequest.prototype.serializeBinary = function() {
656
+ var writer = new jspb.BinaryWriter();
657
+ proto.ondewo.nlu.GetProjectElementStatRequest.serializeBinaryToWriter(this, writer);
658
+ return writer.getResultBuffer();
659
+ };
660
+
661
+
662
+ /**
663
+ * Serializes the given message to binary data (in protobuf wire
664
+ * format), writing to the given BinaryWriter.
665
+ * @param {!proto.ondewo.nlu.GetProjectElementStatRequest} message
666
+ * @param {!jspb.BinaryWriter} writer
667
+ * @suppress {unusedLocalVariables} f is only used for nested messages
668
+ */
669
+ proto.ondewo.nlu.GetProjectElementStatRequest.serializeBinaryToWriter = function(message, writer) {
670
+ var f = undefined;
671
+ f = message.getName();
672
+ if (f.length > 0) {
673
+ writer.writeString(
674
+ 1,
675
+ f
676
+ );
677
+ }
678
+ f = message.getLanguageCode();
679
+ if (f.length > 0) {
680
+ writer.writeString(
681
+ 2,
682
+ f
683
+ );
684
+ }
685
+ };
686
+
687
+
688
+ /**
689
+ * optional string name = 1;
690
+ * @return {string}
691
+ */
692
+ proto.ondewo.nlu.GetProjectElementStatRequest.prototype.getName = function() {
693
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
694
+ };
695
+
696
+
697
+ /**
698
+ * @param {string} value
699
+ * @return {!proto.ondewo.nlu.GetProjectElementStatRequest} returns this
700
+ */
701
+ proto.ondewo.nlu.GetProjectElementStatRequest.prototype.setName = function(value) {
702
+ return jspb.Message.setProto3StringField(this, 1, value);
703
+ };
704
+
705
+
706
+ /**
707
+ * optional string language_code = 2;
708
+ * @return {string}
709
+ */
710
+ proto.ondewo.nlu.GetProjectElementStatRequest.prototype.getLanguageCode = function() {
711
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
712
+ };
713
+
714
+
715
+ /**
716
+ * @param {string} value
717
+ * @return {!proto.ondewo.nlu.GetProjectElementStatRequest} returns this
718
+ */
719
+ proto.ondewo.nlu.GetProjectElementStatRequest.prototype.setLanguageCode = function(value) {
720
+ return jspb.Message.setProto3StringField(this, 2, value);
721
+ };
722
+
723
+
724
+ goog.object.extend(exports, proto.ondewo.nlu);