@ondewo/nlu-client-typescript 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/LICENSE +191 -0
  2. package/README.md +27 -0
  3. package/api/google/api/annotations_pb.d.ts +6 -0
  4. package/api/google/api/annotations_pb.js +48 -0
  5. package/api/google/protobuf/any_pb.d.ts +28 -0
  6. package/api/google/protobuf/any_pb.js +275 -0
  7. package/api/google/protobuf/empty_pb.d.ts +18 -0
  8. package/api/google/protobuf/empty_pb.js +141 -0
  9. package/api/google/protobuf/field_mask_pb.d.ts +24 -0
  10. package/api/google/protobuf/field_mask_pb.js +196 -0
  11. package/api/google/protobuf/struct_pb.d.ts +99 -0
  12. package/api/google/protobuf/struct_pb.js +948 -0
  13. package/api/google/protobuf/timestamp_pb.d.ts +26 -0
  14. package/api/google/protobuf/timestamp_pb.js +236 -0
  15. package/api/google/rpc/status_pb.d.ts +33 -0
  16. package/api/google/rpc/status_pb.js +262 -0
  17. package/api/google/type/latlng_pb.d.ts +26 -0
  18. package/api/google/type/latlng_pb.js +200 -0
  19. package/api/ondewo/nlu/agent_grpc_web_pb.d.ts +489 -0
  20. package/api/ondewo/nlu/agent_grpc_web_pb.js +2476 -0
  21. package/api/ondewo/nlu/agent_pb.d.ts +2079 -0
  22. package/api/ondewo/nlu/agent_pb.js +16648 -0
  23. package/api/ondewo/nlu/aiservices_grpc_web_pb.d.ts +115 -0
  24. package/api/ondewo/nlu/aiservices_grpc_web_pb.js +569 -0
  25. package/api/ondewo/nlu/aiservices_pb.d.ts +933 -0
  26. package/api/ondewo/nlu/aiservices_pb.js +7601 -0
  27. package/api/ondewo/nlu/common_pb.d.ts +26 -0
  28. package/api/ondewo/nlu/common_pb.js +179 -0
  29. package/api/ondewo/nlu/context_grpc_web_pb.d.ts +92 -0
  30. package/api/ondewo/nlu/context_grpc_web_pb.js +447 -0
  31. package/api/ondewo/nlu/context_pb.d.ts +218 -0
  32. package/api/ondewo/nlu/context_pb.js +1788 -0
  33. package/api/ondewo/nlu/entity_type_grpc_web_pb.d.ts +165 -0
  34. package/api/ondewo/nlu/entity_type_grpc_web_pb.js +817 -0
  35. package/api/ondewo/nlu/entity_type_pb.d.ts +756 -0
  36. package/api/ondewo/nlu/entity_type_pb.js +5970 -0
  37. package/api/ondewo/nlu/intent_grpc_web_pb.d.ts +345 -0
  38. package/api/ondewo/nlu/intent_grpc_web_pb.js +1738 -0
  39. package/api/ondewo/nlu/intent_pb.d.ts +2344 -0
  40. package/api/ondewo/nlu/intent_pb.js +18784 -0
  41. package/api/ondewo/nlu/operation_metadata_pb.d.ts +112 -0
  42. package/api/ondewo/nlu/operation_metadata_pb.js +740 -0
  43. package/api/ondewo/nlu/operations_grpc_web_pb.d.ts +68 -0
  44. package/api/ondewo/nlu/operations_grpc_web_pb.js +331 -0
  45. package/api/ondewo/nlu/operations_pb.d.ts +236 -0
  46. package/api/ondewo/nlu/operations_pb.js +1826 -0
  47. package/api/ondewo/nlu/project_role_grpc_web_pb.d.ts +80 -0
  48. package/api/ondewo/nlu/project_role_grpc_web_pb.js +386 -0
  49. package/api/ondewo/nlu/project_role_pb.d.ts +220 -0
  50. package/api/ondewo/nlu/project_role_pb.js +1713 -0
  51. package/api/ondewo/nlu/project_statistics_grpc_web_pb.d.ts +116 -0
  52. package/api/ondewo/nlu/project_statistics_grpc_web_pb.js +571 -0
  53. package/api/ondewo/nlu/project_statistics_pb.d.ts +92 -0
  54. package/api/ondewo/nlu/project_statistics_pb.js +724 -0
  55. package/api/ondewo/nlu/server_statistics_grpc_web_pb.d.ts +57 -0
  56. package/api/ondewo/nlu/server_statistics_grpc_web_pb.js +264 -0
  57. package/api/ondewo/nlu/server_statistics_pb.d.ts +25 -0
  58. package/api/ondewo/nlu/server_statistics_pb.js +176 -0
  59. package/api/ondewo/nlu/session_grpc_web_pb.d.ts +176 -0
  60. package/api/ondewo/nlu/session_grpc_web_pb.js +884 -0
  61. package/api/ondewo/nlu/session_pb.d.ts +1192 -0
  62. package/api/ondewo/nlu/session_pb.js +9762 -0
  63. package/api/ondewo/nlu/user_grpc_web_pb.d.ts +200 -0
  64. package/api/ondewo/nlu/user_grpc_web_pb.js +998 -0
  65. package/api/ondewo/nlu/user_pb.d.ts +489 -0
  66. package/api/ondewo/nlu/user_pb.js +4057 -0
  67. package/api/ondewo/nlu/utility_grpc_web_pb.d.ts +115 -0
  68. package/api/ondewo/nlu/utility_grpc_web_pb.js +567 -0
  69. package/api/ondewo/nlu/utility_pb.d.ts +708 -0
  70. package/api/ondewo/nlu/utility_pb.js +5914 -0
  71. package/api/ondewo/nlu/webhook_grpc_web_pb.d.ts +55 -0
  72. package/api/ondewo/nlu/webhook_grpc_web_pb.js +268 -0
  73. package/api/ondewo/nlu/webhook_pb.d.ts +155 -0
  74. package/api/ondewo/nlu/webhook_pb.js +1267 -0
  75. package/api/ondewo/qa/qa_grpc_web_pb.d.ts +104 -0
  76. package/api/ondewo/qa/qa_grpc_web_pb.js +508 -0
  77. package/api/ondewo/qa/qa_pb.d.ts +304 -0
  78. package/api/ondewo/qa/qa_pb.js +2553 -0
  79. package/package.json +18 -0
  80. package/public-api.d.ts +38 -0
