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