@ondewo/nlu-client-typescript 4.0.0 → 4.1.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 +450 -490
  2. package/api/ondewo/nlu/agent_grpc_web_pb.js +1113 -1244
  3. package/api/ondewo/nlu/agent_pb.d.ts +1939 -1751
  4. package/api/ondewo/nlu/agent_pb.js +9062 -10483
  5. package/api/ondewo/nlu/aiservices_grpc_web_pb.d.ts +98 -106
  6. package/api/ondewo/nlu/aiservices_grpc_web_pb.js +245 -280
  7. package/api/ondewo/nlu/aiservices_pb.d.ts +745 -674
  8. package/api/ondewo/nlu/aiservices_pb.js +3638 -4403
  9. package/api/ondewo/nlu/common_pb.d.ts +15 -17
  10. package/api/ondewo/nlu/common_pb.js +83 -93
  11. package/api/ondewo/nlu/context_grpc_web_pb.d.ts +76 -82
  12. package/api/ondewo/nlu/context_grpc_web_pb.js +191 -220
  13. package/api/ondewo/nlu/context_pb.d.ts +151 -151
  14. package/api/ondewo/nlu/context_pb.js +889 -1042
  15. package/api/ondewo/nlu/entity_type_grpc_web_pb.d.ts +142 -154
  16. package/api/ondewo/nlu/entity_type_grpc_web_pb.js +351 -398
  17. package/api/ondewo/nlu/entity_type_pb.d.ts +614 -571
  18. package/api/ondewo/nlu/entity_type_pb.js +2893 -3369
  19. package/api/ondewo/nlu/intent_grpc_web_pb.d.ts +310 -334
  20. package/api/ondewo/nlu/intent_grpc_web_pb.js +766 -851
  21. package/api/ondewo/nlu/intent_pb.d.ts +2151 -1993
  22. package/api/ondewo/nlu/intent_pb.js +9502 -10692
  23. package/api/ondewo/nlu/operation_metadata_pb.d.ts +86 -88
  24. package/api/ondewo/nlu/operation_metadata_pb.js +321 -412
  25. package/api/ondewo/nlu/operations_grpc_web_pb.d.ts +46 -50
  26. package/api/ondewo/nlu/operations_grpc_web_pb.js +140 -163
  27. package/api/ondewo/nlu/operations_pb.d.ts +189 -182
  28. package/api/ondewo/nlu/operations_pb.js +843 -1004
  29. package/api/ondewo/nlu/project_role_grpc_web_pb.d.ts +65 -70
  30. package/api/ondewo/nlu/project_role_grpc_web_pb.js +164 -190
  31. package/api/ondewo/nlu/project_role_pb.d.ts +165 -151
  32. package/api/ondewo/nlu/project_role_pb.js +796 -963
  33. package/api/ondewo/nlu/project_statistics_grpc_web_pb.d.ts +98 -106
  34. package/api/ondewo/nlu/project_statistics_grpc_web_pb.js +246 -281
  35. package/api/ondewo/nlu/project_statistics_pb.d.ts +67 -63
  36. package/api/ondewo/nlu/project_statistics_pb.js +354 -418
  37. package/api/ondewo/nlu/server_statistics_grpc_web_pb.d.ts +43 -46
  38. package/api/ondewo/nlu/server_statistics_grpc_web_pb.js +110 -130
  39. package/api/ondewo/nlu/server_statistics_pb.d.ts +15 -14
  40. package/api/ondewo/nlu/server_statistics_pb.js +81 -91
  41. package/api/ondewo/nlu/session_grpc_web_pb.d.ts +164 -178
  42. package/api/ondewo/nlu/session_grpc_web_pb.js +409 -462
  43. package/api/ondewo/nlu/session_pb.d.ts +1080 -1025
  44. package/api/ondewo/nlu/session_pb.js +5285 -6536
  45. package/api/ondewo/nlu/user_grpc_web_pb.d.ts +172 -190
  46. package/api/ondewo/nlu/user_grpc_web_pb.js +431 -487
  47. package/api/ondewo/nlu/user_pb.d.ts +345 -325
  48. package/api/ondewo/nlu/user_pb.js +1948 -2312
  49. package/api/ondewo/nlu/utility_grpc_web_pb.d.ts +98 -106
  50. package/api/ondewo/nlu/utility_grpc_web_pb.js +244 -279
  51. package/api/ondewo/nlu/utility_pb.d.ts +588 -535
  52. package/api/ondewo/nlu/utility_pb.js +2814 -3348
  53. package/api/ondewo/nlu/webhook_grpc_web_pb.d.ts +43 -46
  54. package/api/ondewo/nlu/webhook_grpc_web_pb.js +112 -132
  55. package/api/ondewo/nlu/webhook_pb.d.ts +123 -119
  56. package/api/ondewo/nlu/webhook_pb.js +599 -718
  57. package/api/ondewo/qa/qa_grpc_web_pb.d.ts +87 -94
  58. package/api/ondewo/qa/qa_grpc_web_pb.js +218 -250
  59. package/api/ondewo/qa/qa_pb.d.ts +235 -220
  60. package/api/ondewo/qa/qa_pb.js +1222 -1452
  61. package/package.json +1 -1
  62. package/public-api.d.ts +4 -34
