@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,1267 @@
1
+ // source: ondewo/nlu/webhook.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_context_pb = require('../../ondewo/nlu/context_pb.js');
21
+ goog.object.extend(proto, ondewo_nlu_context_pb);
22
+ var ondewo_nlu_intent_pb = require('../../ondewo/nlu/intent_pb.js');
23
+ goog.object.extend(proto, ondewo_nlu_intent_pb);
24
+ var ondewo_nlu_session_pb = require('../../ondewo/nlu/session_pb.js');
25
+ goog.object.extend(proto, ondewo_nlu_session_pb);
26
+ var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
27
+ goog.object.extend(proto, google_protobuf_struct_pb);
28
+ goog.exportSymbol('proto.ondewo.nlu.OriginalDetectIntentRequest', null, global);
29
+ goog.exportSymbol('proto.ondewo.nlu.PingRequest', null, global);
30
+ goog.exportSymbol('proto.ondewo.nlu.PingResponse', null, global);
31
+ goog.exportSymbol('proto.ondewo.nlu.WebhookRequest', null, global);
32
+ goog.exportSymbol('proto.ondewo.nlu.WebhookResponse', null, global);
33
+ /**
34
+ * Generated by JsPbCodeGenerator.
35
+ * @param {Array=} opt_data Optional initial data array, typically from a
36
+ * server response, or constructed directly in Javascript. The array is used
37
+ * in place and becomes part of the constructed object. It is not cloned.
38
+ * If no data is provided, the constructed object will be empty, but still
39
+ * valid.
40
+ * @extends {jspb.Message}
41
+ * @constructor
42
+ */
43
+ proto.ondewo.nlu.PingRequest = function(opt_data) {
44
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
45
+ };
46
+ goog.inherits(proto.ondewo.nlu.PingRequest, jspb.Message);
47
+ if (goog.DEBUG && !COMPILED) {
48
+ /**
49
+ * @public
50
+ * @override
51
+ */
52
+ proto.ondewo.nlu.PingRequest.displayName = 'proto.ondewo.nlu.PingRequest';
53
+ }
54
+ /**
55
+ * Generated by JsPbCodeGenerator.
56
+ * @param {Array=} opt_data Optional initial data array, typically from a
57
+ * server response, or constructed directly in Javascript. The array is used
58
+ * in place and becomes part of the constructed object. It is not cloned.
59
+ * If no data is provided, the constructed object will be empty, but still
60
+ * valid.
61
+ * @extends {jspb.Message}
62
+ * @constructor
63
+ */
64
+ proto.ondewo.nlu.WebhookRequest = function(opt_data) {
65
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
66
+ };
67
+ goog.inherits(proto.ondewo.nlu.WebhookRequest, jspb.Message);
68
+ if (goog.DEBUG && !COMPILED) {
69
+ /**
70
+ * @public
71
+ * @override
72
+ */
73
+ proto.ondewo.nlu.WebhookRequest.displayName = 'proto.ondewo.nlu.WebhookRequest';
74
+ }
75
+ /**
76
+ * Generated by JsPbCodeGenerator.
77
+ * @param {Array=} opt_data Optional initial data array, typically from a
78
+ * server response, or constructed directly in Javascript. The array is used
79
+ * in place and becomes part of the constructed object. It is not cloned.
80
+ * If no data is provided, the constructed object will be empty, but still
81
+ * valid.
82
+ * @extends {jspb.Message}
83
+ * @constructor
84
+ */
85
+ proto.ondewo.nlu.WebhookResponse = function(opt_data) {
86
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.WebhookResponse.repeatedFields_, null);
87
+ };
88
+ goog.inherits(proto.ondewo.nlu.WebhookResponse, jspb.Message);
89
+ if (goog.DEBUG && !COMPILED) {
90
+ /**
91
+ * @public
92
+ * @override
93
+ */
94
+ proto.ondewo.nlu.WebhookResponse.displayName = 'proto.ondewo.nlu.WebhookResponse';
95
+ }
96
+ /**
97
+ * Generated by JsPbCodeGenerator.
98
+ * @param {Array=} opt_data Optional initial data array, typically from a
99
+ * server response, or constructed directly in Javascript. The array is used
100
+ * in place and becomes part of the constructed object. It is not cloned.
101
+ * If no data is provided, the constructed object will be empty, but still
102
+ * valid.
103
+ * @extends {jspb.Message}
104
+ * @constructor
105
+ */
106
+ proto.ondewo.nlu.OriginalDetectIntentRequest = function(opt_data) {
107
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
108
+ };
109
+ goog.inherits(proto.ondewo.nlu.OriginalDetectIntentRequest, jspb.Message);
110
+ if (goog.DEBUG && !COMPILED) {
111
+ /**
112
+ * @public
113
+ * @override
114
+ */
115
+ proto.ondewo.nlu.OriginalDetectIntentRequest.displayName = 'proto.ondewo.nlu.OriginalDetectIntentRequest';
116
+ }
117
+ /**
118
+ * Generated by JsPbCodeGenerator.
119
+ * @param {Array=} opt_data Optional initial data array, typically from a
120
+ * server response, or constructed directly in Javascript. The array is used
121
+ * in place and becomes part of the constructed object. It is not cloned.
122
+ * If no data is provided, the constructed object will be empty, but still
123
+ * valid.
124
+ * @extends {jspb.Message}
125
+ * @constructor
126
+ */
127
+ proto.ondewo.nlu.PingResponse = function(opt_data) {
128
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
129
+ };
130
+ goog.inherits(proto.ondewo.nlu.PingResponse, jspb.Message);
131
+ if (goog.DEBUG && !COMPILED) {
132
+ /**
133
+ * @public
134
+ * @override
135
+ */
136
+ proto.ondewo.nlu.PingResponse.displayName = 'proto.ondewo.nlu.PingResponse';
137
+ }
138
+
139
+
140
+
141
+ if (jspb.Message.GENERATE_TO_OBJECT) {
142
+ /**
143
+ * Creates an object representation of this proto.
144
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
145
+ * Optional fields that are not set will be set to undefined.
146
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
147
+ * For the list of reserved names please see:
148
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
149
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
150
+ * JSPB instance for transitional soy proto support:
151
+ * http://goto/soy-param-migration
152
+ * @return {!Object}
153
+ */
154
+ proto.ondewo.nlu.PingRequest.prototype.toObject = function(opt_includeInstance) {
155
+ return proto.ondewo.nlu.PingRequest.toObject(opt_includeInstance, this);
156
+ };
157
+
158
+
159
+ /**
160
+ * Static version of the {@see toObject} method.
161
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
162
+ * the JSPB instance for transitional soy proto support:
163
+ * http://goto/soy-param-migration
164
+ * @param {!proto.ondewo.nlu.PingRequest} msg The msg instance to transform.
165
+ * @return {!Object}
166
+ * @suppress {unusedLocalVariables} f is only used for nested messages
167
+ */
168
+ proto.ondewo.nlu.PingRequest.toObject = function(includeInstance, msg) {
169
+ var f, obj = {
170
+ session: jspb.Message.getFieldWithDefault(msg, 1, "")
171
+ };
172
+
173
+ if (includeInstance) {
174
+ obj.$jspbMessageInstance = msg;
175
+ }
176
+ return obj;
177
+ };
178
+ }
179
+
180
+
181
+ /**
182
+ * Deserializes binary data (in protobuf wire format).
183
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
184
+ * @return {!proto.ondewo.nlu.PingRequest}
185
+ */
186
+ proto.ondewo.nlu.PingRequest.deserializeBinary = function(bytes) {
187
+ var reader = new jspb.BinaryReader(bytes);
188
+ var msg = new proto.ondewo.nlu.PingRequest;
189
+ return proto.ondewo.nlu.PingRequest.deserializeBinaryFromReader(msg, reader);
190
+ };
191
+
192
+
193
+ /**
194
+ * Deserializes binary data (in protobuf wire format) from the
195
+ * given reader into the given message object.
196
+ * @param {!proto.ondewo.nlu.PingRequest} msg The message object to deserialize into.
197
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
198
+ * @return {!proto.ondewo.nlu.PingRequest}
199
+ */
200
+ proto.ondewo.nlu.PingRequest.deserializeBinaryFromReader = function(msg, reader) {
201
+ while (reader.nextField()) {
202
+ if (reader.isEndGroup()) {
203
+ break;
204
+ }
205
+ var field = reader.getFieldNumber();
206
+ switch (field) {
207
+ case 1:
208
+ var value = /** @type {string} */ (reader.readString());
209
+ msg.setSession(value);
210
+ break;
211
+ default:
212
+ reader.skipField();
213
+ break;
214
+ }
215
+ }
216
+ return msg;
217
+ };
218
+
219
+
220
+ /**
221
+ * Serializes the message to binary data (in protobuf wire format).
222
+ * @return {!Uint8Array}
223
+ */
224
+ proto.ondewo.nlu.PingRequest.prototype.serializeBinary = function() {
225
+ var writer = new jspb.BinaryWriter();
226
+ proto.ondewo.nlu.PingRequest.serializeBinaryToWriter(this, writer);
227
+ return writer.getResultBuffer();
228
+ };
229
+
230
+
231
+ /**
232
+ * Serializes the given message to binary data (in protobuf wire
233
+ * format), writing to the given BinaryWriter.
234
+ * @param {!proto.ondewo.nlu.PingRequest} message
235
+ * @param {!jspb.BinaryWriter} writer
236
+ * @suppress {unusedLocalVariables} f is only used for nested messages
237
+ */
238
+ proto.ondewo.nlu.PingRequest.serializeBinaryToWriter = function(message, writer) {
239
+ var f = undefined;
240
+ f = message.getSession();
241
+ if (f.length > 0) {
242
+ writer.writeString(
243
+ 1,
244
+ f
245
+ );
246
+ }
247
+ };
248
+
249
+
250
+ /**
251
+ * optional string session = 1;
252
+ * @return {string}
253
+ */
254
+ proto.ondewo.nlu.PingRequest.prototype.getSession = function() {
255
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
256
+ };
257
+
258
+
259
+ /**
260
+ * @param {string} value
261
+ * @return {!proto.ondewo.nlu.PingRequest} returns this
262
+ */
263
+ proto.ondewo.nlu.PingRequest.prototype.setSession = function(value) {
264
+ return jspb.Message.setProto3StringField(this, 1, value);
265
+ };
266
+
267
+
268
+
269
+
270
+
271
+ if (jspb.Message.GENERATE_TO_OBJECT) {
272
+ /**
273
+ * Creates an object representation of this proto.
274
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
275
+ * Optional fields that are not set will be set to undefined.
276
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
277
+ * For the list of reserved names please see:
278
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
279
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
280
+ * JSPB instance for transitional soy proto support:
281
+ * http://goto/soy-param-migration
282
+ * @return {!Object}
283
+ */
284
+ proto.ondewo.nlu.WebhookRequest.prototype.toObject = function(opt_includeInstance) {
285
+ return proto.ondewo.nlu.WebhookRequest.toObject(opt_includeInstance, this);
286
+ };
287
+
288
+
289
+ /**
290
+ * Static version of the {@see toObject} method.
291
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
292
+ * the JSPB instance for transitional soy proto support:
293
+ * http://goto/soy-param-migration
294
+ * @param {!proto.ondewo.nlu.WebhookRequest} msg The msg instance to transform.
295
+ * @return {!Object}
296
+ * @suppress {unusedLocalVariables} f is only used for nested messages
297
+ */
298
+ proto.ondewo.nlu.WebhookRequest.toObject = function(includeInstance, msg) {
299
+ var f, obj = {
300
+ session: jspb.Message.getFieldWithDefault(msg, 4, ""),
301
+ responseId: jspb.Message.getFieldWithDefault(msg, 1, ""),
302
+ queryResult: (f = msg.getQueryResult()) && ondewo_nlu_session_pb.QueryResult.toObject(includeInstance, f),
303
+ originalDetectIntentRequest: (f = msg.getOriginalDetectIntentRequest()) && proto.ondewo.nlu.OriginalDetectIntentRequest.toObject(includeInstance, f),
304
+ headers: (f = msg.getHeaders()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
305
+ };
306
+
307
+ if (includeInstance) {
308
+ obj.$jspbMessageInstance = msg;
309
+ }
310
+ return obj;
311
+ };
312
+ }
313
+
314
+
315
+ /**
316
+ * Deserializes binary data (in protobuf wire format).
317
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
318
+ * @return {!proto.ondewo.nlu.WebhookRequest}
319
+ */
320
+ proto.ondewo.nlu.WebhookRequest.deserializeBinary = function(bytes) {
321
+ var reader = new jspb.BinaryReader(bytes);
322
+ var msg = new proto.ondewo.nlu.WebhookRequest;
323
+ return proto.ondewo.nlu.WebhookRequest.deserializeBinaryFromReader(msg, reader);
324
+ };
325
+
326
+
327
+ /**
328
+ * Deserializes binary data (in protobuf wire format) from the
329
+ * given reader into the given message object.
330
+ * @param {!proto.ondewo.nlu.WebhookRequest} msg The message object to deserialize into.
331
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
332
+ * @return {!proto.ondewo.nlu.WebhookRequest}
333
+ */
334
+ proto.ondewo.nlu.WebhookRequest.deserializeBinaryFromReader = function(msg, reader) {
335
+ while (reader.nextField()) {
336
+ if (reader.isEndGroup()) {
337
+ break;
338
+ }
339
+ var field = reader.getFieldNumber();
340
+ switch (field) {
341
+ case 4:
342
+ var value = /** @type {string} */ (reader.readString());
343
+ msg.setSession(value);
344
+ break;
345
+ case 1:
346
+ var value = /** @type {string} */ (reader.readString());
347
+ msg.setResponseId(value);
348
+ break;
349
+ case 2:
350
+ var value = new ondewo_nlu_session_pb.QueryResult;
351
+ reader.readMessage(value,ondewo_nlu_session_pb.QueryResult.deserializeBinaryFromReader);
352
+ msg.setQueryResult(value);
353
+ break;
354
+ case 3:
355
+ var value = new proto.ondewo.nlu.OriginalDetectIntentRequest;
356
+ reader.readMessage(value,proto.ondewo.nlu.OriginalDetectIntentRequest.deserializeBinaryFromReader);
357
+ msg.setOriginalDetectIntentRequest(value);
358
+ break;
359
+ case 5:
360
+ var value = new google_protobuf_struct_pb.Struct;
361
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
362
+ msg.setHeaders(value);
363
+ break;
364
+ default:
365
+ reader.skipField();
366
+ break;
367
+ }
368
+ }
369
+ return msg;
370
+ };
371
+
372
+
373
+ /**
374
+ * Serializes the message to binary data (in protobuf wire format).
375
+ * @return {!Uint8Array}
376
+ */
377
+ proto.ondewo.nlu.WebhookRequest.prototype.serializeBinary = function() {
378
+ var writer = new jspb.BinaryWriter();
379
+ proto.ondewo.nlu.WebhookRequest.serializeBinaryToWriter(this, writer);
380
+ return writer.getResultBuffer();
381
+ };
382
+
383
+
384
+ /**
385
+ * Serializes the given message to binary data (in protobuf wire
386
+ * format), writing to the given BinaryWriter.
387
+ * @param {!proto.ondewo.nlu.WebhookRequest} message
388
+ * @param {!jspb.BinaryWriter} writer
389
+ * @suppress {unusedLocalVariables} f is only used for nested messages
390
+ */
391
+ proto.ondewo.nlu.WebhookRequest.serializeBinaryToWriter = function(message, writer) {
392
+ var f = undefined;
393
+ f = message.getSession();
394
+ if (f.length > 0) {
395
+ writer.writeString(
396
+ 4,
397
+ f
398
+ );
399
+ }
400
+ f = message.getResponseId();
401
+ if (f.length > 0) {
402
+ writer.writeString(
403
+ 1,
404
+ f
405
+ );
406
+ }
407
+ f = message.getQueryResult();
408
+ if (f != null) {
409
+ writer.writeMessage(
410
+ 2,
411
+ f,
412
+ ondewo_nlu_session_pb.QueryResult.serializeBinaryToWriter
413
+ );
414
+ }
415
+ f = message.getOriginalDetectIntentRequest();
416
+ if (f != null) {
417
+ writer.writeMessage(
418
+ 3,
419
+ f,
420
+ proto.ondewo.nlu.OriginalDetectIntentRequest.serializeBinaryToWriter
421
+ );
422
+ }
423
+ f = message.getHeaders();
424
+ if (f != null) {
425
+ writer.writeMessage(
426
+ 5,
427
+ f,
428
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
429
+ );
430
+ }
431
+ };
432
+
433
+
434
+ /**
435
+ * optional string session = 4;
436
+ * @return {string}
437
+ */
438
+ proto.ondewo.nlu.WebhookRequest.prototype.getSession = function() {
439
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
440
+ };
441
+
442
+
443
+ /**
444
+ * @param {string} value
445
+ * @return {!proto.ondewo.nlu.WebhookRequest} returns this
446
+ */
447
+ proto.ondewo.nlu.WebhookRequest.prototype.setSession = function(value) {
448
+ return jspb.Message.setProto3StringField(this, 4, value);
449
+ };
450
+
451
+
452
+ /**
453
+ * optional string response_id = 1;
454
+ * @return {string}
455
+ */
456
+ proto.ondewo.nlu.WebhookRequest.prototype.getResponseId = function() {
457
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
458
+ };
459
+
460
+
461
+ /**
462
+ * @param {string} value
463
+ * @return {!proto.ondewo.nlu.WebhookRequest} returns this
464
+ */
465
+ proto.ondewo.nlu.WebhookRequest.prototype.setResponseId = function(value) {
466
+ return jspb.Message.setProto3StringField(this, 1, value);
467
+ };
468
+
469
+
470
+ /**
471
+ * optional QueryResult query_result = 2;
472
+ * @return {?proto.ondewo.nlu.QueryResult}
473
+ */
474
+ proto.ondewo.nlu.WebhookRequest.prototype.getQueryResult = function() {
475
+ return /** @type{?proto.ondewo.nlu.QueryResult} */ (
476
+ jspb.Message.getWrapperField(this, ondewo_nlu_session_pb.QueryResult, 2));
477
+ };
478
+
479
+
480
+ /**
481
+ * @param {?proto.ondewo.nlu.QueryResult|undefined} value
482
+ * @return {!proto.ondewo.nlu.WebhookRequest} returns this
483
+ */
484
+ proto.ondewo.nlu.WebhookRequest.prototype.setQueryResult = function(value) {
485
+ return jspb.Message.setWrapperField(this, 2, value);
486
+ };
487
+
488
+
489
+ /**
490
+ * Clears the message field making it undefined.
491
+ * @return {!proto.ondewo.nlu.WebhookRequest} returns this
492
+ */
493
+ proto.ondewo.nlu.WebhookRequest.prototype.clearQueryResult = function() {
494
+ return this.setQueryResult(undefined);
495
+ };
496
+
497
+
498
+ /**
499
+ * Returns whether this field is set.
500
+ * @return {boolean}
501
+ */
502
+ proto.ondewo.nlu.WebhookRequest.prototype.hasQueryResult = function() {
503
+ return jspb.Message.getField(this, 2) != null;
504
+ };
505
+
506
+
507
+ /**
508
+ * optional OriginalDetectIntentRequest original_detect_intent_request = 3;
509
+ * @return {?proto.ondewo.nlu.OriginalDetectIntentRequest}
510
+ */
511
+ proto.ondewo.nlu.WebhookRequest.prototype.getOriginalDetectIntentRequest = function() {
512
+ return /** @type{?proto.ondewo.nlu.OriginalDetectIntentRequest} */ (
513
+ jspb.Message.getWrapperField(this, proto.ondewo.nlu.OriginalDetectIntentRequest, 3));
514
+ };
515
+
516
+
517
+ /**
518
+ * @param {?proto.ondewo.nlu.OriginalDetectIntentRequest|undefined} value
519
+ * @return {!proto.ondewo.nlu.WebhookRequest} returns this
520
+ */
521
+ proto.ondewo.nlu.WebhookRequest.prototype.setOriginalDetectIntentRequest = function(value) {
522
+ return jspb.Message.setWrapperField(this, 3, value);
523
+ };
524
+
525
+
526
+ /**
527
+ * Clears the message field making it undefined.
528
+ * @return {!proto.ondewo.nlu.WebhookRequest} returns this
529
+ */
530
+ proto.ondewo.nlu.WebhookRequest.prototype.clearOriginalDetectIntentRequest = function() {
531
+ return this.setOriginalDetectIntentRequest(undefined);
532
+ };
533
+
534
+
535
+ /**
536
+ * Returns whether this field is set.
537
+ * @return {boolean}
538
+ */
539
+ proto.ondewo.nlu.WebhookRequest.prototype.hasOriginalDetectIntentRequest = function() {
540
+ return jspb.Message.getField(this, 3) != null;
541
+ };
542
+
543
+
544
+ /**
545
+ * optional google.protobuf.Struct headers = 5;
546
+ * @return {?proto.google.protobuf.Struct}
547
+ */
548
+ proto.ondewo.nlu.WebhookRequest.prototype.getHeaders = function() {
549
+ return /** @type{?proto.google.protobuf.Struct} */ (
550
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5));
551
+ };
552
+
553
+
554
+ /**
555
+ * @param {?proto.google.protobuf.Struct|undefined} value
556
+ * @return {!proto.ondewo.nlu.WebhookRequest} returns this
557
+ */
558
+ proto.ondewo.nlu.WebhookRequest.prototype.setHeaders = function(value) {
559
+ return jspb.Message.setWrapperField(this, 5, value);
560
+ };
561
+
562
+
563
+ /**
564
+ * Clears the message field making it undefined.
565
+ * @return {!proto.ondewo.nlu.WebhookRequest} returns this
566
+ */
567
+ proto.ondewo.nlu.WebhookRequest.prototype.clearHeaders = function() {
568
+ return this.setHeaders(undefined);
569
+ };
570
+
571
+
572
+ /**
573
+ * Returns whether this field is set.
574
+ * @return {boolean}
575
+ */
576
+ proto.ondewo.nlu.WebhookRequest.prototype.hasHeaders = function() {
577
+ return jspb.Message.getField(this, 5) != null;
578
+ };
579
+
580
+
581
+
582
+ /**
583
+ * List of repeated fields within this message type.
584
+ * @private {!Array<number>}
585
+ * @const
586
+ */
587
+ proto.ondewo.nlu.WebhookResponse.repeatedFields_ = [2,5];
588
+
589
+
590
+
591
+ if (jspb.Message.GENERATE_TO_OBJECT) {
592
+ /**
593
+ * Creates an object representation of this proto.
594
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
595
+ * Optional fields that are not set will be set to undefined.
596
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
597
+ * For the list of reserved names please see:
598
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
599
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
600
+ * JSPB instance for transitional soy proto support:
601
+ * http://goto/soy-param-migration
602
+ * @return {!Object}
603
+ */
604
+ proto.ondewo.nlu.WebhookResponse.prototype.toObject = function(opt_includeInstance) {
605
+ return proto.ondewo.nlu.WebhookResponse.toObject(opt_includeInstance, this);
606
+ };
607
+
608
+
609
+ /**
610
+ * Static version of the {@see toObject} method.
611
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
612
+ * the JSPB instance for transitional soy proto support:
613
+ * http://goto/soy-param-migration
614
+ * @param {!proto.ondewo.nlu.WebhookResponse} msg The msg instance to transform.
615
+ * @return {!Object}
616
+ * @suppress {unusedLocalVariables} f is only used for nested messages
617
+ */
618
+ proto.ondewo.nlu.WebhookResponse.toObject = function(includeInstance, msg) {
619
+ var f, obj = {
620
+ fulfillmentText: jspb.Message.getFieldWithDefault(msg, 1, ""),
621
+ fulfillmentMessagesList: jspb.Message.toObjectList(msg.getFulfillmentMessagesList(),
622
+ ondewo_nlu_intent_pb.Intent.Message.toObject, includeInstance),
623
+ source: jspb.Message.getFieldWithDefault(msg, 3, ""),
624
+ payload: (f = msg.getPayload()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
625
+ outputContextsList: jspb.Message.toObjectList(msg.getOutputContextsList(),
626
+ ondewo_nlu_context_pb.Context.toObject, includeInstance),
627
+ followupEventInput: (f = msg.getFollowupEventInput()) && ondewo_nlu_session_pb.EventInput.toObject(includeInstance, f)
628
+ };
629
+
630
+ if (includeInstance) {
631
+ obj.$jspbMessageInstance = msg;
632
+ }
633
+ return obj;
634
+ };
635
+ }
636
+
637
+
638
+ /**
639
+ * Deserializes binary data (in protobuf wire format).
640
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
641
+ * @return {!proto.ondewo.nlu.WebhookResponse}
642
+ */
643
+ proto.ondewo.nlu.WebhookResponse.deserializeBinary = function(bytes) {
644
+ var reader = new jspb.BinaryReader(bytes);
645
+ var msg = new proto.ondewo.nlu.WebhookResponse;
646
+ return proto.ondewo.nlu.WebhookResponse.deserializeBinaryFromReader(msg, reader);
647
+ };
648
+
649
+
650
+ /**
651
+ * Deserializes binary data (in protobuf wire format) from the
652
+ * given reader into the given message object.
653
+ * @param {!proto.ondewo.nlu.WebhookResponse} msg The message object to deserialize into.
654
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
655
+ * @return {!proto.ondewo.nlu.WebhookResponse}
656
+ */
657
+ proto.ondewo.nlu.WebhookResponse.deserializeBinaryFromReader = function(msg, reader) {
658
+ while (reader.nextField()) {
659
+ if (reader.isEndGroup()) {
660
+ break;
661
+ }
662
+ var field = reader.getFieldNumber();
663
+ switch (field) {
664
+ case 1:
665
+ var value = /** @type {string} */ (reader.readString());
666
+ msg.setFulfillmentText(value);
667
+ break;
668
+ case 2:
669
+ var value = new ondewo_nlu_intent_pb.Intent.Message;
670
+ reader.readMessage(value,ondewo_nlu_intent_pb.Intent.Message.deserializeBinaryFromReader);
671
+ msg.addFulfillmentMessages(value);
672
+ break;
673
+ case 3:
674
+ var value = /** @type {string} */ (reader.readString());
675
+ msg.setSource(value);
676
+ break;
677
+ case 4:
678
+ var value = new google_protobuf_struct_pb.Struct;
679
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
680
+ msg.setPayload(value);
681
+ break;
682
+ case 5:
683
+ var value = new ondewo_nlu_context_pb.Context;
684
+ reader.readMessage(value,ondewo_nlu_context_pb.Context.deserializeBinaryFromReader);
685
+ msg.addOutputContexts(value);
686
+ break;
687
+ case 6:
688
+ var value = new ondewo_nlu_session_pb.EventInput;
689
+ reader.readMessage(value,ondewo_nlu_session_pb.EventInput.deserializeBinaryFromReader);
690
+ msg.setFollowupEventInput(value);
691
+ break;
692
+ default:
693
+ reader.skipField();
694
+ break;
695
+ }
696
+ }
697
+ return msg;
698
+ };
699
+
700
+
701
+ /**
702
+ * Serializes the message to binary data (in protobuf wire format).
703
+ * @return {!Uint8Array}
704
+ */
705
+ proto.ondewo.nlu.WebhookResponse.prototype.serializeBinary = function() {
706
+ var writer = new jspb.BinaryWriter();
707
+ proto.ondewo.nlu.WebhookResponse.serializeBinaryToWriter(this, writer);
708
+ return writer.getResultBuffer();
709
+ };
710
+
711
+
712
+ /**
713
+ * Serializes the given message to binary data (in protobuf wire
714
+ * format), writing to the given BinaryWriter.
715
+ * @param {!proto.ondewo.nlu.WebhookResponse} message
716
+ * @param {!jspb.BinaryWriter} writer
717
+ * @suppress {unusedLocalVariables} f is only used for nested messages
718
+ */
719
+ proto.ondewo.nlu.WebhookResponse.serializeBinaryToWriter = function(message, writer) {
720
+ var f = undefined;
721
+ f = message.getFulfillmentText();
722
+ if (f.length > 0) {
723
+ writer.writeString(
724
+ 1,
725
+ f
726
+ );
727
+ }
728
+ f = message.getFulfillmentMessagesList();
729
+ if (f.length > 0) {
730
+ writer.writeRepeatedMessage(
731
+ 2,
732
+ f,
733
+ ondewo_nlu_intent_pb.Intent.Message.serializeBinaryToWriter
734
+ );
735
+ }
736
+ f = message.getSource();
737
+ if (f.length > 0) {
738
+ writer.writeString(
739
+ 3,
740
+ f
741
+ );
742
+ }
743
+ f = message.getPayload();
744
+ if (f != null) {
745
+ writer.writeMessage(
746
+ 4,
747
+ f,
748
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
749
+ );
750
+ }
751
+ f = message.getOutputContextsList();
752
+ if (f.length > 0) {
753
+ writer.writeRepeatedMessage(
754
+ 5,
755
+ f,
756
+ ondewo_nlu_context_pb.Context.serializeBinaryToWriter
757
+ );
758
+ }
759
+ f = message.getFollowupEventInput();
760
+ if (f != null) {
761
+ writer.writeMessage(
762
+ 6,
763
+ f,
764
+ ondewo_nlu_session_pb.EventInput.serializeBinaryToWriter
765
+ );
766
+ }
767
+ };
768
+
769
+
770
+ /**
771
+ * optional string fulfillment_text = 1;
772
+ * @return {string}
773
+ */
774
+ proto.ondewo.nlu.WebhookResponse.prototype.getFulfillmentText = function() {
775
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
776
+ };
777
+
778
+
779
+ /**
780
+ * @param {string} value
781
+ * @return {!proto.ondewo.nlu.WebhookResponse} returns this
782
+ */
783
+ proto.ondewo.nlu.WebhookResponse.prototype.setFulfillmentText = function(value) {
784
+ return jspb.Message.setProto3StringField(this, 1, value);
785
+ };
786
+
787
+
788
+ /**
789
+ * repeated Intent.Message fulfillment_messages = 2;
790
+ * @return {!Array<!proto.ondewo.nlu.Intent.Message>}
791
+ */
792
+ proto.ondewo.nlu.WebhookResponse.prototype.getFulfillmentMessagesList = function() {
793
+ return /** @type{!Array<!proto.ondewo.nlu.Intent.Message>} */ (
794
+ jspb.Message.getRepeatedWrapperField(this, ondewo_nlu_intent_pb.Intent.Message, 2));
795
+ };
796
+
797
+
798
+ /**
799
+ * @param {!Array<!proto.ondewo.nlu.Intent.Message>} value
800
+ * @return {!proto.ondewo.nlu.WebhookResponse} returns this
801
+ */
802
+ proto.ondewo.nlu.WebhookResponse.prototype.setFulfillmentMessagesList = function(value) {
803
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
804
+ };
805
+
806
+
807
+ /**
808
+ * @param {!proto.ondewo.nlu.Intent.Message=} opt_value
809
+ * @param {number=} opt_index
810
+ * @return {!proto.ondewo.nlu.Intent.Message}
811
+ */
812
+ proto.ondewo.nlu.WebhookResponse.prototype.addFulfillmentMessages = function(opt_value, opt_index) {
813
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.ondewo.nlu.Intent.Message, opt_index);
814
+ };
815
+
816
+
817
+ /**
818
+ * Clears the list making it empty but non-null.
819
+ * @return {!proto.ondewo.nlu.WebhookResponse} returns this
820
+ */
821
+ proto.ondewo.nlu.WebhookResponse.prototype.clearFulfillmentMessagesList = function() {
822
+ return this.setFulfillmentMessagesList([]);
823
+ };
824
+
825
+
826
+ /**
827
+ * optional string source = 3;
828
+ * @return {string}
829
+ */
830
+ proto.ondewo.nlu.WebhookResponse.prototype.getSource = function() {
831
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
832
+ };
833
+
834
+
835
+ /**
836
+ * @param {string} value
837
+ * @return {!proto.ondewo.nlu.WebhookResponse} returns this
838
+ */
839
+ proto.ondewo.nlu.WebhookResponse.prototype.setSource = function(value) {
840
+ return jspb.Message.setProto3StringField(this, 3, value);
841
+ };
842
+
843
+
844
+ /**
845
+ * optional google.protobuf.Struct payload = 4;
846
+ * @return {?proto.google.protobuf.Struct}
847
+ */
848
+ proto.ondewo.nlu.WebhookResponse.prototype.getPayload = function() {
849
+ return /** @type{?proto.google.protobuf.Struct} */ (
850
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 4));
851
+ };
852
+
853
+
854
+ /**
855
+ * @param {?proto.google.protobuf.Struct|undefined} value
856
+ * @return {!proto.ondewo.nlu.WebhookResponse} returns this
857
+ */
858
+ proto.ondewo.nlu.WebhookResponse.prototype.setPayload = function(value) {
859
+ return jspb.Message.setWrapperField(this, 4, value);
860
+ };
861
+
862
+
863
+ /**
864
+ * Clears the message field making it undefined.
865
+ * @return {!proto.ondewo.nlu.WebhookResponse} returns this
866
+ */
867
+ proto.ondewo.nlu.WebhookResponse.prototype.clearPayload = function() {
868
+ return this.setPayload(undefined);
869
+ };
870
+
871
+
872
+ /**
873
+ * Returns whether this field is set.
874
+ * @return {boolean}
875
+ */
876
+ proto.ondewo.nlu.WebhookResponse.prototype.hasPayload = function() {
877
+ return jspb.Message.getField(this, 4) != null;
878
+ };
879
+
880
+
881
+ /**
882
+ * repeated Context output_contexts = 5;
883
+ * @return {!Array<!proto.ondewo.nlu.Context>}
884
+ */
885
+ proto.ondewo.nlu.WebhookResponse.prototype.getOutputContextsList = function() {
886
+ return /** @type{!Array<!proto.ondewo.nlu.Context>} */ (
887
+ jspb.Message.getRepeatedWrapperField(this, ondewo_nlu_context_pb.Context, 5));
888
+ };
889
+
890
+
891
+ /**
892
+ * @param {!Array<!proto.ondewo.nlu.Context>} value
893
+ * @return {!proto.ondewo.nlu.WebhookResponse} returns this
894
+ */
895
+ proto.ondewo.nlu.WebhookResponse.prototype.setOutputContextsList = function(value) {
896
+ return jspb.Message.setRepeatedWrapperField(this, 5, value);
897
+ };
898
+
899
+
900
+ /**
901
+ * @param {!proto.ondewo.nlu.Context=} opt_value
902
+ * @param {number=} opt_index
903
+ * @return {!proto.ondewo.nlu.Context}
904
+ */
905
+ proto.ondewo.nlu.WebhookResponse.prototype.addOutputContexts = function(opt_value, opt_index) {
906
+ return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.ondewo.nlu.Context, opt_index);
907
+ };
908
+
909
+
910
+ /**
911
+ * Clears the list making it empty but non-null.
912
+ * @return {!proto.ondewo.nlu.WebhookResponse} returns this
913
+ */
914
+ proto.ondewo.nlu.WebhookResponse.prototype.clearOutputContextsList = function() {
915
+ return this.setOutputContextsList([]);
916
+ };
917
+
918
+
919
+ /**
920
+ * optional EventInput followup_event_input = 6;
921
+ * @return {?proto.ondewo.nlu.EventInput}
922
+ */
923
+ proto.ondewo.nlu.WebhookResponse.prototype.getFollowupEventInput = function() {
924
+ return /** @type{?proto.ondewo.nlu.EventInput} */ (
925
+ jspb.Message.getWrapperField(this, ondewo_nlu_session_pb.EventInput, 6));
926
+ };
927
+
928
+
929
+ /**
930
+ * @param {?proto.ondewo.nlu.EventInput|undefined} value
931
+ * @return {!proto.ondewo.nlu.WebhookResponse} returns this
932
+ */
933
+ proto.ondewo.nlu.WebhookResponse.prototype.setFollowupEventInput = function(value) {
934
+ return jspb.Message.setWrapperField(this, 6, value);
935
+ };
936
+
937
+
938
+ /**
939
+ * Clears the message field making it undefined.
940
+ * @return {!proto.ondewo.nlu.WebhookResponse} returns this
941
+ */
942
+ proto.ondewo.nlu.WebhookResponse.prototype.clearFollowupEventInput = function() {
943
+ return this.setFollowupEventInput(undefined);
944
+ };
945
+
946
+
947
+ /**
948
+ * Returns whether this field is set.
949
+ * @return {boolean}
950
+ */
951
+ proto.ondewo.nlu.WebhookResponse.prototype.hasFollowupEventInput = function() {
952
+ return jspb.Message.getField(this, 6) != null;
953
+ };
954
+
955
+
956
+
957
+
958
+
959
+ if (jspb.Message.GENERATE_TO_OBJECT) {
960
+ /**
961
+ * Creates an object representation of this proto.
962
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
963
+ * Optional fields that are not set will be set to undefined.
964
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
965
+ * For the list of reserved names please see:
966
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
967
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
968
+ * JSPB instance for transitional soy proto support:
969
+ * http://goto/soy-param-migration
970
+ * @return {!Object}
971
+ */
972
+ proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.toObject = function(opt_includeInstance) {
973
+ return proto.ondewo.nlu.OriginalDetectIntentRequest.toObject(opt_includeInstance, this);
974
+ };
975
+
976
+
977
+ /**
978
+ * Static version of the {@see toObject} method.
979
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
980
+ * the JSPB instance for transitional soy proto support:
981
+ * http://goto/soy-param-migration
982
+ * @param {!proto.ondewo.nlu.OriginalDetectIntentRequest} msg The msg instance to transform.
983
+ * @return {!Object}
984
+ * @suppress {unusedLocalVariables} f is only used for nested messages
985
+ */
986
+ proto.ondewo.nlu.OriginalDetectIntentRequest.toObject = function(includeInstance, msg) {
987
+ var f, obj = {
988
+ source: jspb.Message.getFieldWithDefault(msg, 1, ""),
989
+ payload: (f = msg.getPayload()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
990
+ };
991
+
992
+ if (includeInstance) {
993
+ obj.$jspbMessageInstance = msg;
994
+ }
995
+ return obj;
996
+ };
997
+ }
998
+
999
+
1000
+ /**
1001
+ * Deserializes binary data (in protobuf wire format).
1002
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1003
+ * @return {!proto.ondewo.nlu.OriginalDetectIntentRequest}
1004
+ */
1005
+ proto.ondewo.nlu.OriginalDetectIntentRequest.deserializeBinary = function(bytes) {
1006
+ var reader = new jspb.BinaryReader(bytes);
1007
+ var msg = new proto.ondewo.nlu.OriginalDetectIntentRequest;
1008
+ return proto.ondewo.nlu.OriginalDetectIntentRequest.deserializeBinaryFromReader(msg, reader);
1009
+ };
1010
+
1011
+
1012
+ /**
1013
+ * Deserializes binary data (in protobuf wire format) from the
1014
+ * given reader into the given message object.
1015
+ * @param {!proto.ondewo.nlu.OriginalDetectIntentRequest} msg The message object to deserialize into.
1016
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1017
+ * @return {!proto.ondewo.nlu.OriginalDetectIntentRequest}
1018
+ */
1019
+ proto.ondewo.nlu.OriginalDetectIntentRequest.deserializeBinaryFromReader = function(msg, reader) {
1020
+ while (reader.nextField()) {
1021
+ if (reader.isEndGroup()) {
1022
+ break;
1023
+ }
1024
+ var field = reader.getFieldNumber();
1025
+ switch (field) {
1026
+ case 1:
1027
+ var value = /** @type {string} */ (reader.readString());
1028
+ msg.setSource(value);
1029
+ break;
1030
+ case 3:
1031
+ var value = new google_protobuf_struct_pb.Struct;
1032
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
1033
+ msg.setPayload(value);
1034
+ break;
1035
+ default:
1036
+ reader.skipField();
1037
+ break;
1038
+ }
1039
+ }
1040
+ return msg;
1041
+ };
1042
+
1043
+
1044
+ /**
1045
+ * Serializes the message to binary data (in protobuf wire format).
1046
+ * @return {!Uint8Array}
1047
+ */
1048
+ proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.serializeBinary = function() {
1049
+ var writer = new jspb.BinaryWriter();
1050
+ proto.ondewo.nlu.OriginalDetectIntentRequest.serializeBinaryToWriter(this, writer);
1051
+ return writer.getResultBuffer();
1052
+ };
1053
+
1054
+
1055
+ /**
1056
+ * Serializes the given message to binary data (in protobuf wire
1057
+ * format), writing to the given BinaryWriter.
1058
+ * @param {!proto.ondewo.nlu.OriginalDetectIntentRequest} message
1059
+ * @param {!jspb.BinaryWriter} writer
1060
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1061
+ */
1062
+ proto.ondewo.nlu.OriginalDetectIntentRequest.serializeBinaryToWriter = function(message, writer) {
1063
+ var f = undefined;
1064
+ f = message.getSource();
1065
+ if (f.length > 0) {
1066
+ writer.writeString(
1067
+ 1,
1068
+ f
1069
+ );
1070
+ }
1071
+ f = message.getPayload();
1072
+ if (f != null) {
1073
+ writer.writeMessage(
1074
+ 3,
1075
+ f,
1076
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
1077
+ );
1078
+ }
1079
+ };
1080
+
1081
+
1082
+ /**
1083
+ * optional string source = 1;
1084
+ * @return {string}
1085
+ */
1086
+ proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.getSource = function() {
1087
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1088
+ };
1089
+
1090
+
1091
+ /**
1092
+ * @param {string} value
1093
+ * @return {!proto.ondewo.nlu.OriginalDetectIntentRequest} returns this
1094
+ */
1095
+ proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.setSource = function(value) {
1096
+ return jspb.Message.setProto3StringField(this, 1, value);
1097
+ };
1098
+
1099
+
1100
+ /**
1101
+ * optional google.protobuf.Struct payload = 3;
1102
+ * @return {?proto.google.protobuf.Struct}
1103
+ */
1104
+ proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.getPayload = function() {
1105
+ return /** @type{?proto.google.protobuf.Struct} */ (
1106
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 3));
1107
+ };
1108
+
1109
+
1110
+ /**
1111
+ * @param {?proto.google.protobuf.Struct|undefined} value
1112
+ * @return {!proto.ondewo.nlu.OriginalDetectIntentRequest} returns this
1113
+ */
1114
+ proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.setPayload = function(value) {
1115
+ return jspb.Message.setWrapperField(this, 3, value);
1116
+ };
1117
+
1118
+
1119
+ /**
1120
+ * Clears the message field making it undefined.
1121
+ * @return {!proto.ondewo.nlu.OriginalDetectIntentRequest} returns this
1122
+ */
1123
+ proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.clearPayload = function() {
1124
+ return this.setPayload(undefined);
1125
+ };
1126
+
1127
+
1128
+ /**
1129
+ * Returns whether this field is set.
1130
+ * @return {boolean}
1131
+ */
1132
+ proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.hasPayload = function() {
1133
+ return jspb.Message.getField(this, 3) != null;
1134
+ };
1135
+
1136
+
1137
+
1138
+
1139
+
1140
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1141
+ /**
1142
+ * Creates an object representation of this proto.
1143
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1144
+ * Optional fields that are not set will be set to undefined.
1145
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1146
+ * For the list of reserved names please see:
1147
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1148
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1149
+ * JSPB instance for transitional soy proto support:
1150
+ * http://goto/soy-param-migration
1151
+ * @return {!Object}
1152
+ */
1153
+ proto.ondewo.nlu.PingResponse.prototype.toObject = function(opt_includeInstance) {
1154
+ return proto.ondewo.nlu.PingResponse.toObject(opt_includeInstance, this);
1155
+ };
1156
+
1157
+
1158
+ /**
1159
+ * Static version of the {@see toObject} method.
1160
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1161
+ * the JSPB instance for transitional soy proto support:
1162
+ * http://goto/soy-param-migration
1163
+ * @param {!proto.ondewo.nlu.PingResponse} msg The msg instance to transform.
1164
+ * @return {!Object}
1165
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1166
+ */
1167
+ proto.ondewo.nlu.PingResponse.toObject = function(includeInstance, msg) {
1168
+ var f, obj = {
1169
+ isReachable: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
1170
+ };
1171
+
1172
+ if (includeInstance) {
1173
+ obj.$jspbMessageInstance = msg;
1174
+ }
1175
+ return obj;
1176
+ };
1177
+ }
1178
+
1179
+
1180
+ /**
1181
+ * Deserializes binary data (in protobuf wire format).
1182
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1183
+ * @return {!proto.ondewo.nlu.PingResponse}
1184
+ */
1185
+ proto.ondewo.nlu.PingResponse.deserializeBinary = function(bytes) {
1186
+ var reader = new jspb.BinaryReader(bytes);
1187
+ var msg = new proto.ondewo.nlu.PingResponse;
1188
+ return proto.ondewo.nlu.PingResponse.deserializeBinaryFromReader(msg, reader);
1189
+ };
1190
+
1191
+
1192
+ /**
1193
+ * Deserializes binary data (in protobuf wire format) from the
1194
+ * given reader into the given message object.
1195
+ * @param {!proto.ondewo.nlu.PingResponse} msg The message object to deserialize into.
1196
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1197
+ * @return {!proto.ondewo.nlu.PingResponse}
1198
+ */
1199
+ proto.ondewo.nlu.PingResponse.deserializeBinaryFromReader = function(msg, reader) {
1200
+ while (reader.nextField()) {
1201
+ if (reader.isEndGroup()) {
1202
+ break;
1203
+ }
1204
+ var field = reader.getFieldNumber();
1205
+ switch (field) {
1206
+ case 1:
1207
+ var value = /** @type {boolean} */ (reader.readBool());
1208
+ msg.setIsReachable(value);
1209
+ break;
1210
+ default:
1211
+ reader.skipField();
1212
+ break;
1213
+ }
1214
+ }
1215
+ return msg;
1216
+ };
1217
+
1218
+
1219
+ /**
1220
+ * Serializes the message to binary data (in protobuf wire format).
1221
+ * @return {!Uint8Array}
1222
+ */
1223
+ proto.ondewo.nlu.PingResponse.prototype.serializeBinary = function() {
1224
+ var writer = new jspb.BinaryWriter();
1225
+ proto.ondewo.nlu.PingResponse.serializeBinaryToWriter(this, writer);
1226
+ return writer.getResultBuffer();
1227
+ };
1228
+
1229
+
1230
+ /**
1231
+ * Serializes the given message to binary data (in protobuf wire
1232
+ * format), writing to the given BinaryWriter.
1233
+ * @param {!proto.ondewo.nlu.PingResponse} message
1234
+ * @param {!jspb.BinaryWriter} writer
1235
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1236
+ */
1237
+ proto.ondewo.nlu.PingResponse.serializeBinaryToWriter = function(message, writer) {
1238
+ var f = undefined;
1239
+ f = message.getIsReachable();
1240
+ if (f) {
1241
+ writer.writeBool(
1242
+ 1,
1243
+ f
1244
+ );
1245
+ }
1246
+ };
1247
+
1248
+
1249
+ /**
1250
+ * optional bool is_reachable = 1;
1251
+ * @return {boolean}
1252
+ */
1253
+ proto.ondewo.nlu.PingResponse.prototype.getIsReachable = function() {
1254
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
1255
+ };
1256
+
1257
+
1258
+ /**
1259
+ * @param {boolean} value
1260
+ * @return {!proto.ondewo.nlu.PingResponse} returns this
1261
+ */
1262
+ proto.ondewo.nlu.PingResponse.prototype.setIsReachable = function(value) {
1263
+ return jspb.Message.setProto3BooleanField(this, 1, value);
1264
+ };
1265
+
1266
+
1267
+ goog.object.extend(exports, proto.ondewo.nlu);