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