@@ -13,7 +13,9 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
16
+ var global = function () {
17
+ return this || window || global || self || Function('return this')();
18
+ }.call(null);
17
19
 
18
20
  var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
19
21
  goog.object.extend(proto, google_api_annotations_pb);
@@ -40,16 +42,16 @@ goog.exportSymbol('proto.ondewo.nlu.WebhookResponse', null, global);
40
42
  * @extends {jspb.Message}
41
43
  * @constructor
42
44
  */
43
- proto.ondewo.nlu.PingRequest = function(opt_data) {
44
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
45
+ proto.ondewo.nlu.PingRequest = function (opt_data) {
46
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
45
47
  };
46
48
  goog.inherits(proto.ondewo.nlu.PingRequest, jspb.Message);
47
49
  if (goog.DEBUG && !COMPILED) {
48
- /**
49
- * @public
50
- * @override
51
- */
52
- proto.ondewo.nlu.PingRequest.displayName = 'proto.ondewo.nlu.PingRequest';
50
+ /**
51
+ * @public
52
+ * @override
53
+ */
54
+ proto.ondewo.nlu.PingRequest.displayName = 'proto.ondewo.nlu.PingRequest';
53
55
  }
54
56
  /**
55
57
  * Generated by JsPbCodeGenerator.
@@ -61,16 +63,16 @@ if (goog.DEBUG && !COMPILED) {
61
63
  * @extends {jspb.Message}
62
64
  * @constructor
63
65
  */
64
- proto.ondewo.nlu.WebhookRequest = function(opt_data) {
65
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
66
+ proto.ondewo.nlu.WebhookRequest = function (opt_data) {
67
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
66
68
  };
67
69
  goog.inherits(proto.ondewo.nlu.WebhookRequest, jspb.Message);
68
70
  if (goog.DEBUG && !COMPILED) {
69
- /**
70
- * @public
71
- * @override
72
- */
73
- proto.ondewo.nlu.WebhookRequest.displayName = 'proto.ondewo.nlu.WebhookRequest';
71
+ /**
72
+ * @public
73
+ * @override
74
+ */
75
+ proto.ondewo.nlu.WebhookRequest.displayName = 'proto.ondewo.nlu.WebhookRequest';
74
76
  }
75
77
  /**
76
78
  * Generated by JsPbCodeGenerator.
@@ -82,16 +84,16 @@ if (goog.DEBUG && !COMPILED) {
82
84
  * @extends {jspb.Message}
83
85
  * @constructor
84
86
  */
85
- proto.ondewo.nlu.WebhookResponse = function(opt_data) {
86
- jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.WebhookResponse.repeatedFields_, null);
87
+ proto.ondewo.nlu.WebhookResponse = function (opt_data) {
88
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.WebhookResponse.repeatedFields_, null);
87
89
  };
88
90
  goog.inherits(proto.ondewo.nlu.WebhookResponse, jspb.Message);
89
91
  if (goog.DEBUG && !COMPILED) {
90
- /**
91
- * @public
92
- * @override
93
- */
94
- proto.ondewo.nlu.WebhookResponse.displayName = 'proto.ondewo.nlu.WebhookResponse';
92
+ /**
93
+ * @public
94
+ * @override
95
+ */
96
+ proto.ondewo.nlu.WebhookResponse.displayName = 'proto.ondewo.nlu.WebhookResponse';
95
97
  }
96
98
  /**
97
99
  * Generated by JsPbCodeGenerator.
@@ -103,16 +105,16 @@ if (goog.DEBUG && !COMPILED) {
103
105
  * @extends {jspb.Message}
104
106
  * @constructor
105
107
  */
106
- proto.ondewo.nlu.OriginalDetectIntentRequest = function(opt_data) {
107
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
108
+ proto.ondewo.nlu.OriginalDetectIntentRequest = function (opt_data) {
109
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
108
110
  };
109
111
  goog.inherits(proto.ondewo.nlu.OriginalDetectIntentRequest, jspb.Message);
110
112
  if (goog.DEBUG && !COMPILED) {
111
- /**
112
- * @public
113
- * @override
114
- */
115
- proto.ondewo.nlu.OriginalDetectIntentRequest.displayName = 'proto.ondewo.nlu.OriginalDetectIntentRequest';
113
+ /**
114
+ * @public
115
+ * @override
116
+ */
117
+ proto.ondewo.nlu.OriginalDetectIntentRequest.displayName = 'proto.ondewo.nlu.OriginalDetectIntentRequest';
116
118
  }
117
119
  /**
118
120
  * Generated by JsPbCodeGenerator.
@@ -124,72 +126,68 @@ if (goog.DEBUG && !COMPILED) {
124
126
  * @extends {jspb.Message}
125
127
  * @constructor
126
128
  */
127
- proto.ondewo.nlu.PingResponse = function(opt_data) {
128
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
129
+ proto.ondewo.nlu.PingResponse = function (opt_data) {
130
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
129
131
  };
130
132
  goog.inherits(proto.ondewo.nlu.PingResponse, jspb.Message);
131
133
  if (goog.DEBUG && !COMPILED) {
132
- /**
133
- * @public
134
- * @override
135
- */
136
- proto.ondewo.nlu.PingResponse.displayName = 'proto.ondewo.nlu.PingResponse';
134
+ /**
135
+ * @public
136
+ * @override
137
+ */
138
+ proto.ondewo.nlu.PingResponse.displayName = 'proto.ondewo.nlu.PingResponse';
137
139
  }
138
140
 
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
- /**
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
- };
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
+ };
178
178
  }
179
179
 
180
-
181
180
  /**
182
181
  * Deserializes binary data (in protobuf wire format).
183
182
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
184
183
  * @return {!proto.ondewo.nlu.PingRequest}
185
184
  */
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);
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);
190
189
  };
