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