@@ -0,0 +1,1788 @@
1
+ // source: ondewo/nlu/context.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
17
+
18
+ var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
19
+ goog.object.extend(proto, google_api_annotations_pb);
20
+ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
21
+ goog.object.extend(proto, google_protobuf_empty_pb);
22
+ var google_protobuf_field_mask_pb = require('google-protobuf/google/protobuf/field_mask_pb.js');
23
+ goog.object.extend(proto, google_protobuf_field_mask_pb);
24
+ goog.exportSymbol('proto.ondewo.nlu.Context', null, global);
25
+ goog.exportSymbol('proto.ondewo.nlu.Context.Parameter', null, global);
26
+ goog.exportSymbol('proto.ondewo.nlu.CreateContextRequest', null, global);
27
+ goog.exportSymbol('proto.ondewo.nlu.DeleteAllContextsRequest', null, global);
28
+ goog.exportSymbol('proto.ondewo.nlu.DeleteContextRequest', null, global);
29
+ goog.exportSymbol('proto.ondewo.nlu.GetContextRequest', null, global);
30
+ goog.exportSymbol('proto.ondewo.nlu.ListContextsRequest', null, global);
31
+ goog.exportSymbol('proto.ondewo.nlu.ListContextsResponse', null, global);
32
+ goog.exportSymbol('proto.ondewo.nlu.UpdateContextRequest', null, global);
33
+ /**
34
+ * Generated by JsPbCodeGenerator.
35
+ * @param {Array=} opt_data Optional initial data array, typically from a
36
+ * server response, or constructed directly in Javascript. The array is used
37
+ * in place and becomes part of the constructed object. It is not cloned.
38
+ * If no data is provided, the constructed object will be empty, but still
39
+ * valid.
40
+ * @extends {jspb.Message}
41
+ * @constructor
42
+ */
43
+ proto.ondewo.nlu.Context = function(opt_data) {
44
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
45
+ };
46
+ goog.inherits(proto.ondewo.nlu.Context, jspb.Message);
47
+ if (goog.DEBUG && !COMPILED) {
48
+ /**
49
+ * @public
50
+ * @override
51
+ */
52
+ proto.ondewo.nlu.Context.displayName = 'proto.ondewo.nlu.Context';
53
+ }
54
+ /**
55
+ * Generated by JsPbCodeGenerator.
56
+ * @param {Array=} opt_data Optional initial data array, typically from a
57
+ * server response, or constructed directly in Javascript. The array is used
58
+ * in place and becomes part of the constructed object. It is not cloned.
59
+ * If no data is provided, the constructed object will be empty, but still
60
+ * valid.
61
+ * @extends {jspb.Message}
62
+ * @constructor
63
+ */
64
+ proto.ondewo.nlu.Context.Parameter = function(opt_data) {
65
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
66
+ };
67
+ goog.inherits(proto.ondewo.nlu.Context.Parameter, jspb.Message);
68
+ if (goog.DEBUG && !COMPILED) {
69
+ /**
70
+ * @public
71
+ * @override
72
+ */
73
+ proto.ondewo.nlu.Context.Parameter.displayName = 'proto.ondewo.nlu.Context.Parameter';
74
+ }
75
+ /**
76
+ * Generated by JsPbCodeGenerator.
77
+ * @param {Array=} opt_data Optional initial data array, typically from a
78
+ * server response, or constructed directly in Javascript. The array is used
79
+ * in place and becomes part of the constructed object. It is not cloned.
80
+ * If no data is provided, the constructed object will be empty, but still
81
+ * valid.
82
+ * @extends {jspb.Message}
83
+ * @constructor
84
+ */
85
+ proto.ondewo.nlu.ListContextsRequest = function(opt_data) {
86
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
87
+ };
88
+ goog.inherits(proto.ondewo.nlu.ListContextsRequest, jspb.Message);
89
+ if (goog.DEBUG && !COMPILED) {
90
+ /**
91
+ * @public
92
+ * @override
93
+ */
94
+ proto.ondewo.nlu.ListContextsRequest.displayName = 'proto.ondewo.nlu.ListContextsRequest';
95
+ }
96
+ /**
97
+ * Generated by JsPbCodeGenerator.
98
+ * @param {Array=} opt_data Optional initial data array, typically from a
99
+ * server response, or constructed directly in Javascript. The array is used
100
+ * in place and becomes part of the constructed object. It is not cloned.
101
+ * If no data is provided, the constructed object will be empty, but still
102
+ * valid.
103
+ * @extends {jspb.Message}
104
+ * @constructor
105
+ */
106
+ proto.ondewo.nlu.ListContextsResponse = function(opt_data) {
107
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.ListContextsResponse.repeatedFields_, null);
108
+ };
109
+ goog.inherits(proto.ondewo.nlu.ListContextsResponse, jspb.Message);
110
+ if (goog.DEBUG && !COMPILED) {
111
+ /**
112
+ * @public
113
+ * @override
114
+ */
115
+ proto.ondewo.nlu.ListContextsResponse.displayName = 'proto.ondewo.nlu.ListContextsResponse';
116
+ }
117
+ /**
118
+ * Generated by JsPbCodeGenerator.
119
+ * @param {Array=} opt_data Optional initial data array, typically from a
120
+ * server response, or constructed directly in Javascript. The array is used
121
+ * in place and becomes part of the constructed object. It is not cloned.
122
+ * If no data is provided, the constructed object will be empty, but still
123
+ * valid.
124
+ * @extends {jspb.Message}
125
+ * @constructor
126
+ */
127
+ proto.ondewo.nlu.GetContextRequest = function(opt_data) {
128
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
129
+ };
130
+ goog.inherits(proto.ondewo.nlu.GetContextRequest, jspb.Message);
131
+ if (goog.DEBUG && !COMPILED) {
132
+ /**
133
+ * @public
134
+ * @override
135
+ */
136
+ proto.ondewo.nlu.GetContextRequest.displayName = 'proto.ondewo.nlu.GetContextRequest';
137
+ }
138
+ /**
139
+ * Generated by JsPbCodeGenerator.
140
+ * @param {Array=} opt_data Optional initial data array, typically from a
141
+ * server response, or constructed directly in Javascript. The array is used
142
+ * in place and becomes part of the constructed object. It is not cloned.
143
+ * If no data is provided, the constructed object will be empty, but still
144
+ * valid.
145
+ * @extends {jspb.Message}
146
+ * @constructor
147
+ */
148
+ proto.ondewo.nlu.CreateContextRequest = function(opt_data) {
149
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
150
+ };
151
+ goog.inherits(proto.ondewo.nlu.CreateContextRequest, jspb.Message);
152
+ if (goog.DEBUG && !COMPILED) {
153
+ /**
154
+ * @public
155
+ * @override
156
+ */
157
+ proto.ondewo.nlu.CreateContextRequest.displayName = 'proto.ondewo.nlu.CreateContextRequest';
158
+ }
159
+ /**
160
+ * Generated by JsPbCodeGenerator.
161
+ * @param {Array=} opt_data Optional initial data array, typically from a
162
+ * server response, or constructed directly in Javascript. The array is used
163
+ * in place and becomes part of the constructed object. It is not cloned.
164
+ * If no data is provided, the constructed object will be empty, but still
165
+ * valid.
166
+ * @extends {jspb.Message}
167
+ * @constructor
168
+ */
169
+ proto.ondewo.nlu.UpdateContextRequest = function(opt_data) {
170
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
171
+ };
172
+ goog.inherits(proto.ondewo.nlu.UpdateContextRequest, jspb.Message);
173
+ if (goog.DEBUG && !COMPILED) {
174
+ /**
175
+ * @public
176
+ * @override
177
+ */
178
+ proto.ondewo.nlu.UpdateContextRequest.displayName = 'proto.ondewo.nlu.UpdateContextRequest';
179
+ }
180
+ /**
181
+ * Generated by JsPbCodeGenerator.
182
+ * @param {Array=} opt_data Optional initial data array, typically from a
183
+ * server response, or constructed directly in Javascript. The array is used
184
+ * in place and becomes part of the constructed object. It is not cloned.
185
+ * If no data is provided, the constructed object will be empty, but still
186
+ * valid.
187
+ * @extends {jspb.Message}
188
+ * @constructor
189
+ */
190
+ proto.ondewo.nlu.DeleteContextRequest = function(opt_data) {
191
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
192
+ };
193
+ goog.inherits(proto.ondewo.nlu.DeleteContextRequest, jspb.Message);
194
+ if (goog.DEBUG && !COMPILED) {
195
+ /**
196
+ * @public
197
+ * @override
198
+ */
199
+ proto.ondewo.nlu.DeleteContextRequest.displayName = 'proto.ondewo.nlu.DeleteContextRequest';
200
+ }
201
+ /**
202
+ * Generated by JsPbCodeGenerator.
203
+ * @param {Array=} opt_data Optional initial data array, typically from a
204
+ * server response, or constructed directly in Javascript. The array is used
205
+ * in place and becomes part of the constructed object. It is not cloned.
206
+ * If no data is provided, the constructed object will be empty, but still
207
+ * valid.
208
+ * @extends {jspb.Message}
209
+ * @constructor
210
+ */
211
+ proto.ondewo.nlu.DeleteAllContextsRequest = function(opt_data) {
212
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
213
+ };
214
+ goog.inherits(proto.ondewo.nlu.DeleteAllContextsRequest, jspb.Message);
215
+ if (goog.DEBUG && !COMPILED) {
216
+ /**
217
+ * @public
218
+ * @override
219
+ */
220
+ proto.ondewo.nlu.DeleteAllContextsRequest.displayName = 'proto.ondewo.nlu.DeleteAllContextsRequest';
221
+ }
222
+
223
+
224
+
225
+ if (jspb.Message.GENERATE_TO_OBJECT) {
226
+ /**
227
+ * Creates an object representation of this proto.
228
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
229
+ * Optional fields that are not set will be set to undefined.
230
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
231
+ * For the list of reserved names please see:
232
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
233
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
234
+ * JSPB instance for transitional soy proto support:
235
+ * http://goto/soy-param-migration
236
+ * @return {!Object}
237
+ */
238
+ proto.ondewo.nlu.Context.prototype.toObject = function(opt_includeInstance) {
239
+ return proto.ondewo.nlu.Context.toObject(opt_includeInstance, this);
240
+ };
241
+
242
+
243
+ /**
244
+ * Static version of the {@see toObject} method.
245
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
246
+ * the JSPB instance for transitional soy proto support:
247
+ * http://goto/soy-param-migration
248
+ * @param {!proto.ondewo.nlu.Context} msg The msg instance to transform.
249
+ * @return {!Object}
250
+ * @suppress {unusedLocalVariables} f is only used for nested messages
251
+ */
252
+ proto.ondewo.nlu.Context.toObject = function(includeInstance, msg) {
253
+ var f, obj = {
254
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
255
+ lifespanCount: jspb.Message.getFieldWithDefault(msg, 2, 0),
256
+ parametersMap: (f = msg.getParametersMap()) ? f.toObject(includeInstance, proto.ondewo.nlu.Context.Parameter.toObject) : [],
257
+ lifespanTime: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0)
258
+ };
259
+
260
+ if (includeInstance) {
261
+ obj.$jspbMessageInstance = msg;
262
+ }
263
+ return obj;
264
+ };
265
+ }
266
+
267
+
268
+ /**
269
+ * Deserializes binary data (in protobuf wire format).
270
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
271
+ * @return {!proto.ondewo.nlu.Context}
272
+ */
273
+ proto.ondewo.nlu.Context.deserializeBinary = function(bytes) {
274
+ var reader = new jspb.BinaryReader(bytes);
275
+ var msg = new proto.ondewo.nlu.Context;
276
+ return proto.ondewo.nlu.Context.deserializeBinaryFromReader(msg, reader);
277
+ };
278
+
279
+
280
+ /**
281
+ * Deserializes binary data (in protobuf wire format) from the
282
+ * given reader into the given message object.
283
+ * @param {!proto.ondewo.nlu.Context} msg The message object to deserialize into.
284
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
285
+ * @return {!proto.ondewo.nlu.Context}
286
+ */
287
+ proto.ondewo.nlu.Context.deserializeBinaryFromReader = function(msg, reader) {
288
+ while (reader.nextField()) {
289
+ if (reader.isEndGroup()) {
290
+ break;
291
+ }
292
+ var field = reader.getFieldNumber();
293
+ switch (field) {
294
+ case 1:
295
+ var value = /** @type {string} */ (reader.readString());
296
+ msg.setName(value);
297
+ break;
298
+ case 2:
299
+ var value = /** @type {number} */ (reader.readInt32());
300
+ msg.setLifespanCount(value);
301
+ break;
302
+ case 3:
303
+ var value = msg.getParametersMap();
304
+ reader.readMessage(value, function(message, reader) {
305
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.ondewo.nlu.Context.Parameter.deserializeBinaryFromReader, "", new proto.ondewo.nlu.Context.Parameter());
306
+ });
307
+ break;
308
+ case 4:
309
+ var value = /** @type {number} */ (reader.readFloat());
310
+ msg.setLifespanTime(value);
311
+ break;
312
+ default:
313
+ reader.skipField();
314
+ break;
315
+ }
316
+ }
317
+ return msg;
318
+ };
319
+
320
+
321
+ /**
322
+ * Serializes the message to binary data (in protobuf wire format).
323
+ * @return {!Uint8Array}
324
+ */
325
+ proto.ondewo.nlu.Context.prototype.serializeBinary = function() {
326
+ var writer = new jspb.BinaryWriter();
327
+ proto.ondewo.nlu.Context.serializeBinaryToWriter(this, writer);
328
+ return writer.getResultBuffer();
329
+ };
330
+
331
+
332
+ /**
333
+ * Serializes the given message to binary data (in protobuf wire
334
+ * format), writing to the given BinaryWriter.
335
+ * @param {!proto.ondewo.nlu.Context} message
336
+ * @param {!jspb.BinaryWriter} writer
337
+ * @suppress {unusedLocalVariables} f is only used for nested messages
338
+ */
339
+ proto.ondewo.nlu.Context.serializeBinaryToWriter = function(message, writer) {
340
+ var f = undefined;
341
+ f = message.getName();
342
+ if (f.length > 0) {
343
+ writer.writeString(
344
+ 1,
345
+ f
346
+ );
347
+ }
348
+ f = message.getLifespanCount();
349
+ if (f !== 0) {
350
+ writer.writeInt32(
351
+ 2,
352
+ f
353
+ );
354
+ }
355
+ f = message.getParametersMap(true);
356
+ if (f && f.getLength() > 0) {
357
+ f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.ondewo.nlu.Context.Parameter.serializeBinaryToWriter);
358
+ }
359
+ f = message.getLifespanTime();
360
+ if (f !== 0.0) {
361
+ writer.writeFloat(
362
+ 4,
363
+ f
364
+ );
365
+ }
366
+ };
367
+
368
+
369
+
370
+
371
+
372
+ if (jspb.Message.GENERATE_TO_OBJECT) {
373
+ /**
374
+ * Creates an object representation of this proto.
375
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
376
+ * Optional fields that are not set will be set to undefined.
377
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
378
+ * For the list of reserved names please see:
379
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
380
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
381
+ * JSPB instance for transitional soy proto support:
382
+ * http://goto/soy-param-migration
383
+ * @return {!Object}
384
+ */
385
+ proto.ondewo.nlu.Context.Parameter.prototype.toObject = function(opt_includeInstance) {
386
+ return proto.ondewo.nlu.Context.Parameter.toObject(opt_includeInstance, this);
387
+ };
388
+
389
+
390
+ /**
391
+ * Static version of the {@see toObject} method.
392
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
393
+ * the JSPB instance for transitional soy proto support:
394
+ * http://goto/soy-param-migration
395
+ * @param {!proto.ondewo.nlu.Context.Parameter} msg The msg instance to transform.
396
+ * @return {!Object}
397
+ * @suppress {unusedLocalVariables} f is only used for nested messages
398
+ */
399
+ proto.ondewo.nlu.Context.Parameter.toObject = function(includeInstance, msg) {
400
+ var f, obj = {
401
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
402
+ displayName: jspb.Message.getFieldWithDefault(msg, 2, ""),
403
+ value: jspb.Message.getFieldWithDefault(msg, 3, ""),
404
+ valueOriginal: jspb.Message.getFieldWithDefault(msg, 4, "")
405
+ };
406
+
407
+ if (includeInstance) {
408
+ obj.$jspbMessageInstance = msg;
409
+ }
410
+ return obj;
411
+ };
412
+ }
413
+
414
+
415
+ /**
416
+ * Deserializes binary data (in protobuf wire format).
417
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
418
+ * @return {!proto.ondewo.nlu.Context.Parameter}
419
+ */
420
+ proto.ondewo.nlu.Context.Parameter.deserializeBinary = function(bytes) {
421
+ var reader = new jspb.BinaryReader(bytes);
422
+ var msg = new proto.ondewo.nlu.Context.Parameter;
423
+ return proto.ondewo.nlu.Context.Parameter.deserializeBinaryFromReader(msg, reader);
424
+ };
425
+
426
+
427
+ /**
428
+ * Deserializes binary data (in protobuf wire format) from the
429
+ * given reader into the given message object.
430
+ * @param {!proto.ondewo.nlu.Context.Parameter} msg The message object to deserialize into.
431
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
432
+ * @return {!proto.ondewo.nlu.Context.Parameter}
433
+ */
434
+ proto.ondewo.nlu.Context.Parameter.deserializeBinaryFromReader = function(msg, reader) {
435
+ while (reader.nextField()) {
436
+ if (reader.isEndGroup()) {
437
+ break;
438
+ }
439
+ var field = reader.getFieldNumber();
440
+ switch (field) {
441
+ case 1:
442
+ var value = /** @type {string} */ (reader.readString());
443
+ msg.setName(value);
444
+ break;
445
+ case 2:
446
+ var value = /** @type {string} */ (reader.readString());
447
+ msg.setDisplayName(value);
448
+ break;
449
+ case 3:
450
+ var value = /** @type {string} */ (reader.readString());
451
+ msg.setValue(value);
452
+ break;
453
+ case 4:
454
+ var value = /** @type {string} */ (reader.readString());
455
+ msg.setValueOriginal(value);
456
+ break;
457
+ default:
458
+ reader.skipField();
459
+ break;
460
+ }
461
+ }
462
+ return msg;
463
+ };
464
+
465
+
466
+ /**
467
+ * Serializes the message to binary data (in protobuf wire format).
468
+ * @return {!Uint8Array}
469
+ */
470
+ proto.ondewo.nlu.Context.Parameter.prototype.serializeBinary = function() {
471
+ var writer = new jspb.BinaryWriter();
472
+ proto.ondewo.nlu.Context.Parameter.serializeBinaryToWriter(this, writer);
473
+ return writer.getResultBuffer();
474
+ };
475
+
476
+
477
+ /**
478
+ * Serializes the given message to binary data (in protobuf wire
479
+ * format), writing to the given BinaryWriter.
480
+ * @param {!proto.ondewo.nlu.Context.Parameter} message
481
+ * @param {!jspb.BinaryWriter} writer
482
+ * @suppress {unusedLocalVariables} f is only used for nested messages
483
+ */
484
+ proto.ondewo.nlu.Context.Parameter.serializeBinaryToWriter = function(message, writer) {
485
+ var f = undefined;
486
+ f = message.getName();
487
+ if (f.length > 0) {
488
+ writer.writeString(
489
+ 1,
490
+ f
491
+ );
492
+ }
493
+ f = message.getDisplayName();
494
+ if (f.length > 0) {
495
+ writer.writeString(
496
+ 2,
497
+ f
498
+ );
499
+ }
500
+ f = message.getValue();
501
+ if (f.length > 0) {
502
+ writer.writeString(
503
+ 3,
504
+ f
505
+ );
506
+ }
507
+ f = message.getValueOriginal();
508
+ if (f.length > 0) {
509
+ writer.writeString(
510
+ 4,
511
+ f
512
+ );
513
+ }
514
+ };
515
+
516
+
517
+ /**
518
+ * optional string name = 1;
519
+ * @return {string}
520
+ */
521
+ proto.ondewo.nlu.Context.Parameter.prototype.getName = function() {
522
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
523
+ };
524
+
525
+
526
+ /**
527
+ * @param {string} value
528
+ * @return {!proto.ondewo.nlu.Context.Parameter} returns this
529
+ */
530
+ proto.ondewo.nlu.Context.Parameter.prototype.setName = function(value) {
531
+ return jspb.Message.setProto3StringField(this, 1, value);
532
+ };
533
+
534
+
535
+ /**
536
+ * optional string display_name = 2;
537
+ * @return {string}
538
+ */
539
+ proto.ondewo.nlu.Context.Parameter.prototype.getDisplayName = function() {
540
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
541
+ };
542
+
543
+
544
+ /**
545
+ * @param {string} value
546
+ * @return {!proto.ondewo.nlu.Context.Parameter} returns this
547
+ */
548
+ proto.ondewo.nlu.Context.Parameter.prototype.setDisplayName = function(value) {
549
+ return jspb.Message.setProto3StringField(this, 2, value);
550
+ };
551
+
552
+
553
+ /**
554
+ * optional string value = 3;
555
+ * @return {string}
556
+ */
557
+ proto.ondewo.nlu.Context.Parameter.prototype.getValue = function() {
558
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
559
+ };
560
+
561
+
562
+ /**
563
+ * @param {string} value
564
+ * @return {!proto.ondewo.nlu.Context.Parameter} returns this
565
+ */
566
+ proto.ondewo.nlu.Context.Parameter.prototype.setValue = function(value) {
567
+ return jspb.Message.setProto3StringField(this, 3, value);
568
+ };
569
+
570
+
571
+ /**
572
+ * optional string value_original = 4;
573
+ * @return {string}
574
+ */
575
+ proto.ondewo.nlu.Context.Parameter.prototype.getValueOriginal = function() {
576
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
577
+ };
578
+
579
+
580
+ /**
581
+ * @param {string} value
582
+ * @return {!proto.ondewo.nlu.Context.Parameter} returns this
583
+ */
584
+ proto.ondewo.nlu.Context.Parameter.prototype.setValueOriginal = function(value) {
585
+ return jspb.Message.setProto3StringField(this, 4, value);
586
+ };
587
+
588
+
589
+ /**
590
+ * optional string name = 1;
591
+ * @return {string}
592
+ */
593
+ proto.ondewo.nlu.Context.prototype.getName = function() {
594
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
595
+ };
596
+
597
+
598
+ /**
599
+ * @param {string} value
600
+ * @return {!proto.ondewo.nlu.Context} returns this
601
+ */
602
+ proto.ondewo.nlu.Context.prototype.setName = function(value) {
603
+ return jspb.Message.setProto3StringField(this, 1, value);
604
+ };
605
+
606
+
607
+ /**
608
+ * optional int32 lifespan_count = 2;
609
+ * @return {number}
610
+ */
611
+ proto.ondewo.nlu.Context.prototype.getLifespanCount = function() {
612
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
613
+ };
614
+
615
+
616
+ /**
617
+ * @param {number} value
618
+ * @return {!proto.ondewo.nlu.Context} returns this
619
+ */
620
+ proto.ondewo.nlu.Context.prototype.setLifespanCount = function(value) {
621
+ return jspb.Message.setProto3IntField(this, 2, value);
622
+ };
623
+
624
+
625
+ /**
626
+ * map<string, Parameter> parameters = 3;
627
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
628
+ * empty, instead returning `undefined`
629
+ * @return {!jspb.Map<string,!proto.ondewo.nlu.Context.Parameter>}
630
+ */
631
+ proto.ondewo.nlu.Context.prototype.getParametersMap = function(opt_noLazyCreate) {
632
+ return /** @type {!jspb.Map<string,!proto.ondewo.nlu.Context.Parameter>} */ (
633
+ jspb.Message.getMapField(this, 3, opt_noLazyCreate,
634
+ proto.ondewo.nlu.Context.Parameter));
635
+ };
636
+
637
+
638
+ /**
639
+ * Clears values from the map. The map will be non-null.
640
+ * @return {!proto.ondewo.nlu.Context} returns this
641
+ */
642
+ proto.ondewo.nlu.Context.prototype.clearParametersMap = function() {
643
+ this.getParametersMap().clear();
644
+ return this;};
645
+
646
+
647
+ /**
648
+ * optional float lifespan_time = 4;
649
+ * @return {number}
650
+ */
651
+ proto.ondewo.nlu.Context.prototype.getLifespanTime = function() {
652
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
653
+ };
654
+
655
+
656
+ /**
657
+ * @param {number} value
658
+ * @return {!proto.ondewo.nlu.Context} returns this
659
+ */
660
+ proto.ondewo.nlu.Context.prototype.setLifespanTime = function(value) {
661
+ return jspb.Message.setProto3FloatField(this, 4, value);
662
+ };
663
+
664
+
665
+
666
+
667
+
668
+ if (jspb.Message.GENERATE_TO_OBJECT) {
669
+ /**
670
+ * Creates an object representation of this proto.
671
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
672
+ * Optional fields that are not set will be set to undefined.
673
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
674
+ * For the list of reserved names please see:
675
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
676
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
677
+ * JSPB instance for transitional soy proto support:
678
+ * http://goto/soy-param-migration
679
+ * @return {!Object}
680
+ */
681
+ proto.ondewo.nlu.ListContextsRequest.prototype.toObject = function(opt_includeInstance) {
682
+ return proto.ondewo.nlu.ListContextsRequest.toObject(opt_includeInstance, this);
683
+ };
684
+
685
+
686
+ /**
687
+ * Static version of the {@see toObject} method.
688
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
689
+ * the JSPB instance for transitional soy proto support:
690
+ * http://goto/soy-param-migration
691
+ * @param {!proto.ondewo.nlu.ListContextsRequest} msg The msg instance to transform.
692
+ * @return {!Object}
693
+ * @suppress {unusedLocalVariables} f is only used for nested messages
694
+ */
695
+ proto.ondewo.nlu.ListContextsRequest.toObject = function(includeInstance, msg) {
696
+ var f, obj = {
697
+ parent: jspb.Message.getFieldWithDefault(msg, 1, ""),
698
+ pageToken: jspb.Message.getFieldWithDefault(msg, 3, "")
699
+ };
700
+
701
+ if (includeInstance) {
702
+ obj.$jspbMessageInstance = msg;
703
+ }
704
+ return obj;
705
+ };
706
+ }
707
+
708
+
709
+ /**
710
+ * Deserializes binary data (in protobuf wire format).
711
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
712
+ * @return {!proto.ondewo.nlu.ListContextsRequest}
713
+ */
714
+ proto.ondewo.nlu.ListContextsRequest.deserializeBinary = function(bytes) {
715
+ var reader = new jspb.BinaryReader(bytes);
716
+ var msg = new proto.ondewo.nlu.ListContextsRequest;
717
+ return proto.ondewo.nlu.ListContextsRequest.deserializeBinaryFromReader(msg, reader);
718
+ };
719
+
720
+
721
+ /**
722
+ * Deserializes binary data (in protobuf wire format) from the
723
+ * given reader into the given message object.
724
+ * @param {!proto.ondewo.nlu.ListContextsRequest} msg The message object to deserialize into.
725
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
726
+ * @return {!proto.ondewo.nlu.ListContextsRequest}
727
+ */
728
+ proto.ondewo.nlu.ListContextsRequest.deserializeBinaryFromReader = function(msg, reader) {
729
+ while (reader.nextField()) {
730
+ if (reader.isEndGroup()) {
731
+ break;
732
+ }
733
+ var field = reader.getFieldNumber();
734
+ switch (field) {
735
+ case 1:
736
+ var value = /** @type {string} */ (reader.readString());
737
+ msg.setParent(value);
738
+ break;
739
+ case 3:
740
+ var value = /** @type {string} */ (reader.readString());
741
+ msg.setPageToken(value);
742
+ break;
743
+ default:
744
+ reader.skipField();
745
+ break;
746
+ }
747
+ }
748
+ return msg;
749
+ };
750
+
751
+
752
+ /**
753
+ * Serializes the message to binary data (in protobuf wire format).
754
+ * @return {!Uint8Array}
755
+ */
756
+ proto.ondewo.nlu.ListContextsRequest.prototype.serializeBinary = function() {
757
+ var writer = new jspb.BinaryWriter();
758
+ proto.ondewo.nlu.ListContextsRequest.serializeBinaryToWriter(this, writer);
759
+ return writer.getResultBuffer();
760
+ };
761
+
762
+
763
+ /**
764
+ * Serializes the given message to binary data (in protobuf wire
765
+ * format), writing to the given BinaryWriter.
766
+ * @param {!proto.ondewo.nlu.ListContextsRequest} message
767
+ * @param {!jspb.BinaryWriter} writer
768
+ * @suppress {unusedLocalVariables} f is only used for nested messages
769
+ */
770
+ proto.ondewo.nlu.ListContextsRequest.serializeBinaryToWriter = function(message, writer) {
771
+ var f = undefined;
772
+ f = message.getParent();
773
+ if (f.length > 0) {
774
+ writer.writeString(
775
+ 1,
776
+ f
777
+ );
778
+ }
779
+ f = message.getPageToken();
780
+ if (f.length > 0) {
781
+ writer.writeString(
782
+ 3,
783
+ f
784
+ );
785
+ }
786
+ };
787
+
788
+
789
+ /**
790
+ * optional string parent = 1;
791
+ * @return {string}
792
+ */
793
+ proto.ondewo.nlu.ListContextsRequest.prototype.getParent = function() {
794
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
795
+ };
796
+
797
+
798
+ /**
799
+ * @param {string} value
800
+ * @return {!proto.ondewo.nlu.ListContextsRequest} returns this
801
+ */
802
+ proto.ondewo.nlu.ListContextsRequest.prototype.setParent = function(value) {
803
+ return jspb.Message.setProto3StringField(this, 1, value);
804
+ };
805
+
806
+
807
+ /**
808
+ * optional string page_token = 3;
809
+ * @return {string}
810
+ */
811
+ proto.ondewo.nlu.ListContextsRequest.prototype.getPageToken = function() {
812
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
813
+ };
814
+
815
+
816
+ /**
817
+ * @param {string} value
818
+ * @return {!proto.ondewo.nlu.ListContextsRequest} returns this
819
+ */
820
+ proto.ondewo.nlu.ListContextsRequest.prototype.setPageToken = function(value) {
821
+ return jspb.Message.setProto3StringField(this, 3, value);
822
+ };
823
+
824
+
825
+
826
+ /**
827
+ * List of repeated fields within this message type.
828
+ * @private {!Array<number>}
829
+ * @const
830
+ */
831
+ proto.ondewo.nlu.ListContextsResponse.repeatedFields_ = [1];
832
+
833
+
834
+
835
+ if (jspb.Message.GENERATE_TO_OBJECT) {
836
+ /**
837
+ * Creates an object representation of this proto.
838
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
839
+ * Optional fields that are not set will be set to undefined.
840
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
841
+ * For the list of reserved names please see:
842
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
843
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
844
+ * JSPB instance for transitional soy proto support:
845
+ * http://goto/soy-param-migration
846
+ * @return {!Object}
847
+ */
848
+ proto.ondewo.nlu.ListContextsResponse.prototype.toObject = function(opt_includeInstance) {
849
+ return proto.ondewo.nlu.ListContextsResponse.toObject(opt_includeInstance, this);
850
+ };
851
+
852
+
853
+ /**
854
+ * Static version of the {@see toObject} method.
855
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
856
+ * the JSPB instance for transitional soy proto support:
857
+ * http://goto/soy-param-migration
858
+ * @param {!proto.ondewo.nlu.ListContextsResponse} msg The msg instance to transform.
859
+ * @return {!Object}
860
+ * @suppress {unusedLocalVariables} f is only used for nested messages
861
+ */
862
+ proto.ondewo.nlu.ListContextsResponse.toObject = function(includeInstance, msg) {
863
+ var f, obj = {
864
+ contextsList: jspb.Message.toObjectList(msg.getContextsList(),
865
+ proto.ondewo.nlu.Context.toObject, includeInstance),
866
+ nextPageToken: jspb.Message.getFieldWithDefault(msg, 2, "")
867
+ };
868
+
869
+ if (includeInstance) {
870
+ obj.$jspbMessageInstance = msg;
871
+ }
872
+ return obj;
873
+ };
874
+ }
875
+
876
+
877
+ /**
878
+ * Deserializes binary data (in protobuf wire format).
879
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
880
+ * @return {!proto.ondewo.nlu.ListContextsResponse}
881
+ */
882
+ proto.ondewo.nlu.ListContextsResponse.deserializeBinary = function(bytes) {
883
+ var reader = new jspb.BinaryReader(bytes);
884
+ var msg = new proto.ondewo.nlu.ListContextsResponse;
885
+ return proto.ondewo.nlu.ListContextsResponse.deserializeBinaryFromReader(msg, reader);
886
+ };
887
+
888
+
889
+ /**
890
+ * Deserializes binary data (in protobuf wire format) from the
891
+ * given reader into the given message object.
892
+ * @param {!proto.ondewo.nlu.ListContextsResponse} msg The message object to deserialize into.
893
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
894
+ * @return {!proto.ondewo.nlu.ListContextsResponse}
895
+ */
896
+ proto.ondewo.nlu.ListContextsResponse.deserializeBinaryFromReader = function(msg, reader) {
897
+ while (reader.nextField()) {
898
+ if (reader.isEndGroup()) {
899
+ break;
900
+ }
901
+ var field = reader.getFieldNumber();
902
+ switch (field) {
903
+ case 1:
904
+ var value = new proto.ondewo.nlu.Context;
905
+ reader.readMessage(value,proto.ondewo.nlu.Context.deserializeBinaryFromReader);
906
+ msg.addContexts(value);
907
+ break;
908
+ case 2:
909
+ var value = /** @type {string} */ (reader.readString());
910
+ msg.setNextPageToken(value);
911
+ break;
912
+ default:
913
+ reader.skipField();
914
+ break;
915
+ }
916
+ }
917
+ return msg;
918
+ };
919
+
920
+
921
+ /**
922
+ * Serializes the message to binary data (in protobuf wire format).
923
+ * @return {!Uint8Array}
924
+ */
925
+ proto.ondewo.nlu.ListContextsResponse.prototype.serializeBinary = function() {
926
+ var writer = new jspb.BinaryWriter();
927
+ proto.ondewo.nlu.ListContextsResponse.serializeBinaryToWriter(this, writer);
928
+ return writer.getResultBuffer();
929
+ };
930
+
931
+
932
+ /**
933
+ * Serializes the given message to binary data (in protobuf wire
934
+ * format), writing to the given BinaryWriter.
935
+ * @param {!proto.ondewo.nlu.ListContextsResponse} message
936
+ * @param {!jspb.BinaryWriter} writer
937
+ * @suppress {unusedLocalVariables} f is only used for nested messages
938
+ */
939
+ proto.ondewo.nlu.ListContextsResponse.serializeBinaryToWriter = function(message, writer) {
940
+ var f = undefined;
941
+ f = message.getContextsList();
942
+ if (f.length > 0) {
943
+ writer.writeRepeatedMessage(
944
+ 1,
945
+ f,
946
+ proto.ondewo.nlu.Context.serializeBinaryToWriter
947
+ );
948
+ }
949
+ f = message.getNextPageToken();
950
+ if (f.length > 0) {
951
+ writer.writeString(
952
+ 2,
953
+ f
954
+ );
955
+ }
956
+ };
957
+
958
+
959
+ /**
960
+ * repeated Context contexts = 1;
961
+ * @return {!Array<!proto.ondewo.nlu.Context>}
962
+ */
963
+ proto.ondewo.nlu.ListContextsResponse.prototype.getContextsList = function() {
964
+ return /** @type{!Array<!proto.ondewo.nlu.Context>} */ (
965
+ jspb.Message.getRepeatedWrapperField(this, proto.ondewo.nlu.Context, 1));
966
+ };
967
+
968
+
969
+ /**
970
+ * @param {!Array<!proto.ondewo.nlu.Context>} value
971
+ * @return {!proto.ondewo.nlu.ListContextsResponse} returns this
972
+ */
973
+ proto.ondewo.nlu.ListContextsResponse.prototype.setContextsList = function(value) {
974
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
975
+ };
976
+
977
+
978
+ /**
979
+ * @param {!proto.ondewo.nlu.Context=} opt_value
980
+ * @param {number=} opt_index
981
+ * @return {!proto.ondewo.nlu.Context}
982
+ */
983
+ proto.ondewo.nlu.ListContextsResponse.prototype.addContexts = function(opt_value, opt_index) {
984
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ondewo.nlu.Context, opt_index);
985
+ };
986
+
987
+
988
+ /**
989
+ * Clears the list making it empty but non-null.
990
+ * @return {!proto.ondewo.nlu.ListContextsResponse} returns this
991
+ */
992
+ proto.ondewo.nlu.ListContextsResponse.prototype.clearContextsList = function() {
993
+ return this.setContextsList([]);
994
+ };
995
+
996
+
997
+ /**
998
+ * optional string next_page_token = 2;
999
+ * @return {string}
1000
+ */
1001
+ proto.ondewo.nlu.ListContextsResponse.prototype.getNextPageToken = function() {
1002
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1003
+ };
1004
+
1005
+
1006
+ /**
1007
+ * @param {string} value
1008
+ * @return {!proto.ondewo.nlu.ListContextsResponse} returns this
1009
+ */
1010
+ proto.ondewo.nlu.ListContextsResponse.prototype.setNextPageToken = function(value) {
1011
+ return jspb.Message.setProto3StringField(this, 2, value);
1012
+ };
1013
+
1014
+
1015
+
1016
+
1017
+
1018
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1019
+ /**
1020
+ * Creates an object representation of this proto.
1021
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1022
+ * Optional fields that are not set will be set to undefined.
1023
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1024
+ * For the list of reserved names please see:
1025
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1026
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1027
+ * JSPB instance for transitional soy proto support:
1028
+ * http://goto/soy-param-migration
1029
+ * @return {!Object}
1030
+ */
1031
+ proto.ondewo.nlu.GetContextRequest.prototype.toObject = function(opt_includeInstance) {
1032
+ return proto.ondewo.nlu.GetContextRequest.toObject(opt_includeInstance, this);
1033
+ };
1034
+
1035
+
1036
+ /**
1037
+ * Static version of the {@see toObject} method.
1038
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1039
+ * the JSPB instance for transitional soy proto support:
1040
+ * http://goto/soy-param-migration
1041
+ * @param {!proto.ondewo.nlu.GetContextRequest} msg The msg instance to transform.
1042
+ * @return {!Object}
1043
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1044
+ */
1045
+ proto.ondewo.nlu.GetContextRequest.toObject = function(includeInstance, msg) {
1046
+ var f, obj = {
1047
+ name: jspb.Message.getFieldWithDefault(msg, 1, "")
1048
+ };
1049
+
1050
+ if (includeInstance) {
1051
+ obj.$jspbMessageInstance = msg;
1052
+ }
1053
+ return obj;
1054
+ };
1055
+ }
1056
+
1057
+
1058
+ /**
1059
+ * Deserializes binary data (in protobuf wire format).
1060
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1061
+ * @return {!proto.ondewo.nlu.GetContextRequest}
1062
+ */
1063
+ proto.ondewo.nlu.GetContextRequest.deserializeBinary = function(bytes) {
1064
+ var reader = new jspb.BinaryReader(bytes);
1065
+ var msg = new proto.ondewo.nlu.GetContextRequest;
1066
+ return proto.ondewo.nlu.GetContextRequest.deserializeBinaryFromReader(msg, reader);
1067
+ };
1068
+
1069
+
1070
+ /**
1071
+ * Deserializes binary data (in protobuf wire format) from the
1072
+ * given reader into the given message object.
1073
+ * @param {!proto.ondewo.nlu.GetContextRequest} msg The message object to deserialize into.
1074
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1075
+ * @return {!proto.ondewo.nlu.GetContextRequest}
1076
+ */
1077
+ proto.ondewo.nlu.GetContextRequest.deserializeBinaryFromReader = function(msg, reader) {
1078
+ while (reader.nextField()) {
1079
+ if (reader.isEndGroup()) {
1080
+ break;
1081
+ }
1082
+ var field = reader.getFieldNumber();
1083
+ switch (field) {
1084
+ case 1:
1085
+ var value = /** @type {string} */ (reader.readString());
1086
+ msg.setName(value);
1087
+ break;
1088
+ default:
1089
+ reader.skipField();
1090
+ break;
1091
+ }
1092
+ }
1093
+ return msg;
1094
+ };
1095
+
1096
+
1097
+ /**
1098
+ * Serializes the message to binary data (in protobuf wire format).
1099
+ * @return {!Uint8Array}
1100
+ */
1101
+ proto.ondewo.nlu.GetContextRequest.prototype.serializeBinary = function() {
1102
+ var writer = new jspb.BinaryWriter();
1103
+ proto.ondewo.nlu.GetContextRequest.serializeBinaryToWriter(this, writer);
1104
+ return writer.getResultBuffer();
1105
+ };
1106
+
1107
+
1108
+ /**
1109
+ * Serializes the given message to binary data (in protobuf wire
1110
+ * format), writing to the given BinaryWriter.
1111
+ * @param {!proto.ondewo.nlu.GetContextRequest} message
1112
+ * @param {!jspb.BinaryWriter} writer
1113
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1114
+ */
1115
+ proto.ondewo.nlu.GetContextRequest.serializeBinaryToWriter = function(message, writer) {
1116
+ var f = undefined;
1117
+ f = message.getName();
1118
+ if (f.length > 0) {
1119
+ writer.writeString(
1120
+ 1,
1121
+ f
1122
+ );
1123
+ }
1124
+ };
1125
+
1126
+
1127
+ /**
1128
+ * optional string name = 1;
1129
+ * @return {string}
1130
+ */
1131
+ proto.ondewo.nlu.GetContextRequest.prototype.getName = function() {
1132
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1133
+ };
1134
+
1135
+
1136
+ /**
1137
+ * @param {string} value
1138
+ * @return {!proto.ondewo.nlu.GetContextRequest} returns this
1139
+ */
1140
+ proto.ondewo.nlu.GetContextRequest.prototype.setName = function(value) {
1141
+ return jspb.Message.setProto3StringField(this, 1, value);
1142
+ };
1143
+
1144
+
1145
+
1146
+
1147
+
1148
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1149
+ /**
1150
+ * Creates an object representation of this proto.
1151
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1152
+ * Optional fields that are not set will be set to undefined.
1153
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1154
+ * For the list of reserved names please see:
1155
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1156
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1157
+ * JSPB instance for transitional soy proto support:
1158
+ * http://goto/soy-param-migration
1159
+ * @return {!Object}
1160
+ */
1161
+ proto.ondewo.nlu.CreateContextRequest.prototype.toObject = function(opt_includeInstance) {
1162
+ return proto.ondewo.nlu.CreateContextRequest.toObject(opt_includeInstance, this);
1163
+ };
1164
+
1165
+
1166
+ /**
1167
+ * Static version of the {@see toObject} method.
1168
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1169
+ * the JSPB instance for transitional soy proto support:
1170
+ * http://goto/soy-param-migration
1171
+ * @param {!proto.ondewo.nlu.CreateContextRequest} msg The msg instance to transform.
1172
+ * @return {!Object}
1173
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1174
+ */
1175
+ proto.ondewo.nlu.CreateContextRequest.toObject = function(includeInstance, msg) {
1176
+ var f, obj = {
1177
+ parent: jspb.Message.getFieldWithDefault(msg, 1, ""),
1178
+ context: (f = msg.getContext()) && proto.ondewo.nlu.Context.toObject(includeInstance, f)
1179
+ };
1180
+
1181
+ if (includeInstance) {
1182
+ obj.$jspbMessageInstance = msg;
1183
+ }
1184
+ return obj;
1185
+ };
1186
+ }
1187
+
1188
+
1189
+ /**
1190
+ * Deserializes binary data (in protobuf wire format).
1191
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1192
+ * @return {!proto.ondewo.nlu.CreateContextRequest}
1193
+ */
1194
+ proto.ondewo.nlu.CreateContextRequest.deserializeBinary = function(bytes) {
1195
+ var reader = new jspb.BinaryReader(bytes);
1196
+ var msg = new proto.ondewo.nlu.CreateContextRequest;
1197
+ return proto.ondewo.nlu.CreateContextRequest.deserializeBinaryFromReader(msg, reader);
1198
+ };
1199
+
1200
+
1201
+ /**
1202
+ * Deserializes binary data (in protobuf wire format) from the
1203
+ * given reader into the given message object.
1204
+ * @param {!proto.ondewo.nlu.CreateContextRequest} msg The message object to deserialize into.
1205
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1206
+ * @return {!proto.ondewo.nlu.CreateContextRequest}
1207
+ */
1208
+ proto.ondewo.nlu.CreateContextRequest.deserializeBinaryFromReader = function(msg, reader) {
1209
+ while (reader.nextField()) {
1210
+ if (reader.isEndGroup()) {
1211
+ break;
1212
+ }
1213
+ var field = reader.getFieldNumber();
1214
+ switch (field) {
1215
+ case 1:
1216
+ var value = /** @type {string} */ (reader.readString());
1217
+ msg.setParent(value);
1218
+ break;
1219
+ case 2:
1220
+ var value = new proto.ondewo.nlu.Context;
1221
+ reader.readMessage(value,proto.ondewo.nlu.Context.deserializeBinaryFromReader);
1222
+ msg.setContext(value);
1223
+ break;
1224
+ default:
1225
+ reader.skipField();
1226
+ break;
1227
+ }
1228
+ }
1229
+ return msg;
1230
+ };
1231
+
1232
+
1233
+ /**
1234
+ * Serializes the message to binary data (in protobuf wire format).
1235
+ * @return {!Uint8Array}
1236
+ */
1237
+ proto.ondewo.nlu.CreateContextRequest.prototype.serializeBinary = function() {
1238
+ var writer = new jspb.BinaryWriter();
1239
+ proto.ondewo.nlu.CreateContextRequest.serializeBinaryToWriter(this, writer);
1240
+ return writer.getResultBuffer();
1241
+ };
1242
+
1243
+
1244
+ /**
1245
+ * Serializes the given message to binary data (in protobuf wire
1246
+ * format), writing to the given BinaryWriter.
1247
+ * @param {!proto.ondewo.nlu.CreateContextRequest} message
1248
+ * @param {!jspb.BinaryWriter} writer
1249
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1250
+ */
1251
+ proto.ondewo.nlu.CreateContextRequest.serializeBinaryToWriter = function(message, writer) {
1252
+ var f = undefined;
1253
+ f = message.getParent();
1254
+ if (f.length > 0) {
1255
+ writer.writeString(
1256
+ 1,
1257
+ f
1258
+ );
1259
+ }
1260
+ f = message.getContext();
1261
+ if (f != null) {
1262
+ writer.writeMessage(
1263
+ 2,
1264
+ f,
1265
+ proto.ondewo.nlu.Context.serializeBinaryToWriter
1266
+ );
1267
+ }
1268
+ };
1269
+
1270
+
1271
+ /**
1272
+ * optional string parent = 1;
1273
+ * @return {string}
1274
+ */
1275
+ proto.ondewo.nlu.CreateContextRequest.prototype.getParent = function() {
1276
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1277
+ };
1278
+
1279
+
1280
+ /**
1281
+ * @param {string} value
1282
+ * @return {!proto.ondewo.nlu.CreateContextRequest} returns this
1283
+ */
1284
+ proto.ondewo.nlu.CreateContextRequest.prototype.setParent = function(value) {
1285
+ return jspb.Message.setProto3StringField(this, 1, value);
1286
+ };
1287
+
1288
+
1289
+ /**
1290
+ * optional Context context = 2;
1291
+ * @return {?proto.ondewo.nlu.Context}
1292
+ */
1293
+ proto.ondewo.nlu.CreateContextRequest.prototype.getContext = function() {
1294
+ return /** @type{?proto.ondewo.nlu.Context} */ (
1295
+ jspb.Message.getWrapperField(this, proto.ondewo.nlu.Context, 2));
1296
+ };
1297
+
1298
+
1299
+ /**
1300
+ * @param {?proto.ondewo.nlu.Context|undefined} value
1301
+ * @return {!proto.ondewo.nlu.CreateContextRequest} returns this
1302
+ */
1303
+ proto.ondewo.nlu.CreateContextRequest.prototype.setContext = function(value) {
1304
+ return jspb.Message.setWrapperField(this, 2, value);
1305
+ };
1306
+
1307
+
1308
+ /**
1309
+ * Clears the message field making it undefined.
1310
+ * @return {!proto.ondewo.nlu.CreateContextRequest} returns this
1311
+ */
1312
+ proto.ondewo.nlu.CreateContextRequest.prototype.clearContext = function() {
1313
+ return this.setContext(undefined);
1314
+ };
1315
+
1316
+
1317
+ /**
1318
+ * Returns whether this field is set.
1319
+ * @return {boolean}
1320
+ */
1321
+ proto.ondewo.nlu.CreateContextRequest.prototype.hasContext = function() {
1322
+ return jspb.Message.getField(this, 2) != null;
1323
+ };
1324
+
1325
+
1326
+
1327
+
1328
+
1329
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1330
+ /**
1331
+ * Creates an object representation of this proto.
1332
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1333
+ * Optional fields that are not set will be set to undefined.
1334
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1335
+ * For the list of reserved names please see:
1336
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1337
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1338
+ * JSPB instance for transitional soy proto support:
1339
+ * http://goto/soy-param-migration
1340
+ * @return {!Object}
1341
+ */
1342
+ proto.ondewo.nlu.UpdateContextRequest.prototype.toObject = function(opt_includeInstance) {
1343
+ return proto.ondewo.nlu.UpdateContextRequest.toObject(opt_includeInstance, this);
1344
+ };
1345
+
1346
+
1347
+ /**
1348
+ * Static version of the {@see toObject} method.
1349
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1350
+ * the JSPB instance for transitional soy proto support:
1351
+ * http://goto/soy-param-migration
1352
+ * @param {!proto.ondewo.nlu.UpdateContextRequest} msg The msg instance to transform.
1353
+ * @return {!Object}
1354
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1355
+ */
1356
+ proto.ondewo.nlu.UpdateContextRequest.toObject = function(includeInstance, msg) {
1357
+ var f, obj = {
1358
+ context: (f = msg.getContext()) && proto.ondewo.nlu.Context.toObject(includeInstance, f),
1359
+ updateMask: (f = msg.getUpdateMask()) && google_protobuf_field_mask_pb.FieldMask.toObject(includeInstance, f)
1360
+ };
1361
+
1362
+ if (includeInstance) {
1363
+ obj.$jspbMessageInstance = msg;
1364
+ }
1365
+ return obj;
1366
+ };
1367
+ }
1368
+
1369
+
1370
+ /**
1371
+ * Deserializes binary data (in protobuf wire format).
1372
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1373
+ * @return {!proto.ondewo.nlu.UpdateContextRequest}
1374
+ */
1375
+ proto.ondewo.nlu.UpdateContextRequest.deserializeBinary = function(bytes) {
1376
+ var reader = new jspb.BinaryReader(bytes);
1377
+ var msg = new proto.ondewo.nlu.UpdateContextRequest;
1378
+ return proto.ondewo.nlu.UpdateContextRequest.deserializeBinaryFromReader(msg, reader);
1379
+ };
1380
+
1381
+
1382
+ /**
1383
+ * Deserializes binary data (in protobuf wire format) from the
1384
+ * given reader into the given message object.
1385
+ * @param {!proto.ondewo.nlu.UpdateContextRequest} msg The message object to deserialize into.
1386
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1387
+ * @return {!proto.ondewo.nlu.UpdateContextRequest}
1388
+ */
1389
+ proto.ondewo.nlu.UpdateContextRequest.deserializeBinaryFromReader = function(msg, reader) {
1390
+ while (reader.nextField()) {
1391
+ if (reader.isEndGroup()) {
1392
+ break;
1393
+ }
1394
+ var field = reader.getFieldNumber();
1395
+ switch (field) {
1396
+ case 1:
1397
+ var value = new proto.ondewo.nlu.Context;
1398
+ reader.readMessage(value,proto.ondewo.nlu.Context.deserializeBinaryFromReader);
1399
+ msg.setContext(value);
1400
+ break;
1401
+ case 2:
1402
+ var value = new google_protobuf_field_mask_pb.FieldMask;
1403
+ reader.readMessage(value,google_protobuf_field_mask_pb.FieldMask.deserializeBinaryFromReader);
1404
+ msg.setUpdateMask(value);
1405
+ break;
1406
+ default:
1407
+ reader.skipField();
1408
+ break;
1409
+ }
1410
+ }
1411
+ return msg;
1412
+ };
1413
+
1414
+
1415
+ /**
1416
+ * Serializes the message to binary data (in protobuf wire format).
1417
+ * @return {!Uint8Array}
1418
+ */
1419
+ proto.ondewo.nlu.UpdateContextRequest.prototype.serializeBinary = function() {
1420
+ var writer = new jspb.BinaryWriter();
1421
+ proto.ondewo.nlu.UpdateContextRequest.serializeBinaryToWriter(this, writer);
1422
+ return writer.getResultBuffer();
1423
+ };
1424
+
1425
+
1426
+ /**
1427
+ * Serializes the given message to binary data (in protobuf wire
1428
+ * format), writing to the given BinaryWriter.
1429
+ * @param {!proto.ondewo.nlu.UpdateContextRequest} message
1430
+ * @param {!jspb.BinaryWriter} writer
1431
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1432
+ */
1433
+ proto.ondewo.nlu.UpdateContextRequest.serializeBinaryToWriter = function(message, writer) {
1434
+ var f = undefined;
1435
+ f = message.getContext();
1436
+ if (f != null) {
1437
+ writer.writeMessage(
1438
+ 1,
1439
+ f,
1440
+ proto.ondewo.nlu.Context.serializeBinaryToWriter
1441
+ );
1442
+ }
1443
+ f = message.getUpdateMask();
1444
+ if (f != null) {
1445
+ writer.writeMessage(
1446
+ 2,
1447
+ f,
1448
+ google_protobuf_field_mask_pb.FieldMask.serializeBinaryToWriter
1449
+ );
1450
+ }
1451
+ };
1452
+
1453
+
1454
+ /**
1455
+ * optional Context context = 1;
1456
+ * @return {?proto.ondewo.nlu.Context}
1457
+ */
1458
+ proto.ondewo.nlu.UpdateContextRequest.prototype.getContext = function() {
1459
+ return /** @type{?proto.ondewo.nlu.Context} */ (
1460
+ jspb.Message.getWrapperField(this, proto.ondewo.nlu.Context, 1));
1461
+ };
1462
+
1463
+
1464
+ /**
1465
+ * @param {?proto.ondewo.nlu.Context|undefined} value
1466
+ * @return {!proto.ondewo.nlu.UpdateContextRequest} returns this
1467
+ */
1468
+ proto.ondewo.nlu.UpdateContextRequest.prototype.setContext = function(value) {
1469
+ return jspb.Message.setWrapperField(this, 1, value);
1470
+ };
1471
+
1472
+
1473
+ /**
1474
+ * Clears the message field making it undefined.
1475
+ * @return {!proto.ondewo.nlu.UpdateContextRequest} returns this
1476
+ */
1477
+ proto.ondewo.nlu.UpdateContextRequest.prototype.clearContext = function() {
1478
+ return this.setContext(undefined);
1479
+ };
1480
+
1481
+
1482
+ /**
1483
+ * Returns whether this field is set.
1484
+ * @return {boolean}
1485
+ */
1486
+ proto.ondewo.nlu.UpdateContextRequest.prototype.hasContext = function() {
1487
+ return jspb.Message.getField(this, 1) != null;
1488
+ };
1489
+
1490
+
1491
+ /**
1492
+ * optional google.protobuf.FieldMask update_mask = 2;
1493
+ * @return {?proto.google.protobuf.FieldMask}
1494
+ */
1495
+ proto.ondewo.nlu.UpdateContextRequest.prototype.getUpdateMask = function() {
1496
+ return /** @type{?proto.google.protobuf.FieldMask} */ (
1497
+ jspb.Message.getWrapperField(this, google_protobuf_field_mask_pb.FieldMask, 2));
1498
+ };
1499
+
1500
+
1501
+ /**
1502
+ * @param {?proto.google.protobuf.FieldMask|undefined} value
1503
+ * @return {!proto.ondewo.nlu.UpdateContextRequest} returns this
1504
+ */
1505
+ proto.ondewo.nlu.UpdateContextRequest.prototype.setUpdateMask = function(value) {
1506
+ return jspb.Message.setWrapperField(this, 2, value);
1507
+ };
1508
+
1509
+
1510
+ /**
1511
+ * Clears the message field making it undefined.
1512
+ * @return {!proto.ondewo.nlu.UpdateContextRequest} returns this
1513
+ */
1514
+ proto.ondewo.nlu.UpdateContextRequest.prototype.clearUpdateMask = function() {
1515
+ return this.setUpdateMask(undefined);
1516
+ };
1517
+
1518
+
1519
+ /**
1520
+ * Returns whether this field is set.
1521
+ * @return {boolean}
1522
+ */
1523
+ proto.ondewo.nlu.UpdateContextRequest.prototype.hasUpdateMask = function() {
1524
+ return jspb.Message.getField(this, 2) != null;
1525
+ };
1526
+
1527
+
1528
+
1529
+
1530
+
1531
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1532
+ /**
1533
+ * Creates an object representation of this proto.
1534
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1535
+ * Optional fields that are not set will be set to undefined.
1536
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1537
+ * For the list of reserved names please see:
1538
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1539
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1540
+ * JSPB instance for transitional soy proto support:
1541
+ * http://goto/soy-param-migration
1542
+ * @return {!Object}
1543
+ */
1544
+ proto.ondewo.nlu.DeleteContextRequest.prototype.toObject = function(opt_includeInstance) {
1545
+ return proto.ondewo.nlu.DeleteContextRequest.toObject(opt_includeInstance, this);
1546
+ };
1547
+
1548
+
1549
+ /**
1550
+ * Static version of the {@see toObject} method.
1551
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1552
+ * the JSPB instance for transitional soy proto support:
1553
+ * http://goto/soy-param-migration
1554
+ * @param {!proto.ondewo.nlu.DeleteContextRequest} msg The msg instance to transform.
1555
+ * @return {!Object}
1556
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1557
+ */
1558
+ proto.ondewo.nlu.DeleteContextRequest.toObject = function(includeInstance, msg) {
1559
+ var f, obj = {
1560
+ name: jspb.Message.getFieldWithDefault(msg, 1, "")
1561
+ };
1562
+
1563
+ if (includeInstance) {
1564
+ obj.$jspbMessageInstance = msg;
1565
+ }
1566
+ return obj;
1567
+ };
1568
+ }
1569
+
1570
+
1571
+ /**
1572
+ * Deserializes binary data (in protobuf wire format).
1573
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1574
+ * @return {!proto.ondewo.nlu.DeleteContextRequest}
1575
+ */
1576
+ proto.ondewo.nlu.DeleteContextRequest.deserializeBinary = function(bytes) {
1577
+ var reader = new jspb.BinaryReader(bytes);
1578
+ var msg = new proto.ondewo.nlu.DeleteContextRequest;
1579
+ return proto.ondewo.nlu.DeleteContextRequest.deserializeBinaryFromReader(msg, reader);
1580
+ };
1581
+
1582
+
1583
+ /**
1584
+ * Deserializes binary data (in protobuf wire format) from the
1585
+ * given reader into the given message object.
1586
+ * @param {!proto.ondewo.nlu.DeleteContextRequest} msg The message object to deserialize into.
1587
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1588
+ * @return {!proto.ondewo.nlu.DeleteContextRequest}
1589
+ */
1590
+ proto.ondewo.nlu.DeleteContextRequest.deserializeBinaryFromReader = function(msg, reader) {
1591
+ while (reader.nextField()) {
1592
+ if (reader.isEndGroup()) {
1593
+ break;
1594
+ }
1595
+ var field = reader.getFieldNumber();
1596
+ switch (field) {
1597
+ case 1:
1598
+ var value = /** @type {string} */ (reader.readString());
1599
+ msg.setName(value);
1600
+ break;
1601
+ default:
1602
+ reader.skipField();
1603
+ break;
1604
+ }
1605
+ }
1606
+ return msg;
1607
+ };
1608
+
1609
+
1610
+ /**
1611
+ * Serializes the message to binary data (in protobuf wire format).
1612
+ * @return {!Uint8Array}
1613
+ */
1614
+ proto.ondewo.nlu.DeleteContextRequest.prototype.serializeBinary = function() {
1615
+ var writer = new jspb.BinaryWriter();
1616
+ proto.ondewo.nlu.DeleteContextRequest.serializeBinaryToWriter(this, writer);
1617
+ return writer.getResultBuffer();
1618
+ };
1619
+
1620
+
1621
+ /**
1622
+ * Serializes the given message to binary data (in protobuf wire
1623
+ * format), writing to the given BinaryWriter.
1624
+ * @param {!proto.ondewo.nlu.DeleteContextRequest} message
1625
+ * @param {!jspb.BinaryWriter} writer
1626
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1627
+ */
1628
+ proto.ondewo.nlu.DeleteContextRequest.serializeBinaryToWriter = function(message, writer) {
1629
+ var f = undefined;
1630
+ f = message.getName();
1631
+ if (f.length > 0) {
1632
+ writer.writeString(
1633
+ 1,
1634
+ f
1635
+ );
1636
+ }
1637
+ };
1638
+
1639
+
1640
+ /**
1641
+ * optional string name = 1;
1642
+ * @return {string}
1643
+ */
1644
+ proto.ondewo.nlu.DeleteContextRequest.prototype.getName = function() {
1645
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1646
+ };
1647
+
1648
+
1649
+ /**
1650
+ * @param {string} value
1651
+ * @return {!proto.ondewo.nlu.DeleteContextRequest} returns this
1652
+ */
1653
+ proto.ondewo.nlu.DeleteContextRequest.prototype.setName = function(value) {
1654
+ return jspb.Message.setProto3StringField(this, 1, value);
1655
+ };
1656
+
1657
+
1658
+
1659
+
1660
+
1661
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1662
+ /**
1663
+ * Creates an object representation of this proto.
1664
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1665
+ * Optional fields that are not set will be set to undefined.
1666
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1667
+ * For the list of reserved names please see:
1668
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1669
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1670
+ * JSPB instance for transitional soy proto support:
1671
+ * http://goto/soy-param-migration
1672
+ * @return {!Object}
1673
+ */
1674
+ proto.ondewo.nlu.DeleteAllContextsRequest.prototype.toObject = function(opt_includeInstance) {
1675
+ return proto.ondewo.nlu.DeleteAllContextsRequest.toObject(opt_includeInstance, this);
1676
+ };
1677
+
1678
+
1679
+ /**
1680
+ * Static version of the {@see toObject} method.
1681
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1682
+ * the JSPB instance for transitional soy proto support:
1683
+ * http://goto/soy-param-migration
1684
+ * @param {!proto.ondewo.nlu.DeleteAllContextsRequest} msg The msg instance to transform.
1685
+ * @return {!Object}
1686
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1687
+ */
1688
+ proto.ondewo.nlu.DeleteAllContextsRequest.toObject = function(includeInstance, msg) {
1689
+ var f, obj = {
1690
+ parent: jspb.Message.getFieldWithDefault(msg, 1, "")
1691
+ };
1692
+
1693
+ if (includeInstance) {
1694
+ obj.$jspbMessageInstance = msg;
1695
+ }
1696
+ return obj;
1697
+ };
1698
+ }
1699
+
1700
+
1701
+ /**
1702
+ * Deserializes binary data (in protobuf wire format).
1703
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1704
+ * @return {!proto.ondewo.nlu.DeleteAllContextsRequest}
1705
+ */
1706
+ proto.ondewo.nlu.DeleteAllContextsRequest.deserializeBinary = function(bytes) {
1707
+ var reader = new jspb.BinaryReader(bytes);
1708
+ var msg = new proto.ondewo.nlu.DeleteAllContextsRequest;
1709
+ return proto.ondewo.nlu.DeleteAllContextsRequest.deserializeBinaryFromReader(msg, reader);
1710
+ };
1711
+
1712
+
1713
+ /**
1714
+ * Deserializes binary data (in protobuf wire format) from the
1715
+ * given reader into the given message object.
1716
+ * @param {!proto.ondewo.nlu.DeleteAllContextsRequest} msg The message object to deserialize into.
1717
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1718
+ * @return {!proto.ondewo.nlu.DeleteAllContextsRequest}
1719
+ */
1720
+ proto.ondewo.nlu.DeleteAllContextsRequest.deserializeBinaryFromReader = function(msg, reader) {
1721
+ while (reader.nextField()) {
1722
+ if (reader.isEndGroup()) {
1723
+ break;
1724
+ }
1725
+ var field = reader.getFieldNumber();
1726
+ switch (field) {
1727
+ case 1:
1728
+ var value = /** @type {string} */ (reader.readString());
1729
+ msg.setParent(value);
1730
+ break;
1731
+ default:
1732
+ reader.skipField();
1733
+ break;
1734
+ }
1735
+ }
1736
+ return msg;
1737
+ };
1738
+
1739
+
1740
+ /**
1741
+ * Serializes the message to binary data (in protobuf wire format).
1742
+ * @return {!Uint8Array}
1743
+ */
1744
+ proto.ondewo.nlu.DeleteAllContextsRequest.prototype.serializeBinary = function() {
1745
+ var writer = new jspb.BinaryWriter();
1746
+ proto.ondewo.nlu.DeleteAllContextsRequest.serializeBinaryToWriter(this, writer);
1747
+ return writer.getResultBuffer();
1748
+ };
1749
+
1750
+
1751
+ /**
1752
+ * Serializes the given message to binary data (in protobuf wire
1753
+ * format), writing to the given BinaryWriter.
1754
+ * @param {!proto.ondewo.nlu.DeleteAllContextsRequest} message
1755
+ * @param {!jspb.BinaryWriter} writer
1756
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1757
+ */
1758
+ proto.ondewo.nlu.DeleteAllContextsRequest.serializeBinaryToWriter = function(message, writer) {
1759
+ var f = undefined;
1760
+ f = message.getParent();
1761
+ if (f.length > 0) {
1762
+ writer.writeString(
1763
+ 1,
1764
+ f
1765
+ );
1766
+ }
1767
+ };
1768
+
1769
+
1770
+ /**
1771
+ * optional string parent = 1;
1772
+ * @return {string}
1773
+ */
1774
+ proto.ondewo.nlu.DeleteAllContextsRequest.prototype.getParent = function() {
1775
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1776
+ };
1777
+
1778
+
1779
+ /**
1780
+ * @param {string} value
1781
+ * @return {!proto.ondewo.nlu.DeleteAllContextsRequest} returns this
1782
+ */
1783
+ proto.ondewo.nlu.DeleteAllContextsRequest.prototype.setParent = function(value) {
1784
+ return jspb.Message.setProto3StringField(this, 1, value);
1785
+ };
1786
+
1787
+
1788
+ goog.object.extend(exports, proto.ondewo.nlu);