191
190
 
192
-
193
191
  /**
194
192
  * Deserializes binary data (in protobuf wire format) from the
195
193
  * given reader into the given message object.
@@ -197,37 +195,35 @@ proto.ondewo.nlu.PingRequest.deserializeBinary = function(bytes) {
197
195
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
198
196
  * @return {!proto.ondewo.nlu.PingRequest}
199
197
  */
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;
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;
217
215
  };
218
216
 
219
-
220
217
  /**
221
218
  * Serializes the message to binary data (in protobuf wire format).
222
219
  * @return {!Uint8Array}
223
220
  */
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();
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();
228
225
  };
229
226
 
230
-
231
227
  /**
232
228
  * Serializes the given message to binary data (in protobuf wire
233
229
  * format), writing to the given BinaryWriter.
@@ -235,95 +231,86 @@ proto.ondewo.nlu.PingRequest.prototype.serializeBinary = function() {
235
231
  * @param {!jspb.BinaryWriter} writer
236
232
  * @suppress {unusedLocalVariables} f is only used for nested messages
237
233
  */
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
- }
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
+ }
247
240
  };
248
241
 
249
-
250
242
  /**
251
243
  * optional string session = 1;
252
244
  * @return {string}
253
245
  */
254
- proto.ondewo.nlu.PingRequest.prototype.getSession = function() {
255
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
246
+ proto.ondewo.nlu.PingRequest.prototype.getSession = function () {
247
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
256
248
  };
257
249
 
258
-
259
250
  /**
260
251
  * @param {string} value
261
252
  * @return {!proto.ondewo.nlu.PingRequest} returns this
262
253
  */
263
- proto.ondewo.nlu.PingRequest.prototype.setSession = function(value) {
264
- return jspb.Message.setProto3StringField(this, 1, value);
254
+ proto.ondewo.nlu.PingRequest.prototype.setSession = function (value) {
255
+ return jspb.Message.setProto3StringField(this, 1, value);
265
256
  };
266
257
 
267
-
268
-
269
-
270
-
271
258
  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
- };
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
+ };
312
301
  }
313
302
 
314
-
315
303
  /**
316
304
  * Deserializes binary data (in protobuf wire format).
317
305
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
318
306
  * @return {!proto.ondewo.nlu.WebhookRequest}
319
307
  */
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);
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);
324
312
  };
325
313
 
326
-
327
314
  /**
328
315
  * Deserializes binary data (in protobuf wire format) from the
329
316
  * given reader into the given message object.
@@ -331,56 +318,54 @@ proto.ondewo.nlu.WebhookRequest.deserializeBinary = function(bytes) {
331
318
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
332
319
  * @return {!proto.ondewo.nlu.WebhookRequest}
333
320
  */
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;
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;
370
357
  };
371
358
 
372
-
373
359
  /**
374
360
  * Serializes the message to binary data (in protobuf wire format).
375
361
  * @return {!Uint8Array}
376
362
  */
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();
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();
381
367
  };
382
368
 
383
-
384
369
  /**
385
370
  * Serializes the given message to binary data (in protobuf wire
386
371
  * format), writing to the given BinaryWriter.
@@ -388,265 +373,235 @@ proto.ondewo.nlu.WebhookRequest.prototype.serializeBinary = function() {
388
373
  * @param {!jspb.BinaryWriter} writer
389
374
  * @suppress {unusedLocalVariables} f is only used for nested messages
390
375
  */
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
- }
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
+ }
431
398
  };
432
399
 
433
-
434
400
  /**
435
401
  * optional string session = 4;
436
402
  * @return {string}
437
403
  */
438
- proto.ondewo.nlu.WebhookRequest.prototype.getSession = function() {
439
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
404
+ proto.ondewo.nlu.WebhookRequest.prototype.getSession = function () {
405
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ''));
440
406
  };
441
407
 
442
-
443
408
  /**
444
409
  * @param {string} value
445
410
  * @return {!proto.ondewo.nlu.WebhookRequest} returns this
446
411
  */
447
- proto.ondewo.nlu.WebhookRequest.prototype.setSession = function(value) {
448
- return jspb.Message.setProto3StringField(this, 4, value);
412
+ proto.ondewo.nlu.WebhookRequest.prototype.setSession = function (value) {
413
+ return jspb.Message.setProto3StringField(this, 4, value);
449
414
  };
450
415
 
451
-
452
416
  /**
453
417
  * optional string response_id = 1;
454
418
  * @return {string}
455
419
  */
456
- proto.ondewo.nlu.WebhookRequest.prototype.getResponseId = function() {
457
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
420
+ proto.ondewo.nlu.WebhookRequest.prototype.getResponseId = function () {
421
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
458
422
  };
459
423
 
460
-
461
424
  /**
462
425
  * @param {string} value
463
426
  * @return {!proto.ondewo.nlu.WebhookRequest} returns this
464
427
  */
465
- proto.ondewo.nlu.WebhookRequest.prototype.setResponseId = function(value) {
466
- return jspb.Message.setProto3StringField(this, 1, value);
428
+ proto.ondewo.nlu.WebhookRequest.prototype.setResponseId = function (value) {
429
+ return jspb.Message.setProto3StringField(this, 1, value);
467
430
  };
468
431
 
469
-
470
432
  /**
471
433
  * optional QueryResult query_result = 2;
472
434
  * @return {?proto.ondewo.nlu.QueryResult}
473
435
  */
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));
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
+ );
477
440
  };
478
441
 
479
-
480
442
  /**
481
443
  * @param {?proto.ondewo.nlu.QueryResult|undefined} value
482
444
  * @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);
445
+ */
446
+ proto.ondewo.nlu.WebhookRequest.prototype.setQueryResult = function (value) {
447
+ return jspb.Message.setWrapperField(this, 2, value);
486
448
  };
487
449
 
488
-
489
450
  /**
490
451
  * Clears the message field making it undefined.
491
452
  * @return {!proto.ondewo.nlu.WebhookRequest} returns this
492
453
  */
493
- proto.ondewo.nlu.WebhookRequest.prototype.clearQueryResult = function() {
494
- return this.setQueryResult(undefined);
454
+ proto.ondewo.nlu.WebhookRequest.prototype.clearQueryResult = function () {
455
+ return this.setQueryResult(undefined);
495
456
  };
496
457
 
497
-
498
458
  /**
499
459
  * Returns whether this field is set.
500
460
  * @return {boolean}
501
461
  */
502
- proto.ondewo.nlu.WebhookRequest.prototype.hasQueryResult = function() {
503
- return jspb.Message.getField(this, 2) != null;
462
+ proto.ondewo.nlu.WebhookRequest.prototype.hasQueryResult = function () {
463
+ return jspb.Message.getField(this, 2) != null;
504
464
  };
505
465
 
506
-
507
466
  /**
508
467
  * optional OriginalDetectIntentRequest original_detect_intent_request = 3;
509
468
  * @return {?proto.ondewo.nlu.OriginalDetectIntentRequest}
510
469
  */
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));
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
+ );
514
474
  };
515
475
 
516
-
517
476
  /**
518
477
  * @param {?proto.ondewo.nlu.OriginalDetectIntentRequest|undefined} value
519
478
  * @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);
479
+ */
480
+ proto.ondewo.nlu.WebhookRequest.prototype.setOriginalDetectIntentRequest = function (value) {
481
+ return jspb.Message.setWrapperField(this, 3, value);
523
482
  };
524
483
 
525
-
526
484
  /**
527
485
  * Clears the message field making it undefined.
528
486
  * @return {!proto.ondewo.nlu.WebhookRequest} returns this
529
487
  */
530
- proto.ondewo.nlu.WebhookRequest.prototype.clearOriginalDetectIntentRequest = function() {
531
- return this.setOriginalDetectIntentRequest(undefined);
488
+ proto.ondewo.nlu.WebhookRequest.prototype.clearOriginalDetectIntentRequest = function () {
489
+ return this.setOriginalDetectIntentRequest(undefined);
532
490
  };
533
491
 
534
-
535
492
  /**
536
493
  * Returns whether this field is set.
537
494
  * @return {boolean}
538
495
  */
539
- proto.ondewo.nlu.WebhookRequest.prototype.hasOriginalDetectIntentRequest = function() {
540
- return jspb.Message.getField(this, 3) != null;
496
+ proto.ondewo.nlu.WebhookRequest.prototype.hasOriginalDetectIntentRequest = function () {
497
+ return jspb.Message.getField(this, 3) != null;
541
498
  };
542
499
 
543
-
544
500
  /**
545
501
  * optional google.protobuf.Struct headers = 5;
546
502
  * @return {?proto.google.protobuf.Struct}
547
503
  */
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));
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
+ );
551
508
  };
552
509
 
553
-
554
510
  /**
555
511
  * @param {?proto.google.protobuf.Struct|undefined} value
556
512
  * @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);
513
+ */
514
+ proto.ondewo.nlu.WebhookRequest.prototype.setHeaders = function (value) {
515
+ return jspb.Message.setWrapperField(this, 5, value);
560
516
  };
561
517
 
562
-
563
518
  /**
564
519
  * Clears the message field making it undefined.
565
520
  * @return {!proto.ondewo.nlu.WebhookRequest} returns this
566
521
  */
567
- proto.ondewo.nlu.WebhookRequest.prototype.clearHeaders = function() {
568
- return this.setHeaders(undefined);
522
+ proto.ondewo.nlu.WebhookRequest.prototype.clearHeaders = function () {
523
+ return this.setHeaders(undefined);
569
524
  };
570
525
 
571
-
572
526
  /**
573
527
  * Returns whether this field is set.
574
528
  * @return {boolean}
575
529
  */
576
- proto.ondewo.nlu.WebhookRequest.prototype.hasHeaders = function() {
577
- return jspb.Message.getField(this, 5) != null;
530
+ proto.ondewo.nlu.WebhookRequest.prototype.hasHeaders = function () {
531
+ return jspb.Message.getField(this, 5) != null;
578
532
  };
579
533
 
580
-
581
-
582
534
  /**
583
535
  * List of repeated fields within this message type.
584
536
  * @private {!Array<number>}
585
537
  * @const
586
538
  */
587
- proto.ondewo.nlu.WebhookResponse.repeatedFields_ = [2,5];
588
-
589
-
539
+ proto.ondewo.nlu.WebhookResponse.repeatedFields_ = [2, 5];
590
540
 
591
541
  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
- };
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
+ };
635
592
  }
636
593
 
637
-
638
594
  /**
639
595
  * Deserializes binary data (in protobuf wire format).
640
596
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
641
597
  * @return {!proto.ondewo.nlu.WebhookResponse}
642
598
  */
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);
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);
647
603
  };
648
604
 
649
-
650
605
  /**
651
606
  * Deserializes binary data (in protobuf wire format) from the
652
607
  * given reader into the given message object.
@@ -654,61 +609,59 @@ proto.ondewo.nlu.WebhookResponse.deserializeBinary = function(bytes) {
654
609
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
655
610
  * @return {!proto.ondewo.nlu.WebhookResponse}
656
611
  */
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;
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;
698
653
  };
699
654
 
700
-
701
655
  /**
702
656
  * Serializes the message to binary data (in protobuf wire format).
703
657
  * @return {!Uint8Array}
704
658
  */
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();
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();
709
663
  };
710
664
 
711
-
712
665
  /**
713
666
  * Serializes the given message to binary data (in protobuf wire
714
667
  * format), writing to the given BinaryWriter.
@@ -716,299 +669,255 @@ proto.ondewo.nlu.WebhookResponse.prototype.serializeBinary = function() {
716
669
  * @param {!jspb.BinaryWriter} writer
717
670
  * @suppress {unusedLocalVariables} f is only used for nested messages
718
671
  */
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
- }
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
+ }
767
698
  };
768
699
 
769
-
770
700
  /**
771
701
  * optional string fulfillment_text = 1;
772
702
  * @return {string}
773
703
  */
774
- proto.ondewo.nlu.WebhookResponse.prototype.getFulfillmentText = function() {
775
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
704
+ proto.ondewo.nlu.WebhookResponse.prototype.getFulfillmentText = function () {
705
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
776
706
  };
777
707
 
778
-
779
708
  /**
780
709
  * @param {string} value
781
710
  * @return {!proto.ondewo.nlu.WebhookResponse} returns this
782
711
  */
783
- proto.ondewo.nlu.WebhookResponse.prototype.setFulfillmentText = function(value) {
784
- return jspb.Message.setProto3StringField(this, 1, value);
712
+ proto.ondewo.nlu.WebhookResponse.prototype.setFulfillmentText = function (value) {
713
+ return jspb.Message.setProto3StringField(this, 1, value);
785
714
  };
786
715
 
787
-
788
716
  /**
789
717
  * repeated Intent.Message fulfillment_messages = 2;
790
718
  * @return {!Array<!proto.ondewo.nlu.Intent.Message>}
791
719
  */
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));
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
+ );
795
724
  };
796
725
 
797
-
798
726
  /**
799
727
  * @param {!Array<!proto.ondewo.nlu.Intent.Message>} value
800
728
  * @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);
729
+ */
730
+ proto.ondewo.nlu.WebhookResponse.prototype.setFulfillmentMessagesList = function (value) {
731
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
804
732
  };
805
733
 
806
-
807
734
  /**
808
735
  * @param {!proto.ondewo.nlu.Intent.Message=} opt_value
809
736
  * @param {number=} opt_index
810
737
  * @return {!proto.ondewo.nlu.Intent.Message}
811
738
  */
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);
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);
814
741
  };
815
742
 
816
-
817
743
  /**
818
744
  * Clears the list making it empty but non-null.
819
745
  * @return {!proto.ondewo.nlu.WebhookResponse} returns this
820
746
  */
821
- proto.ondewo.nlu.WebhookResponse.prototype.clearFulfillmentMessagesList = function() {
822
- return this.setFulfillmentMessagesList([]);
747
+ proto.ondewo.nlu.WebhookResponse.prototype.clearFulfillmentMessagesList = function () {
748
+ return this.setFulfillmentMessagesList([]);
823
749
  };
824
750
 
825
-
826
751
  /**
827
752
  * optional string source = 3;
828
753
  * @return {string}
829
754
  */
830
- proto.ondewo.nlu.WebhookResponse.prototype.getSource = function() {
831
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
755
+ proto.ondewo.nlu.WebhookResponse.prototype.getSource = function () {
756
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ''));
832
757
  };
833
758
 
834
-
835
759
  /**
836
760
  * @param {string} value
837
761
  * @return {!proto.ondewo.nlu.WebhookResponse} returns this
838
762
  */
839
- proto.ondewo.nlu.WebhookResponse.prototype.setSource = function(value) {
840
- return jspb.Message.setProto3StringField(this, 3, value);
763
+ proto.ondewo.nlu.WebhookResponse.prototype.setSource = function (value) {
764
+ return jspb.Message.setProto3StringField(this, 3, value);
841
765
  };
842
766
 
843
-
844
767
  /**
845
768
  * optional google.protobuf.Struct payload = 4;
846
769
  * @return {?proto.google.protobuf.Struct}
847
770
  */
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));
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
+ );
851
775
  };
852
776
 
853
-
854
777
  /**
855
778
  * @param {?proto.google.protobuf.Struct|undefined} value
856
779
  * @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);
780
+ */
781
+ proto.ondewo.nlu.WebhookResponse.prototype.setPayload = function (value) {
782
+ return jspb.Message.setWrapperField(this, 4, value);
860
783
  };
861
784
 
862
-
863
785
  /**
864
786
  * Clears the message field making it undefined.
865
787
  * @return {!proto.ondewo.nlu.WebhookResponse} returns this
866
788
  */
867
- proto.ondewo.nlu.WebhookResponse.prototype.clearPayload = function() {
868
- return this.setPayload(undefined);
789
+ proto.ondewo.nlu.WebhookResponse.prototype.clearPayload = function () {
790
+ return this.setPayload(undefined);
869
791
  };
870
792
 
871
-
872
793
  /**
873
794
  * Returns whether this field is set.
874
795
  * @return {boolean}
875
796
  */
876
- proto.ondewo.nlu.WebhookResponse.prototype.hasPayload = function() {
877
- return jspb.Message.getField(this, 4) != null;
797
+ proto.ondewo.nlu.WebhookResponse.prototype.hasPayload = function () {
798
+ return jspb.Message.getField(this, 4) != null;
878
799
  };
879
800
 
880
-
881
801
  /**
882
802
  * repeated Context output_contexts = 5;
883
803
  * @return {!Array<!proto.ondewo.nlu.Context>}
884
804
  */
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));
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
+ );
888
809
  };
889
810
 
890
-
891
811
  /**
892
812
  * @param {!Array<!proto.ondewo.nlu.Context>} value
893
813
  * @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);
814
+ */
815
+ proto.ondewo.nlu.WebhookResponse.prototype.setOutputContextsList = function (value) {
816
+ return jspb.Message.setRepeatedWrapperField(this, 5, value);
897
817
  };
898
818
 
899
-
900
819
  /**
901
820
  * @param {!proto.ondewo.nlu.Context=} opt_value
902
821
  * @param {number=} opt_index
903
822
  * @return {!proto.ondewo.nlu.Context}
904
823
  */
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);
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);
907
826
  };
908
827
 
909
-
910
828
  /**
911
829
  * Clears the list making it empty but non-null.
912
830
  * @return {!proto.ondewo.nlu.WebhookResponse} returns this
913
831
  */
914
- proto.ondewo.nlu.WebhookResponse.prototype.clearOutputContextsList = function() {
915
- return this.setOutputContextsList([]);
832
+ proto.ondewo.nlu.WebhookResponse.prototype.clearOutputContextsList = function () {
833
+ return this.setOutputContextsList([]);
916
834
  };
917
835
 
918
-
919
836
  /**
920
837
  * optional EventInput followup_event_input = 6;
921
838
  * @return {?proto.ondewo.nlu.EventInput}
922
839
  */
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));
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
+ );
926
844
  };
927
845
 
928
-
929
846
  /**
930
847
  * @param {?proto.ondewo.nlu.EventInput|undefined} value
931
848
  * @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);
849
+ */
850
+ proto.ondewo.nlu.WebhookResponse.prototype.setFollowupEventInput = function (value) {
851
+ return jspb.Message.setWrapperField(this, 6, value);
935
852
  };
936
853
 
937
-
938
854
  /**
939
855
  * Clears the message field making it undefined.
940
856
  * @return {!proto.ondewo.nlu.WebhookResponse} returns this
941
857
  */
942
- proto.ondewo.nlu.WebhookResponse.prototype.clearFollowupEventInput = function() {
943
- return this.setFollowupEventInput(undefined);
858
+ proto.ondewo.nlu.WebhookResponse.prototype.clearFollowupEventInput = function () {
859
+ return this.setFollowupEventInput(undefined);
944
860
  };
945
861
 
946
-
947
862
  /**
948
863
  * Returns whether this field is set.
949
864
  * @return {boolean}
950
865
  */
951
- proto.ondewo.nlu.WebhookResponse.prototype.hasFollowupEventInput = function() {
952
- return jspb.Message.getField(this, 6) != null;
866
+ proto.ondewo.nlu.WebhookResponse.prototype.hasFollowupEventInput = function () {
867
+ return jspb.Message.getField(this, 6) != null;
953
868
  };
954
869
 
955
-
956
-
957
-
958
-
959
870
  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
- };
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
+ };
997
908
  }
998
909
 
999
-
1000
910
  /**
1001
911
  * Deserializes binary data (in protobuf wire format).
1002
912
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1003
913
  * @return {!proto.ondewo.nlu.OriginalDetectIntentRequest}
1004
914
  */
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);
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);
1009
919
  };
1010
920
 
1011
-
1012
921
  /**
1013
922
  * Deserializes binary data (in protobuf wire format) from the
1014
923
  * given reader into the given message object.
@@ -1016,42 +925,40 @@ proto.ondewo.nlu.OriginalDetectIntentRequest.deserializeBinary = function(bytes)
1016
925
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1017
926
  * @return {!proto.ondewo.nlu.OriginalDetectIntentRequest}
1018
927
  */
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;
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;
1041
950
  };
1042
951
 
1043
-
1044
952
  /**
1045
953
  * Serializes the message to binary data (in protobuf wire format).
1046
954
  * @return {!Uint8Array}
1047
955
  */
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();
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();
1052
960
  };
1053
961
 
1054
-
1055
962
  /**
1056
963
  * Serializes the given message to binary data (in protobuf wire
1057
964
  * format), writing to the given BinaryWriter.
@@ -1059,136 +966,118 @@ proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.serializeBinary = functio
1059
966
  * @param {!jspb.BinaryWriter} writer
1060
967
  * @suppress {unusedLocalVariables} f is only used for nested messages
1061
968
  */
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
- }
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
+ }
1079
979
  };
1080
980
 
1081
-
1082
981
  /**
1083
982
  * optional string source = 1;
1084
983
  * @return {string}
1085
984
  */
1086
- proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.getSource = function() {
1087
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
985
+ proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.getSource = function () {
986
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
1088
987
  };
1089
988
 
1090
-
1091
989
  /**
1092
990
  * @param {string} value
1093
991
  * @return {!proto.ondewo.nlu.OriginalDetectIntentRequest} returns this
1094
992
  */
1095
- proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.setSource = function(value) {
1096
- return jspb.Message.setProto3StringField(this, 1, value);
993
+ proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.setSource = function (value) {
994
+ return jspb.Message.setProto3StringField(this, 1, value);
1097
995
  };
1098
996
 
1099
-
1100
997
  /**
1101
998
  * optional google.protobuf.Struct payload = 3;
1102
999
  * @return {?proto.google.protobuf.Struct}
1103
1000
  */
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));
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
+ );
1107
1005
  };
1108
1006
 
1109
-
1110
1007
  /**
1111
1008
  * @param {?proto.google.protobuf.Struct|undefined} value
1112
1009
  * @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);
1010
+ */
1011
+ proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.setPayload = function (value) {
1012
+ return jspb.Message.setWrapperField(this, 3, value);
1116
1013
  };
1117
1014
 
1118
-
1119
1015
  /**
1120
1016
  * Clears the message field making it undefined.
1121
1017
  * @return {!proto.ondewo.nlu.OriginalDetectIntentRequest} returns this
1122
1018
  */
1123
- proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.clearPayload = function() {
1124
- return this.setPayload(undefined);
1019
+ proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.clearPayload = function () {
1020
+ return this.setPayload(undefined);
1125
1021
  };
1126
1022
 
1127
-
1128
1023
  /**
1129
1024
  * Returns whether this field is set.
1130
1025
  * @return {boolean}
1131
1026
  */
1132
- proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.hasPayload = function() {
1133
- return jspb.Message.getField(this, 3) != null;
1027
+ proto.ondewo.nlu.OriginalDetectIntentRequest.prototype.hasPayload = function () {
1028
+ return jspb.Message.getField(this, 3) != null;
1134
1029
  };
1135
1030
 
1136
-
1137
-
1138
-
1139
-
1140
1031
  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
- };
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
+ };
1177
1068
  }
1178
1069
 
1179
-
1180
1070
  /**
1181
1071
  * Deserializes binary data (in protobuf wire format).
1182
1072
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1183
1073
  * @return {!proto.ondewo.nlu.PingResponse}
1184
1074
  */
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);
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);
1189
1079
  };
1190
1080
 
1191
-
1192
1081
  /**
1193
1082
  * Deserializes binary data (in protobuf wire format) from the
1194
1083
  * given reader into the given message object.
@@ -1196,37 +1085,35 @@ proto.ondewo.nlu.PingResponse.deserializeBinary = function(bytes) {
1196
1085
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1197
1086
  * @return {!proto.ondewo.nlu.PingResponse}
1198
1087
  */
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;
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;
1216
1105
  };
1217
1106
 
1218
-
1219
1107
  /**
1220
1108
  * Serializes the message to binary data (in protobuf wire format).
1221
1109
  * @return {!Uint8Array}
1222
1110
  */
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();
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();
1227
1115
  };
1228
1116
 
1229
-
1230
1117
  /**
1231
1118
  * Serializes the given message to binary data (in protobuf wire
1232
1119
  * format), writing to the given BinaryWriter.
@@ -1234,34 +1121,28 @@ proto.ondewo.nlu.PingResponse.prototype.serializeBinary = function() {
1234
1121
  * @param {!jspb.BinaryWriter} writer
1235
1122
  * @suppress {unusedLocalVariables} f is only used for nested messages
1236
1123
  */
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
- }
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
+ }
1246
1130
  };
1247
1131
 
1248
-
1249
1132
  /**
1250
1133
  * optional bool is_reachable = 1;
1251
1134
  * @return {boolean}
1252
1135
  */
1253
- proto.ondewo.nlu.PingResponse.prototype.getIsReachable = function() {
1254
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
1136
+ proto.ondewo.nlu.PingResponse.prototype.getIsReachable = function () {
1137
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
1255
1138
  };
1256
1139
 
1257
-
1258
1140
  /**
1259
1141
  * @param {boolean} value
1260
1142
  * @return {!proto.ondewo.nlu.PingResponse} returns this
1261
1143
  */
1262
- proto.ondewo.nlu.PingResponse.prototype.setIsReachable = function(value) {
1263
- return jspb.Message.setProto3BooleanField(this, 1, value);
1144
+ proto.ondewo.nlu.PingResponse.prototype.setIsReachable = function (value) {
1145
+ return jspb.Message.setProto3BooleanField(this, 1, value);
1264
1146
  };
1265
1147
 
1266
-
1267
1148
  goog.object.extend(exports, proto.ondewo.nlu);