@ondewo/nlu-client-typescript 4.7.0 → 4.8.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 +61 -0
- package/api/ondewo/nlu/agent_grpc_web_pb.js +308 -1
- package/api/ondewo/nlu/agent_pb.d.ts +222 -1
- package/api/ondewo/nlu/agent_pb.js +1814 -30
- package/api/ondewo/nlu/ccai_project_grpc_web_pb.d.ts +79 -0
- package/api/ondewo/nlu/ccai_project_grpc_web_pb.js +388 -0
- package/api/ondewo/nlu/ccai_project_pb.d.ts +582 -0
- package/api/ondewo/nlu/ccai_project_pb.js +4137 -0
- package/api/ondewo/nlu/common_pb.d.ts +456 -0
- package/api/ondewo/nlu/common_pb.js +3523 -4
- package/api/ondewo/nlu/context_grpc_web_pb.js +2 -0
- package/api/ondewo/nlu/context_pb.d.ts +41 -0
- package/api/ondewo/nlu/context_pb.js +328 -2
- package/api/ondewo/nlu/entity_type_grpc_web_pb.js +2 -0
- package/api/ondewo/nlu/entity_type_pb.d.ts +41 -0
- package/api/ondewo/nlu/entity_type_pb.js +328 -2
- package/api/ondewo/nlu/intent_pb.d.ts +120 -0
- package/api/ondewo/nlu/intent_pb.js +1058 -86
- package/api/ondewo/nlu/operation_metadata_pb.d.ts +21 -0
- package/api/ondewo/nlu/operation_metadata_pb.js +165 -2
- package/api/ondewo/nlu/project_role_grpc_web_pb.js +3 -1
- package/api/ondewo/nlu/project_role_pb.d.ts +22 -1
- package/api/ondewo/nlu/project_role_pb.js +167 -3
- package/api/ondewo/nlu/session_grpc_web_pb.d.ts +109 -0
- package/api/ondewo/nlu/session_grpc_web_pb.js +551 -0
- package/api/ondewo/nlu/session_pb.d.ts +624 -0
- package/api/ondewo/nlu/session_pb.js +10278 -5168
- package/api/ondewo/nlu/user_grpc_web_pb.d.ts +85 -0
- package/api/ondewo/nlu/user_grpc_web_pb.js +431 -0
- package/api/ondewo/nlu/user_pb.d.ts +284 -0
- package/api/ondewo/nlu/user_pb.js +3418 -1024
- package/api/ondewo/nlu/webhook_grpc_web_pb.d.ts +37 -0
- package/api/ondewo/nlu/webhook_grpc_web_pb.js +191 -2
- package/api/ondewo/nlu/webhook_pb.d.ts +188 -5
- package/api/ondewo/nlu/webhook_pb.js +1530 -34
- package/package.json +1 -1
- package/public-api.d.ts +27 -25
|
@@ -17,17 +17,31 @@ var global = (function() { return this || window || global || self || Function('
|
|
|
17
17
|
|
|
18
18
|
var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
|
|
19
19
|
goog.object.extend(proto, google_api_annotations_pb);
|
|
20
|
+
var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
|
|
21
|
+
goog.object.extend(proto, google_protobuf_struct_pb);
|
|
22
|
+
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
23
|
+
goog.object.extend(proto, google_protobuf_empty_pb);
|
|
24
|
+
var google_protobuf_field_mask_pb = require('google-protobuf/google/protobuf/field_mask_pb.js');
|
|
25
|
+
goog.object.extend(proto, google_protobuf_field_mask_pb);
|
|
26
|
+
var ondewo_nlu_entity_type_pb = require('../../ondewo/nlu/entity_type_pb.js');
|
|
27
|
+
goog.object.extend(proto, ondewo_nlu_entity_type_pb);
|
|
20
28
|
var ondewo_nlu_context_pb = require('../../ondewo/nlu/context_pb.js');
|
|
21
29
|
goog.object.extend(proto, ondewo_nlu_context_pb);
|
|
22
30
|
var ondewo_nlu_intent_pb = require('../../ondewo/nlu/intent_pb.js');
|
|
23
31
|
goog.object.extend(proto, ondewo_nlu_intent_pb);
|
|
24
32
|
var ondewo_nlu_session_pb = require('../../ondewo/nlu/session_pb.js');
|
|
25
33
|
goog.object.extend(proto, ondewo_nlu_session_pb);
|
|
26
|
-
|
|
27
|
-
goog.
|
|
34
|
+
goog.exportSymbol('proto.ondewo.nlu.CreateSessionEntityTypeRequest', null, global);
|
|
35
|
+
goog.exportSymbol('proto.ondewo.nlu.DeleteSessionEntityTypeRequest', null, global);
|
|
36
|
+
goog.exportSymbol('proto.ondewo.nlu.GetSessionEntityTypeRequest', null, global);
|
|
37
|
+
goog.exportSymbol('proto.ondewo.nlu.ListSessionEntityTypesRequest', null, global);
|
|
38
|
+
goog.exportSymbol('proto.ondewo.nlu.ListSessionEntityTypesResponse', null, global);
|
|
28
39
|
goog.exportSymbol('proto.ondewo.nlu.OriginalDetectIntentRequest', null, global);
|
|
29
40
|
goog.exportSymbol('proto.ondewo.nlu.PingRequest', null, global);
|
|
30
41
|
goog.exportSymbol('proto.ondewo.nlu.PingResponse', null, global);
|
|
42
|
+
goog.exportSymbol('proto.ondewo.nlu.SessionEntityType', null, global);
|
|
43
|
+
goog.exportSymbol('proto.ondewo.nlu.SessionEntityType.EntityOverrideMode', null, global);
|
|
44
|
+
goog.exportSymbol('proto.ondewo.nlu.UpdateSessionEntityTypeRequest', null, global);
|
|
31
45
|
goog.exportSymbol('proto.ondewo.nlu.WebhookRequest', null, global);
|
|
32
46
|
goog.exportSymbol('proto.ondewo.nlu.WebhookResponse', null, global);
|
|
33
47
|
/**
|
|
@@ -135,6 +149,153 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
135
149
|
*/
|
|
136
150
|
proto.ondewo.nlu.PingResponse.displayName = 'proto.ondewo.nlu.PingResponse';
|
|
137
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* Generated by JsPbCodeGenerator.
|
|
154
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
155
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
156
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
157
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
158
|
+
* valid.
|
|
159
|
+
* @extends {jspb.Message}
|
|
160
|
+
* @constructor
|
|
161
|
+
*/
|
|
162
|
+
proto.ondewo.nlu.SessionEntityType = function(opt_data) {
|
|
163
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.SessionEntityType.repeatedFields_, null);
|
|
164
|
+
};
|
|
165
|
+
goog.inherits(proto.ondewo.nlu.SessionEntityType, jspb.Message);
|
|
166
|
+
if (goog.DEBUG && !COMPILED) {
|
|
167
|
+
/**
|
|
168
|
+
* @public
|
|
169
|
+
* @override
|
|
170
|
+
*/
|
|
171
|
+
proto.ondewo.nlu.SessionEntityType.displayName = 'proto.ondewo.nlu.SessionEntityType';
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Generated by JsPbCodeGenerator.
|
|
175
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
176
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
177
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
178
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
179
|
+
* valid.
|
|
180
|
+
* @extends {jspb.Message}
|
|
181
|
+
* @constructor
|
|
182
|
+
*/
|
|
183
|
+
proto.ondewo.nlu.ListSessionEntityTypesRequest = function(opt_data) {
|
|
184
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
185
|
+
};
|
|
186
|
+
goog.inherits(proto.ondewo.nlu.ListSessionEntityTypesRequest, jspb.Message);
|
|
187
|
+
if (goog.DEBUG && !COMPILED) {
|
|
188
|
+
/**
|
|
189
|
+
* @public
|
|
190
|
+
* @override
|
|
191
|
+
*/
|
|
192
|
+
proto.ondewo.nlu.ListSessionEntityTypesRequest.displayName = 'proto.ondewo.nlu.ListSessionEntityTypesRequest';
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Generated by JsPbCodeGenerator.
|
|
196
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
197
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
198
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
199
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
200
|
+
* valid.
|
|
201
|
+
* @extends {jspb.Message}
|
|
202
|
+
* @constructor
|
|
203
|
+
*/
|
|
204
|
+
proto.ondewo.nlu.ListSessionEntityTypesResponse = function(opt_data) {
|
|
205
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.ListSessionEntityTypesResponse.repeatedFields_, null);
|
|
206
|
+
};
|
|
207
|
+
goog.inherits(proto.ondewo.nlu.ListSessionEntityTypesResponse, jspb.Message);
|
|
208
|
+
if (goog.DEBUG && !COMPILED) {
|
|
209
|
+
/**
|
|
210
|
+
* @public
|
|
211
|
+
* @override
|
|
212
|
+
*/
|
|
213
|
+
proto.ondewo.nlu.ListSessionEntityTypesResponse.displayName = 'proto.ondewo.nlu.ListSessionEntityTypesResponse';
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Generated by JsPbCodeGenerator.
|
|
217
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
218
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
219
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
220
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
221
|
+
* valid.
|
|
222
|
+
* @extends {jspb.Message}
|
|
223
|
+
* @constructor
|
|
224
|
+
*/
|
|
225
|
+
proto.ondewo.nlu.GetSessionEntityTypeRequest = function(opt_data) {
|
|
226
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
227
|
+
};
|
|
228
|
+
goog.inherits(proto.ondewo.nlu.GetSessionEntityTypeRequest, jspb.Message);
|
|
229
|
+
if (goog.DEBUG && !COMPILED) {
|
|
230
|
+
/**
|
|
231
|
+
* @public
|
|
232
|
+
* @override
|
|
233
|
+
*/
|
|
234
|
+
proto.ondewo.nlu.GetSessionEntityTypeRequest.displayName = 'proto.ondewo.nlu.GetSessionEntityTypeRequest';
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Generated by JsPbCodeGenerator.
|
|
238
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
239
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
240
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
241
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
242
|
+
* valid.
|
|
243
|
+
* @extends {jspb.Message}
|
|
244
|
+
* @constructor
|
|
245
|
+
*/
|
|
246
|
+
proto.ondewo.nlu.CreateSessionEntityTypeRequest = function(opt_data) {
|
|
247
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
248
|
+
};
|
|
249
|
+
goog.inherits(proto.ondewo.nlu.CreateSessionEntityTypeRequest, jspb.Message);
|
|
250
|
+
if (goog.DEBUG && !COMPILED) {
|
|
251
|
+
/**
|
|
252
|
+
* @public
|
|
253
|
+
* @override
|
|
254
|
+
*/
|
|
255
|
+
proto.ondewo.nlu.CreateSessionEntityTypeRequest.displayName = 'proto.ondewo.nlu.CreateSessionEntityTypeRequest';
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Generated by JsPbCodeGenerator.
|
|
259
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
260
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
261
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
262
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
263
|
+
* valid.
|
|
264
|
+
* @extends {jspb.Message}
|
|
265
|
+
* @constructor
|
|
266
|
+
*/
|
|
267
|
+
proto.ondewo.nlu.UpdateSessionEntityTypeRequest = function(opt_data) {
|
|
268
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
269
|
+
};
|
|
270
|
+
goog.inherits(proto.ondewo.nlu.UpdateSessionEntityTypeRequest, jspb.Message);
|
|
271
|
+
if (goog.DEBUG && !COMPILED) {
|
|
272
|
+
/**
|
|
273
|
+
* @public
|
|
274
|
+
* @override
|
|
275
|
+
*/
|
|
276
|
+
proto.ondewo.nlu.UpdateSessionEntityTypeRequest.displayName = 'proto.ondewo.nlu.UpdateSessionEntityTypeRequest';
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Generated by JsPbCodeGenerator.
|
|
280
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
281
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
282
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
283
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
284
|
+
* valid.
|
|
285
|
+
* @extends {jspb.Message}
|
|
286
|
+
* @constructor
|
|
287
|
+
*/
|
|
288
|
+
proto.ondewo.nlu.DeleteSessionEntityTypeRequest = function(opt_data) {
|
|
289
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
290
|
+
};
|
|
291
|
+
goog.inherits(proto.ondewo.nlu.DeleteSessionEntityTypeRequest, jspb.Message);
|
|
292
|
+
if (goog.DEBUG && !COMPILED) {
|
|
293
|
+
/**
|
|
294
|
+
* @public
|
|
295
|
+
* @override
|
|
296
|
+
*/
|
|
297
|
+
proto.ondewo.nlu.DeleteSessionEntityTypeRequest.displayName = 'proto.ondewo.nlu.DeleteSessionEntityTypeRequest';
|
|
298
|
+
}
|
|
138
299
|
|
|
139
300
|
|
|
140
301
|
|
|
@@ -297,10 +458,10 @@ proto.ondewo.nlu.WebhookRequest.prototype.toObject = function(opt_includeInstanc
|
|
|
297
458
|
*/
|
|
298
459
|
proto.ondewo.nlu.WebhookRequest.toObject = function(includeInstance, msg) {
|
|
299
460
|
var f, obj = {
|
|
300
|
-
session: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
301
461
|
responseId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
302
462
|
queryResult: (f = msg.getQueryResult()) && ondewo_nlu_session_pb.QueryResult.toObject(includeInstance, f),
|
|
303
463
|
originalDetectIntentRequest: (f = msg.getOriginalDetectIntentRequest()) && proto.ondewo.nlu.OriginalDetectIntentRequest.toObject(includeInstance, f),
|
|
464
|
+
session: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
304
465
|
headers: (f = msg.getHeaders()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
305
466
|
};
|
|
306
467
|
|
|
@@ -338,10 +499,6 @@ proto.ondewo.nlu.WebhookRequest.deserializeBinaryFromReader = function(msg, read
|
|
|
338
499
|
}
|
|
339
500
|
var field = reader.getFieldNumber();
|
|
340
501
|
switch (field) {
|
|
341
|
-
case 4:
|
|
342
|
-
var value = /** @type {string} */ (reader.readString());
|
|
343
|
-
msg.setSession(value);
|
|
344
|
-
break;
|
|
345
502
|
case 1:
|
|
346
503
|
var value = /** @type {string} */ (reader.readString());
|
|
347
504
|
msg.setResponseId(value);
|
|
@@ -356,6 +513,10 @@ proto.ondewo.nlu.WebhookRequest.deserializeBinaryFromReader = function(msg, read
|
|
|
356
513
|
reader.readMessage(value,proto.ondewo.nlu.OriginalDetectIntentRequest.deserializeBinaryFromReader);
|
|
357
514
|
msg.setOriginalDetectIntentRequest(value);
|
|
358
515
|
break;
|
|
516
|
+
case 4:
|
|
517
|
+
var value = /** @type {string} */ (reader.readString());
|
|
518
|
+
msg.setSession(value);
|
|
519
|
+
break;
|
|
359
520
|
case 5:
|
|
360
521
|
var value = new google_protobuf_struct_pb.Struct;
|
|
361
522
|
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
@@ -390,13 +551,6 @@ proto.ondewo.nlu.WebhookRequest.prototype.serializeBinary = function() {
|
|
|
390
551
|
*/
|
|
391
552
|
proto.ondewo.nlu.WebhookRequest.serializeBinaryToWriter = function(message, writer) {
|
|
392
553
|
var f = undefined;
|
|
393
|
-
f = message.getSession();
|
|
394
|
-
if (f.length > 0) {
|
|
395
|
-
writer.writeString(
|
|
396
|
-
4,
|
|
397
|
-
f
|
|
398
|
-
);
|
|
399
|
-
}
|
|
400
554
|
f = message.getResponseId();
|
|
401
555
|
if (f.length > 0) {
|
|
402
556
|
writer.writeString(
|
|
@@ -420,6 +574,13 @@ proto.ondewo.nlu.WebhookRequest.serializeBinaryToWriter = function(message, writ
|
|
|
420
574
|
proto.ondewo.nlu.OriginalDetectIntentRequest.serializeBinaryToWriter
|
|
421
575
|
);
|
|
422
576
|
}
|
|
577
|
+
f = message.getSession();
|
|
578
|
+
if (f.length > 0) {
|
|
579
|
+
writer.writeString(
|
|
580
|
+
4,
|
|
581
|
+
f
|
|
582
|
+
);
|
|
583
|
+
}
|
|
423
584
|
f = message.getHeaders();
|
|
424
585
|
if (f != null) {
|
|
425
586
|
writer.writeMessage(
|
|
@@ -431,24 +592,6 @@ proto.ondewo.nlu.WebhookRequest.serializeBinaryToWriter = function(message, writ
|
|
|
431
592
|
};
|
|
432
593
|
|
|
433
594
|
|
|
434
|
-
/**
|
|
435
|
-
* optional string session = 4;
|
|
436
|
-
* @return {string}
|
|
437
|
-
*/
|
|
438
|
-
proto.ondewo.nlu.WebhookRequest.prototype.getSession = function() {
|
|
439
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
440
|
-
};
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
/**
|
|
444
|
-
* @param {string} value
|
|
445
|
-
* @return {!proto.ondewo.nlu.WebhookRequest} returns this
|
|
446
|
-
*/
|
|
447
|
-
proto.ondewo.nlu.WebhookRequest.prototype.setSession = function(value) {
|
|
448
|
-
return jspb.Message.setProto3StringField(this, 4, value);
|
|
449
|
-
};
|
|
450
|
-
|
|
451
|
-
|
|
452
595
|
/**
|
|
453
596
|
* optional string response_id = 1;
|
|
454
597
|
* @return {string}
|
|
@@ -541,6 +684,24 @@ proto.ondewo.nlu.WebhookRequest.prototype.hasOriginalDetectIntentRequest = funct
|
|
|
541
684
|
};
|
|
542
685
|
|
|
543
686
|
|
|
687
|
+
/**
|
|
688
|
+
* optional string session = 4;
|
|
689
|
+
* @return {string}
|
|
690
|
+
*/
|
|
691
|
+
proto.ondewo.nlu.WebhookRequest.prototype.getSession = function() {
|
|
692
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
693
|
+
};
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* @param {string} value
|
|
698
|
+
* @return {!proto.ondewo.nlu.WebhookRequest} returns this
|
|
699
|
+
*/
|
|
700
|
+
proto.ondewo.nlu.WebhookRequest.prototype.setSession = function(value) {
|
|
701
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
702
|
+
};
|
|
703
|
+
|
|
704
|
+
|
|
544
705
|
/**
|
|
545
706
|
* optional google.protobuf.Struct headers = 5;
|
|
546
707
|
* @return {?proto.google.protobuf.Struct}
|
|
@@ -584,7 +745,7 @@ proto.ondewo.nlu.WebhookRequest.prototype.hasHeaders = function() {
|
|
|
584
745
|
* @private {!Array<number>}
|
|
585
746
|
* @const
|
|
586
747
|
*/
|
|
587
|
-
proto.ondewo.nlu.WebhookResponse.repeatedFields_ = [2,5];
|
|
748
|
+
proto.ondewo.nlu.WebhookResponse.repeatedFields_ = [2,5,10];
|
|
588
749
|
|
|
589
750
|
|
|
590
751
|
|
|
@@ -624,7 +785,9 @@ proto.ondewo.nlu.WebhookResponse.toObject = function(includeInstance, msg) {
|
|
|
624
785
|
payload: (f = msg.getPayload()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
|
|
625
786
|
outputContextsList: jspb.Message.toObjectList(msg.getOutputContextsList(),
|
|
626
787
|
ondewo_nlu_context_pb.Context.toObject, includeInstance),
|
|
627
|
-
followupEventInput: (f = msg.getFollowupEventInput()) && ondewo_nlu_session_pb.EventInput.toObject(includeInstance, f)
|
|
788
|
+
followupEventInput: (f = msg.getFollowupEventInput()) && ondewo_nlu_session_pb.EventInput.toObject(includeInstance, f),
|
|
789
|
+
sessionEntityTypesList: jspb.Message.toObjectList(msg.getSessionEntityTypesList(),
|
|
790
|
+
proto.ondewo.nlu.SessionEntityType.toObject, includeInstance)
|
|
628
791
|
};
|
|
629
792
|
|
|
630
793
|
if (includeInstance) {
|
|
@@ -689,6 +852,11 @@ proto.ondewo.nlu.WebhookResponse.deserializeBinaryFromReader = function(msg, rea
|
|
|
689
852
|
reader.readMessage(value,ondewo_nlu_session_pb.EventInput.deserializeBinaryFromReader);
|
|
690
853
|
msg.setFollowupEventInput(value);
|
|
691
854
|
break;
|
|
855
|
+
case 10:
|
|
856
|
+
var value = new proto.ondewo.nlu.SessionEntityType;
|
|
857
|
+
reader.readMessage(value,proto.ondewo.nlu.SessionEntityType.deserializeBinaryFromReader);
|
|
858
|
+
msg.addSessionEntityTypes(value);
|
|
859
|
+
break;
|
|
692
860
|
default:
|
|
693
861
|
reader.skipField();
|
|
694
862
|
break;
|
|
@@ -764,6 +932,14 @@ proto.ondewo.nlu.WebhookResponse.serializeBinaryToWriter = function(message, wri
|
|
|
764
932
|
ondewo_nlu_session_pb.EventInput.serializeBinaryToWriter
|
|
765
933
|
);
|
|
766
934
|
}
|
|
935
|
+
f = message.getSessionEntityTypesList();
|
|
936
|
+
if (f.length > 0) {
|
|
937
|
+
writer.writeRepeatedMessage(
|
|
938
|
+
10,
|
|
939
|
+
f,
|
|
940
|
+
proto.ondewo.nlu.SessionEntityType.serializeBinaryToWriter
|
|
941
|
+
);
|
|
942
|
+
}
|
|
767
943
|
};
|
|
768
944
|
|
|
769
945
|
|
|
@@ -953,6 +1129,44 @@ proto.ondewo.nlu.WebhookResponse.prototype.hasFollowupEventInput = function() {
|
|
|
953
1129
|
};
|
|
954
1130
|
|
|
955
1131
|
|
|
1132
|
+
/**
|
|
1133
|
+
* repeated SessionEntityType session_entity_types = 10;
|
|
1134
|
+
* @return {!Array<!proto.ondewo.nlu.SessionEntityType>}
|
|
1135
|
+
*/
|
|
1136
|
+
proto.ondewo.nlu.WebhookResponse.prototype.getSessionEntityTypesList = function() {
|
|
1137
|
+
return /** @type{!Array<!proto.ondewo.nlu.SessionEntityType>} */ (
|
|
1138
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ondewo.nlu.SessionEntityType, 10));
|
|
1139
|
+
};
|
|
1140
|
+
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* @param {!Array<!proto.ondewo.nlu.SessionEntityType>} value
|
|
1144
|
+
* @return {!proto.ondewo.nlu.WebhookResponse} returns this
|
|
1145
|
+
*/
|
|
1146
|
+
proto.ondewo.nlu.WebhookResponse.prototype.setSessionEntityTypesList = function(value) {
|
|
1147
|
+
return jspb.Message.setRepeatedWrapperField(this, 10, value);
|
|
1148
|
+
};
|
|
1149
|
+
|
|
1150
|
+
|
|
1151
|
+
/**
|
|
1152
|
+
* @param {!proto.ondewo.nlu.SessionEntityType=} opt_value
|
|
1153
|
+
* @param {number=} opt_index
|
|
1154
|
+
* @return {!proto.ondewo.nlu.SessionEntityType}
|
|
1155
|
+
*/
|
|
1156
|
+
proto.ondewo.nlu.WebhookResponse.prototype.addSessionEntityTypes = function(opt_value, opt_index) {
|
|
1157
|
+
return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.ondewo.nlu.SessionEntityType, opt_index);
|
|
1158
|
+
};
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
/**
|
|
1162
|
+
* Clears the list making it empty but non-null.
|
|
1163
|
+
* @return {!proto.ondewo.nlu.WebhookResponse} returns this
|
|
1164
|
+
*/
|
|
1165
|
+
proto.ondewo.nlu.WebhookResponse.prototype.clearSessionEntityTypesList = function() {
|
|
1166
|
+
return this.setSessionEntityTypesList([]);
|
|
1167
|
+
};
|
|
1168
|
+
|
|
1169
|
+
|
|
956
1170
|
|
|
957
1171
|
|
|
958
1172
|
|
|
@@ -1264,4 +1478,1286 @@ proto.ondewo.nlu.PingResponse.prototype.setIsReachable = function(value) {
|
|
|
1264
1478
|
};
|
|
1265
1479
|
|
|
1266
1480
|
|
|
1481
|
+
|
|
1482
|
+
/**
|
|
1483
|
+
* List of repeated fields within this message type.
|
|
1484
|
+
* @private {!Array<number>}
|
|
1485
|
+
* @const
|
|
1486
|
+
*/
|
|
1487
|
+
proto.ondewo.nlu.SessionEntityType.repeatedFields_ = [3];
|
|
1488
|
+
|
|
1489
|
+
|
|
1490
|
+
|
|
1491
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1492
|
+
/**
|
|
1493
|
+
* Creates an object representation of this proto.
|
|
1494
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1495
|
+
* Optional fields that are not set will be set to undefined.
|
|
1496
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1497
|
+
* For the list of reserved names please see:
|
|
1498
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1499
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1500
|
+
* JSPB instance for transitional soy proto support:
|
|
1501
|
+
* http://goto/soy-param-migration
|
|
1502
|
+
* @return {!Object}
|
|
1503
|
+
*/
|
|
1504
|
+
proto.ondewo.nlu.SessionEntityType.prototype.toObject = function(opt_includeInstance) {
|
|
1505
|
+
return proto.ondewo.nlu.SessionEntityType.toObject(opt_includeInstance, this);
|
|
1506
|
+
};
|
|
1507
|
+
|
|
1508
|
+
|
|
1509
|
+
/**
|
|
1510
|
+
* Static version of the {@see toObject} method.
|
|
1511
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1512
|
+
* the JSPB instance for transitional soy proto support:
|
|
1513
|
+
* http://goto/soy-param-migration
|
|
1514
|
+
* @param {!proto.ondewo.nlu.SessionEntityType} msg The msg instance to transform.
|
|
1515
|
+
* @return {!Object}
|
|
1516
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1517
|
+
*/
|
|
1518
|
+
proto.ondewo.nlu.SessionEntityType.toObject = function(includeInstance, msg) {
|
|
1519
|
+
var f, obj = {
|
|
1520
|
+
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1521
|
+
entityOverrideMode: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
1522
|
+
entitiesList: jspb.Message.toObjectList(msg.getEntitiesList(),
|
|
1523
|
+
ondewo_nlu_entity_type_pb.EntityType.Entity.toObject, includeInstance)
|
|
1524
|
+
};
|
|
1525
|
+
|
|
1526
|
+
if (includeInstance) {
|
|
1527
|
+
obj.$jspbMessageInstance = msg;
|
|
1528
|
+
}
|
|
1529
|
+
return obj;
|
|
1530
|
+
};
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
|
|
1534
|
+
/**
|
|
1535
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1536
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1537
|
+
* @return {!proto.ondewo.nlu.SessionEntityType}
|
|
1538
|
+
*/
|
|
1539
|
+
proto.ondewo.nlu.SessionEntityType.deserializeBinary = function(bytes) {
|
|
1540
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1541
|
+
var msg = new proto.ondewo.nlu.SessionEntityType;
|
|
1542
|
+
return proto.ondewo.nlu.SessionEntityType.deserializeBinaryFromReader(msg, reader);
|
|
1543
|
+
};
|
|
1544
|
+
|
|
1545
|
+
|
|
1546
|
+
/**
|
|
1547
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1548
|
+
* given reader into the given message object.
|
|
1549
|
+
* @param {!proto.ondewo.nlu.SessionEntityType} msg The message object to deserialize into.
|
|
1550
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1551
|
+
* @return {!proto.ondewo.nlu.SessionEntityType}
|
|
1552
|
+
*/
|
|
1553
|
+
proto.ondewo.nlu.SessionEntityType.deserializeBinaryFromReader = function(msg, reader) {
|
|
1554
|
+
while (reader.nextField()) {
|
|
1555
|
+
if (reader.isEndGroup()) {
|
|
1556
|
+
break;
|
|
1557
|
+
}
|
|
1558
|
+
var field = reader.getFieldNumber();
|
|
1559
|
+
switch (field) {
|
|
1560
|
+
case 1:
|
|
1561
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1562
|
+
msg.setName(value);
|
|
1563
|
+
break;
|
|
1564
|
+
case 2:
|
|
1565
|
+
var value = /** @type {!proto.ondewo.nlu.SessionEntityType.EntityOverrideMode} */ (reader.readEnum());
|
|
1566
|
+
msg.setEntityOverrideMode(value);
|
|
1567
|
+
break;
|
|
1568
|
+
case 3:
|
|
1569
|
+
var value = new ondewo_nlu_entity_type_pb.EntityType.Entity;
|
|
1570
|
+
reader.readMessage(value,ondewo_nlu_entity_type_pb.EntityType.Entity.deserializeBinaryFromReader);
|
|
1571
|
+
msg.addEntities(value);
|
|
1572
|
+
break;
|
|
1573
|
+
default:
|
|
1574
|
+
reader.skipField();
|
|
1575
|
+
break;
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
return msg;
|
|
1579
|
+
};
|
|
1580
|
+
|
|
1581
|
+
|
|
1582
|
+
/**
|
|
1583
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1584
|
+
* @return {!Uint8Array}
|
|
1585
|
+
*/
|
|
1586
|
+
proto.ondewo.nlu.SessionEntityType.prototype.serializeBinary = function() {
|
|
1587
|
+
var writer = new jspb.BinaryWriter();
|
|
1588
|
+
proto.ondewo.nlu.SessionEntityType.serializeBinaryToWriter(this, writer);
|
|
1589
|
+
return writer.getResultBuffer();
|
|
1590
|
+
};
|
|
1591
|
+
|
|
1592
|
+
|
|
1593
|
+
/**
|
|
1594
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1595
|
+
* format), writing to the given BinaryWriter.
|
|
1596
|
+
* @param {!proto.ondewo.nlu.SessionEntityType} message
|
|
1597
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1598
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1599
|
+
*/
|
|
1600
|
+
proto.ondewo.nlu.SessionEntityType.serializeBinaryToWriter = function(message, writer) {
|
|
1601
|
+
var f = undefined;
|
|
1602
|
+
f = message.getName();
|
|
1603
|
+
if (f.length > 0) {
|
|
1604
|
+
writer.writeString(
|
|
1605
|
+
1,
|
|
1606
|
+
f
|
|
1607
|
+
);
|
|
1608
|
+
}
|
|
1609
|
+
f = message.getEntityOverrideMode();
|
|
1610
|
+
if (f !== 0.0) {
|
|
1611
|
+
writer.writeEnum(
|
|
1612
|
+
2,
|
|
1613
|
+
f
|
|
1614
|
+
);
|
|
1615
|
+
}
|
|
1616
|
+
f = message.getEntitiesList();
|
|
1617
|
+
if (f.length > 0) {
|
|
1618
|
+
writer.writeRepeatedMessage(
|
|
1619
|
+
3,
|
|
1620
|
+
f,
|
|
1621
|
+
ondewo_nlu_entity_type_pb.EntityType.Entity.serializeBinaryToWriter
|
|
1622
|
+
);
|
|
1623
|
+
}
|
|
1624
|
+
};
|
|
1625
|
+
|
|
1626
|
+
|
|
1627
|
+
/**
|
|
1628
|
+
* @enum {number}
|
|
1629
|
+
*/
|
|
1630
|
+
proto.ondewo.nlu.SessionEntityType.EntityOverrideMode = {
|
|
1631
|
+
ENTITY_OVERRIDE_MODE_UNSPECIFIED: 0,
|
|
1632
|
+
ENTITY_OVERRIDE_MODE_OVERRIDE: 1,
|
|
1633
|
+
ENTITY_OVERRIDE_MODE_SUPPLEMENT: 2
|
|
1634
|
+
};
|
|
1635
|
+
|
|
1636
|
+
/**
|
|
1637
|
+
* optional string name = 1;
|
|
1638
|
+
* @return {string}
|
|
1639
|
+
*/
|
|
1640
|
+
proto.ondewo.nlu.SessionEntityType.prototype.getName = function() {
|
|
1641
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1642
|
+
};
|
|
1643
|
+
|
|
1644
|
+
|
|
1645
|
+
/**
|
|
1646
|
+
* @param {string} value
|
|
1647
|
+
* @return {!proto.ondewo.nlu.SessionEntityType} returns this
|
|
1648
|
+
*/
|
|
1649
|
+
proto.ondewo.nlu.SessionEntityType.prototype.setName = function(value) {
|
|
1650
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1651
|
+
};
|
|
1652
|
+
|
|
1653
|
+
|
|
1654
|
+
/**
|
|
1655
|
+
* optional EntityOverrideMode entity_override_mode = 2;
|
|
1656
|
+
* @return {!proto.ondewo.nlu.SessionEntityType.EntityOverrideMode}
|
|
1657
|
+
*/
|
|
1658
|
+
proto.ondewo.nlu.SessionEntityType.prototype.getEntityOverrideMode = function() {
|
|
1659
|
+
return /** @type {!proto.ondewo.nlu.SessionEntityType.EntityOverrideMode} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1660
|
+
};
|
|
1661
|
+
|
|
1662
|
+
|
|
1663
|
+
/**
|
|
1664
|
+
* @param {!proto.ondewo.nlu.SessionEntityType.EntityOverrideMode} value
|
|
1665
|
+
* @return {!proto.ondewo.nlu.SessionEntityType} returns this
|
|
1666
|
+
*/
|
|
1667
|
+
proto.ondewo.nlu.SessionEntityType.prototype.setEntityOverrideMode = function(value) {
|
|
1668
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
1669
|
+
};
|
|
1670
|
+
|
|
1671
|
+
|
|
1672
|
+
/**
|
|
1673
|
+
* repeated EntityType.Entity entities = 3;
|
|
1674
|
+
* @return {!Array<!proto.ondewo.nlu.EntityType.Entity>}
|
|
1675
|
+
*/
|
|
1676
|
+
proto.ondewo.nlu.SessionEntityType.prototype.getEntitiesList = function() {
|
|
1677
|
+
return /** @type{!Array<!proto.ondewo.nlu.EntityType.Entity>} */ (
|
|
1678
|
+
jspb.Message.getRepeatedWrapperField(this, ondewo_nlu_entity_type_pb.EntityType.Entity, 3));
|
|
1679
|
+
};
|
|
1680
|
+
|
|
1681
|
+
|
|
1682
|
+
/**
|
|
1683
|
+
* @param {!Array<!proto.ondewo.nlu.EntityType.Entity>} value
|
|
1684
|
+
* @return {!proto.ondewo.nlu.SessionEntityType} returns this
|
|
1685
|
+
*/
|
|
1686
|
+
proto.ondewo.nlu.SessionEntityType.prototype.setEntitiesList = function(value) {
|
|
1687
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
1688
|
+
};
|
|
1689
|
+
|
|
1690
|
+
|
|
1691
|
+
/**
|
|
1692
|
+
* @param {!proto.ondewo.nlu.EntityType.Entity=} opt_value
|
|
1693
|
+
* @param {number=} opt_index
|
|
1694
|
+
* @return {!proto.ondewo.nlu.EntityType.Entity}
|
|
1695
|
+
*/
|
|
1696
|
+
proto.ondewo.nlu.SessionEntityType.prototype.addEntities = function(opt_value, opt_index) {
|
|
1697
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.ondewo.nlu.EntityType.Entity, opt_index);
|
|
1698
|
+
};
|
|
1699
|
+
|
|
1700
|
+
|
|
1701
|
+
/**
|
|
1702
|
+
* Clears the list making it empty but non-null.
|
|
1703
|
+
* @return {!proto.ondewo.nlu.SessionEntityType} returns this
|
|
1704
|
+
*/
|
|
1705
|
+
proto.ondewo.nlu.SessionEntityType.prototype.clearEntitiesList = function() {
|
|
1706
|
+
return this.setEntitiesList([]);
|
|
1707
|
+
};
|
|
1708
|
+
|
|
1709
|
+
|
|
1710
|
+
|
|
1711
|
+
|
|
1712
|
+
|
|
1713
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1714
|
+
/**
|
|
1715
|
+
* Creates an object representation of this proto.
|
|
1716
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1717
|
+
* Optional fields that are not set will be set to undefined.
|
|
1718
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1719
|
+
* For the list of reserved names please see:
|
|
1720
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1721
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1722
|
+
* JSPB instance for transitional soy proto support:
|
|
1723
|
+
* http://goto/soy-param-migration
|
|
1724
|
+
* @return {!Object}
|
|
1725
|
+
*/
|
|
1726
|
+
proto.ondewo.nlu.ListSessionEntityTypesRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1727
|
+
return proto.ondewo.nlu.ListSessionEntityTypesRequest.toObject(opt_includeInstance, this);
|
|
1728
|
+
};
|
|
1729
|
+
|
|
1730
|
+
|
|
1731
|
+
/**
|
|
1732
|
+
* Static version of the {@see toObject} method.
|
|
1733
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1734
|
+
* the JSPB instance for transitional soy proto support:
|
|
1735
|
+
* http://goto/soy-param-migration
|
|
1736
|
+
* @param {!proto.ondewo.nlu.ListSessionEntityTypesRequest} msg The msg instance to transform.
|
|
1737
|
+
* @return {!Object}
|
|
1738
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1739
|
+
*/
|
|
1740
|
+
proto.ondewo.nlu.ListSessionEntityTypesRequest.toObject = function(includeInstance, msg) {
|
|
1741
|
+
var f, obj = {
|
|
1742
|
+
parent: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1743
|
+
pageSize: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
1744
|
+
pageToken: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
1745
|
+
};
|
|
1746
|
+
|
|
1747
|
+
if (includeInstance) {
|
|
1748
|
+
obj.$jspbMessageInstance = msg;
|
|
1749
|
+
}
|
|
1750
|
+
return obj;
|
|
1751
|
+
};
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
|
|
1755
|
+
/**
|
|
1756
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1757
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1758
|
+
* @return {!proto.ondewo.nlu.ListSessionEntityTypesRequest}
|
|
1759
|
+
*/
|
|
1760
|
+
proto.ondewo.nlu.ListSessionEntityTypesRequest.deserializeBinary = function(bytes) {
|
|
1761
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1762
|
+
var msg = new proto.ondewo.nlu.ListSessionEntityTypesRequest;
|
|
1763
|
+
return proto.ondewo.nlu.ListSessionEntityTypesRequest.deserializeBinaryFromReader(msg, reader);
|
|
1764
|
+
};
|
|
1765
|
+
|
|
1766
|
+
|
|
1767
|
+
/**
|
|
1768
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1769
|
+
* given reader into the given message object.
|
|
1770
|
+
* @param {!proto.ondewo.nlu.ListSessionEntityTypesRequest} msg The message object to deserialize into.
|
|
1771
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1772
|
+
* @return {!proto.ondewo.nlu.ListSessionEntityTypesRequest}
|
|
1773
|
+
*/
|
|
1774
|
+
proto.ondewo.nlu.ListSessionEntityTypesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1775
|
+
while (reader.nextField()) {
|
|
1776
|
+
if (reader.isEndGroup()) {
|
|
1777
|
+
break;
|
|
1778
|
+
}
|
|
1779
|
+
var field = reader.getFieldNumber();
|
|
1780
|
+
switch (field) {
|
|
1781
|
+
case 1:
|
|
1782
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1783
|
+
msg.setParent(value);
|
|
1784
|
+
break;
|
|
1785
|
+
case 2:
|
|
1786
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1787
|
+
msg.setPageSize(value);
|
|
1788
|
+
break;
|
|
1789
|
+
case 3:
|
|
1790
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1791
|
+
msg.setPageToken(value);
|
|
1792
|
+
break;
|
|
1793
|
+
default:
|
|
1794
|
+
reader.skipField();
|
|
1795
|
+
break;
|
|
1796
|
+
}
|
|
1797
|
+
}
|
|
1798
|
+
return msg;
|
|
1799
|
+
};
|
|
1800
|
+
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1804
|
+
* @return {!Uint8Array}
|
|
1805
|
+
*/
|
|
1806
|
+
proto.ondewo.nlu.ListSessionEntityTypesRequest.prototype.serializeBinary = function() {
|
|
1807
|
+
var writer = new jspb.BinaryWriter();
|
|
1808
|
+
proto.ondewo.nlu.ListSessionEntityTypesRequest.serializeBinaryToWriter(this, writer);
|
|
1809
|
+
return writer.getResultBuffer();
|
|
1810
|
+
};
|
|
1811
|
+
|
|
1812
|
+
|
|
1813
|
+
/**
|
|
1814
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1815
|
+
* format), writing to the given BinaryWriter.
|
|
1816
|
+
* @param {!proto.ondewo.nlu.ListSessionEntityTypesRequest} message
|
|
1817
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1818
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1819
|
+
*/
|
|
1820
|
+
proto.ondewo.nlu.ListSessionEntityTypesRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1821
|
+
var f = undefined;
|
|
1822
|
+
f = message.getParent();
|
|
1823
|
+
if (f.length > 0) {
|
|
1824
|
+
writer.writeString(
|
|
1825
|
+
1,
|
|
1826
|
+
f
|
|
1827
|
+
);
|
|
1828
|
+
}
|
|
1829
|
+
f = message.getPageSize();
|
|
1830
|
+
if (f !== 0) {
|
|
1831
|
+
writer.writeInt32(
|
|
1832
|
+
2,
|
|
1833
|
+
f
|
|
1834
|
+
);
|
|
1835
|
+
}
|
|
1836
|
+
f = message.getPageToken();
|
|
1837
|
+
if (f.length > 0) {
|
|
1838
|
+
writer.writeString(
|
|
1839
|
+
3,
|
|
1840
|
+
f
|
|
1841
|
+
);
|
|
1842
|
+
}
|
|
1843
|
+
};
|
|
1844
|
+
|
|
1845
|
+
|
|
1846
|
+
/**
|
|
1847
|
+
* optional string parent = 1;
|
|
1848
|
+
* @return {string}
|
|
1849
|
+
*/
|
|
1850
|
+
proto.ondewo.nlu.ListSessionEntityTypesRequest.prototype.getParent = function() {
|
|
1851
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1852
|
+
};
|
|
1853
|
+
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* @param {string} value
|
|
1857
|
+
* @return {!proto.ondewo.nlu.ListSessionEntityTypesRequest} returns this
|
|
1858
|
+
*/
|
|
1859
|
+
proto.ondewo.nlu.ListSessionEntityTypesRequest.prototype.setParent = function(value) {
|
|
1860
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1861
|
+
};
|
|
1862
|
+
|
|
1863
|
+
|
|
1864
|
+
/**
|
|
1865
|
+
* optional int32 page_size = 2;
|
|
1866
|
+
* @return {number}
|
|
1867
|
+
*/
|
|
1868
|
+
proto.ondewo.nlu.ListSessionEntityTypesRequest.prototype.getPageSize = function() {
|
|
1869
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1870
|
+
};
|
|
1871
|
+
|
|
1872
|
+
|
|
1873
|
+
/**
|
|
1874
|
+
* @param {number} value
|
|
1875
|
+
* @return {!proto.ondewo.nlu.ListSessionEntityTypesRequest} returns this
|
|
1876
|
+
*/
|
|
1877
|
+
proto.ondewo.nlu.ListSessionEntityTypesRequest.prototype.setPageSize = function(value) {
|
|
1878
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
1879
|
+
};
|
|
1880
|
+
|
|
1881
|
+
|
|
1882
|
+
/**
|
|
1883
|
+
* optional string page_token = 3;
|
|
1884
|
+
* @return {string}
|
|
1885
|
+
*/
|
|
1886
|
+
proto.ondewo.nlu.ListSessionEntityTypesRequest.prototype.getPageToken = function() {
|
|
1887
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1888
|
+
};
|
|
1889
|
+
|
|
1890
|
+
|
|
1891
|
+
/**
|
|
1892
|
+
* @param {string} value
|
|
1893
|
+
* @return {!proto.ondewo.nlu.ListSessionEntityTypesRequest} returns this
|
|
1894
|
+
*/
|
|
1895
|
+
proto.ondewo.nlu.ListSessionEntityTypesRequest.prototype.setPageToken = function(value) {
|
|
1896
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1897
|
+
};
|
|
1898
|
+
|
|
1899
|
+
|
|
1900
|
+
|
|
1901
|
+
/**
|
|
1902
|
+
* List of repeated fields within this message type.
|
|
1903
|
+
* @private {!Array<number>}
|
|
1904
|
+
* @const
|
|
1905
|
+
*/
|
|
1906
|
+
proto.ondewo.nlu.ListSessionEntityTypesResponse.repeatedFields_ = [1];
|
|
1907
|
+
|
|
1908
|
+
|
|
1909
|
+
|
|
1910
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1911
|
+
/**
|
|
1912
|
+
* Creates an object representation of this proto.
|
|
1913
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1914
|
+
* Optional fields that are not set will be set to undefined.
|
|
1915
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1916
|
+
* For the list of reserved names please see:
|
|
1917
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1918
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1919
|
+
* JSPB instance for transitional soy proto support:
|
|
1920
|
+
* http://goto/soy-param-migration
|
|
1921
|
+
* @return {!Object}
|
|
1922
|
+
*/
|
|
1923
|
+
proto.ondewo.nlu.ListSessionEntityTypesResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1924
|
+
return proto.ondewo.nlu.ListSessionEntityTypesResponse.toObject(opt_includeInstance, this);
|
|
1925
|
+
};
|
|
1926
|
+
|
|
1927
|
+
|
|
1928
|
+
/**
|
|
1929
|
+
* Static version of the {@see toObject} method.
|
|
1930
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1931
|
+
* the JSPB instance for transitional soy proto support:
|
|
1932
|
+
* http://goto/soy-param-migration
|
|
1933
|
+
* @param {!proto.ondewo.nlu.ListSessionEntityTypesResponse} msg The msg instance to transform.
|
|
1934
|
+
* @return {!Object}
|
|
1935
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1936
|
+
*/
|
|
1937
|
+
proto.ondewo.nlu.ListSessionEntityTypesResponse.toObject = function(includeInstance, msg) {
|
|
1938
|
+
var f, obj = {
|
|
1939
|
+
sessionEntityTypesList: jspb.Message.toObjectList(msg.getSessionEntityTypesList(),
|
|
1940
|
+
proto.ondewo.nlu.SessionEntityType.toObject, includeInstance),
|
|
1941
|
+
nextPageToken: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
1942
|
+
};
|
|
1943
|
+
|
|
1944
|
+
if (includeInstance) {
|
|
1945
|
+
obj.$jspbMessageInstance = msg;
|
|
1946
|
+
}
|
|
1947
|
+
return obj;
|
|
1948
|
+
};
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
|
|
1952
|
+
/**
|
|
1953
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1954
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1955
|
+
* @return {!proto.ondewo.nlu.ListSessionEntityTypesResponse}
|
|
1956
|
+
*/
|
|
1957
|
+
proto.ondewo.nlu.ListSessionEntityTypesResponse.deserializeBinary = function(bytes) {
|
|
1958
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1959
|
+
var msg = new proto.ondewo.nlu.ListSessionEntityTypesResponse;
|
|
1960
|
+
return proto.ondewo.nlu.ListSessionEntityTypesResponse.deserializeBinaryFromReader(msg, reader);
|
|
1961
|
+
};
|
|
1962
|
+
|
|
1963
|
+
|
|
1964
|
+
/**
|
|
1965
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1966
|
+
* given reader into the given message object.
|
|
1967
|
+
* @param {!proto.ondewo.nlu.ListSessionEntityTypesResponse} msg The message object to deserialize into.
|
|
1968
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1969
|
+
* @return {!proto.ondewo.nlu.ListSessionEntityTypesResponse}
|
|
1970
|
+
*/
|
|
1971
|
+
proto.ondewo.nlu.ListSessionEntityTypesResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1972
|
+
while (reader.nextField()) {
|
|
1973
|
+
if (reader.isEndGroup()) {
|
|
1974
|
+
break;
|
|
1975
|
+
}
|
|
1976
|
+
var field = reader.getFieldNumber();
|
|
1977
|
+
switch (field) {
|
|
1978
|
+
case 1:
|
|
1979
|
+
var value = new proto.ondewo.nlu.SessionEntityType;
|
|
1980
|
+
reader.readMessage(value,proto.ondewo.nlu.SessionEntityType.deserializeBinaryFromReader);
|
|
1981
|
+
msg.addSessionEntityTypes(value);
|
|
1982
|
+
break;
|
|
1983
|
+
case 2:
|
|
1984
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1985
|
+
msg.setNextPageToken(value);
|
|
1986
|
+
break;
|
|
1987
|
+
default:
|
|
1988
|
+
reader.skipField();
|
|
1989
|
+
break;
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1992
|
+
return msg;
|
|
1993
|
+
};
|
|
1994
|
+
|
|
1995
|
+
|
|
1996
|
+
/**
|
|
1997
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1998
|
+
* @return {!Uint8Array}
|
|
1999
|
+
*/
|
|
2000
|
+
proto.ondewo.nlu.ListSessionEntityTypesResponse.prototype.serializeBinary = function() {
|
|
2001
|
+
var writer = new jspb.BinaryWriter();
|
|
2002
|
+
proto.ondewo.nlu.ListSessionEntityTypesResponse.serializeBinaryToWriter(this, writer);
|
|
2003
|
+
return writer.getResultBuffer();
|
|
2004
|
+
};
|
|
2005
|
+
|
|
2006
|
+
|
|
2007
|
+
/**
|
|
2008
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2009
|
+
* format), writing to the given BinaryWriter.
|
|
2010
|
+
* @param {!proto.ondewo.nlu.ListSessionEntityTypesResponse} message
|
|
2011
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2012
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2013
|
+
*/
|
|
2014
|
+
proto.ondewo.nlu.ListSessionEntityTypesResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2015
|
+
var f = undefined;
|
|
2016
|
+
f = message.getSessionEntityTypesList();
|
|
2017
|
+
if (f.length > 0) {
|
|
2018
|
+
writer.writeRepeatedMessage(
|
|
2019
|
+
1,
|
|
2020
|
+
f,
|
|
2021
|
+
proto.ondewo.nlu.SessionEntityType.serializeBinaryToWriter
|
|
2022
|
+
);
|
|
2023
|
+
}
|
|
2024
|
+
f = message.getNextPageToken();
|
|
2025
|
+
if (f.length > 0) {
|
|
2026
|
+
writer.writeString(
|
|
2027
|
+
2,
|
|
2028
|
+
f
|
|
2029
|
+
);
|
|
2030
|
+
}
|
|
2031
|
+
};
|
|
2032
|
+
|
|
2033
|
+
|
|
2034
|
+
/**
|
|
2035
|
+
* repeated SessionEntityType session_entity_types = 1;
|
|
2036
|
+
* @return {!Array<!proto.ondewo.nlu.SessionEntityType>}
|
|
2037
|
+
*/
|
|
2038
|
+
proto.ondewo.nlu.ListSessionEntityTypesResponse.prototype.getSessionEntityTypesList = function() {
|
|
2039
|
+
return /** @type{!Array<!proto.ondewo.nlu.SessionEntityType>} */ (
|
|
2040
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ondewo.nlu.SessionEntityType, 1));
|
|
2041
|
+
};
|
|
2042
|
+
|
|
2043
|
+
|
|
2044
|
+
/**
|
|
2045
|
+
* @param {!Array<!proto.ondewo.nlu.SessionEntityType>} value
|
|
2046
|
+
* @return {!proto.ondewo.nlu.ListSessionEntityTypesResponse} returns this
|
|
2047
|
+
*/
|
|
2048
|
+
proto.ondewo.nlu.ListSessionEntityTypesResponse.prototype.setSessionEntityTypesList = function(value) {
|
|
2049
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
2050
|
+
};
|
|
2051
|
+
|
|
2052
|
+
|
|
2053
|
+
/**
|
|
2054
|
+
* @param {!proto.ondewo.nlu.SessionEntityType=} opt_value
|
|
2055
|
+
* @param {number=} opt_index
|
|
2056
|
+
* @return {!proto.ondewo.nlu.SessionEntityType}
|
|
2057
|
+
*/
|
|
2058
|
+
proto.ondewo.nlu.ListSessionEntityTypesResponse.prototype.addSessionEntityTypes = function(opt_value, opt_index) {
|
|
2059
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ondewo.nlu.SessionEntityType, opt_index);
|
|
2060
|
+
};
|
|
2061
|
+
|
|
2062
|
+
|
|
2063
|
+
/**
|
|
2064
|
+
* Clears the list making it empty but non-null.
|
|
2065
|
+
* @return {!proto.ondewo.nlu.ListSessionEntityTypesResponse} returns this
|
|
2066
|
+
*/
|
|
2067
|
+
proto.ondewo.nlu.ListSessionEntityTypesResponse.prototype.clearSessionEntityTypesList = function() {
|
|
2068
|
+
return this.setSessionEntityTypesList([]);
|
|
2069
|
+
};
|
|
2070
|
+
|
|
2071
|
+
|
|
2072
|
+
/**
|
|
2073
|
+
* optional string next_page_token = 2;
|
|
2074
|
+
* @return {string}
|
|
2075
|
+
*/
|
|
2076
|
+
proto.ondewo.nlu.ListSessionEntityTypesResponse.prototype.getNextPageToken = function() {
|
|
2077
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2078
|
+
};
|
|
2079
|
+
|
|
2080
|
+
|
|
2081
|
+
/**
|
|
2082
|
+
* @param {string} value
|
|
2083
|
+
* @return {!proto.ondewo.nlu.ListSessionEntityTypesResponse} returns this
|
|
2084
|
+
*/
|
|
2085
|
+
proto.ondewo.nlu.ListSessionEntityTypesResponse.prototype.setNextPageToken = function(value) {
|
|
2086
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2087
|
+
};
|
|
2088
|
+
|
|
2089
|
+
|
|
2090
|
+
|
|
2091
|
+
|
|
2092
|
+
|
|
2093
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2094
|
+
/**
|
|
2095
|
+
* Creates an object representation of this proto.
|
|
2096
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2097
|
+
* Optional fields that are not set will be set to undefined.
|
|
2098
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2099
|
+
* For the list of reserved names please see:
|
|
2100
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2101
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2102
|
+
* JSPB instance for transitional soy proto support:
|
|
2103
|
+
* http://goto/soy-param-migration
|
|
2104
|
+
* @return {!Object}
|
|
2105
|
+
*/
|
|
2106
|
+
proto.ondewo.nlu.GetSessionEntityTypeRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2107
|
+
return proto.ondewo.nlu.GetSessionEntityTypeRequest.toObject(opt_includeInstance, this);
|
|
2108
|
+
};
|
|
2109
|
+
|
|
2110
|
+
|
|
2111
|
+
/**
|
|
2112
|
+
* Static version of the {@see toObject} method.
|
|
2113
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2114
|
+
* the JSPB instance for transitional soy proto support:
|
|
2115
|
+
* http://goto/soy-param-migration
|
|
2116
|
+
* @param {!proto.ondewo.nlu.GetSessionEntityTypeRequest} msg The msg instance to transform.
|
|
2117
|
+
* @return {!Object}
|
|
2118
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2119
|
+
*/
|
|
2120
|
+
proto.ondewo.nlu.GetSessionEntityTypeRequest.toObject = function(includeInstance, msg) {
|
|
2121
|
+
var f, obj = {
|
|
2122
|
+
name: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
2123
|
+
};
|
|
2124
|
+
|
|
2125
|
+
if (includeInstance) {
|
|
2126
|
+
obj.$jspbMessageInstance = msg;
|
|
2127
|
+
}
|
|
2128
|
+
return obj;
|
|
2129
|
+
};
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
|
|
2133
|
+
/**
|
|
2134
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2135
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2136
|
+
* @return {!proto.ondewo.nlu.GetSessionEntityTypeRequest}
|
|
2137
|
+
*/
|
|
2138
|
+
proto.ondewo.nlu.GetSessionEntityTypeRequest.deserializeBinary = function(bytes) {
|
|
2139
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2140
|
+
var msg = new proto.ondewo.nlu.GetSessionEntityTypeRequest;
|
|
2141
|
+
return proto.ondewo.nlu.GetSessionEntityTypeRequest.deserializeBinaryFromReader(msg, reader);
|
|
2142
|
+
};
|
|
2143
|
+
|
|
2144
|
+
|
|
2145
|
+
/**
|
|
2146
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2147
|
+
* given reader into the given message object.
|
|
2148
|
+
* @param {!proto.ondewo.nlu.GetSessionEntityTypeRequest} msg The message object to deserialize into.
|
|
2149
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2150
|
+
* @return {!proto.ondewo.nlu.GetSessionEntityTypeRequest}
|
|
2151
|
+
*/
|
|
2152
|
+
proto.ondewo.nlu.GetSessionEntityTypeRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2153
|
+
while (reader.nextField()) {
|
|
2154
|
+
if (reader.isEndGroup()) {
|
|
2155
|
+
break;
|
|
2156
|
+
}
|
|
2157
|
+
var field = reader.getFieldNumber();
|
|
2158
|
+
switch (field) {
|
|
2159
|
+
case 1:
|
|
2160
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2161
|
+
msg.setName(value);
|
|
2162
|
+
break;
|
|
2163
|
+
default:
|
|
2164
|
+
reader.skipField();
|
|
2165
|
+
break;
|
|
2166
|
+
}
|
|
2167
|
+
}
|
|
2168
|
+
return msg;
|
|
2169
|
+
};
|
|
2170
|
+
|
|
2171
|
+
|
|
2172
|
+
/**
|
|
2173
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2174
|
+
* @return {!Uint8Array}
|
|
2175
|
+
*/
|
|
2176
|
+
proto.ondewo.nlu.GetSessionEntityTypeRequest.prototype.serializeBinary = function() {
|
|
2177
|
+
var writer = new jspb.BinaryWriter();
|
|
2178
|
+
proto.ondewo.nlu.GetSessionEntityTypeRequest.serializeBinaryToWriter(this, writer);
|
|
2179
|
+
return writer.getResultBuffer();
|
|
2180
|
+
};
|
|
2181
|
+
|
|
2182
|
+
|
|
2183
|
+
/**
|
|
2184
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2185
|
+
* format), writing to the given BinaryWriter.
|
|
2186
|
+
* @param {!proto.ondewo.nlu.GetSessionEntityTypeRequest} message
|
|
2187
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2188
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2189
|
+
*/
|
|
2190
|
+
proto.ondewo.nlu.GetSessionEntityTypeRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2191
|
+
var f = undefined;
|
|
2192
|
+
f = message.getName();
|
|
2193
|
+
if (f.length > 0) {
|
|
2194
|
+
writer.writeString(
|
|
2195
|
+
1,
|
|
2196
|
+
f
|
|
2197
|
+
);
|
|
2198
|
+
}
|
|
2199
|
+
};
|
|
2200
|
+
|
|
2201
|
+
|
|
2202
|
+
/**
|
|
2203
|
+
* optional string name = 1;
|
|
2204
|
+
* @return {string}
|
|
2205
|
+
*/
|
|
2206
|
+
proto.ondewo.nlu.GetSessionEntityTypeRequest.prototype.getName = function() {
|
|
2207
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2208
|
+
};
|
|
2209
|
+
|
|
2210
|
+
|
|
2211
|
+
/**
|
|
2212
|
+
* @param {string} value
|
|
2213
|
+
* @return {!proto.ondewo.nlu.GetSessionEntityTypeRequest} returns this
|
|
2214
|
+
*/
|
|
2215
|
+
proto.ondewo.nlu.GetSessionEntityTypeRequest.prototype.setName = function(value) {
|
|
2216
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2217
|
+
};
|
|
2218
|
+
|
|
2219
|
+
|
|
2220
|
+
|
|
2221
|
+
|
|
2222
|
+
|
|
2223
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2224
|
+
/**
|
|
2225
|
+
* Creates an object representation of this proto.
|
|
2226
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2227
|
+
* Optional fields that are not set will be set to undefined.
|
|
2228
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2229
|
+
* For the list of reserved names please see:
|
|
2230
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2231
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2232
|
+
* JSPB instance for transitional soy proto support:
|
|
2233
|
+
* http://goto/soy-param-migration
|
|
2234
|
+
* @return {!Object}
|
|
2235
|
+
*/
|
|
2236
|
+
proto.ondewo.nlu.CreateSessionEntityTypeRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2237
|
+
return proto.ondewo.nlu.CreateSessionEntityTypeRequest.toObject(opt_includeInstance, this);
|
|
2238
|
+
};
|
|
2239
|
+
|
|
2240
|
+
|
|
2241
|
+
/**
|
|
2242
|
+
* Static version of the {@see toObject} method.
|
|
2243
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2244
|
+
* the JSPB instance for transitional soy proto support:
|
|
2245
|
+
* http://goto/soy-param-migration
|
|
2246
|
+
* @param {!proto.ondewo.nlu.CreateSessionEntityTypeRequest} msg The msg instance to transform.
|
|
2247
|
+
* @return {!Object}
|
|
2248
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2249
|
+
*/
|
|
2250
|
+
proto.ondewo.nlu.CreateSessionEntityTypeRequest.toObject = function(includeInstance, msg) {
|
|
2251
|
+
var f, obj = {
|
|
2252
|
+
parent: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2253
|
+
sessionEntityType: (f = msg.getSessionEntityType()) && proto.ondewo.nlu.SessionEntityType.toObject(includeInstance, f),
|
|
2254
|
+
sessionId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
2255
|
+
};
|
|
2256
|
+
|
|
2257
|
+
if (includeInstance) {
|
|
2258
|
+
obj.$jspbMessageInstance = msg;
|
|
2259
|
+
}
|
|
2260
|
+
return obj;
|
|
2261
|
+
};
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
|
|
2265
|
+
/**
|
|
2266
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2267
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2268
|
+
* @return {!proto.ondewo.nlu.CreateSessionEntityTypeRequest}
|
|
2269
|
+
*/
|
|
2270
|
+
proto.ondewo.nlu.CreateSessionEntityTypeRequest.deserializeBinary = function(bytes) {
|
|
2271
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2272
|
+
var msg = new proto.ondewo.nlu.CreateSessionEntityTypeRequest;
|
|
2273
|
+
return proto.ondewo.nlu.CreateSessionEntityTypeRequest.deserializeBinaryFromReader(msg, reader);
|
|
2274
|
+
};
|
|
2275
|
+
|
|
2276
|
+
|
|
2277
|
+
/**
|
|
2278
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2279
|
+
* given reader into the given message object.
|
|
2280
|
+
* @param {!proto.ondewo.nlu.CreateSessionEntityTypeRequest} msg The message object to deserialize into.
|
|
2281
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2282
|
+
* @return {!proto.ondewo.nlu.CreateSessionEntityTypeRequest}
|
|
2283
|
+
*/
|
|
2284
|
+
proto.ondewo.nlu.CreateSessionEntityTypeRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2285
|
+
while (reader.nextField()) {
|
|
2286
|
+
if (reader.isEndGroup()) {
|
|
2287
|
+
break;
|
|
2288
|
+
}
|
|
2289
|
+
var field = reader.getFieldNumber();
|
|
2290
|
+
switch (field) {
|
|
2291
|
+
case 1:
|
|
2292
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2293
|
+
msg.setParent(value);
|
|
2294
|
+
break;
|
|
2295
|
+
case 2:
|
|
2296
|
+
var value = new proto.ondewo.nlu.SessionEntityType;
|
|
2297
|
+
reader.readMessage(value,proto.ondewo.nlu.SessionEntityType.deserializeBinaryFromReader);
|
|
2298
|
+
msg.setSessionEntityType(value);
|
|
2299
|
+
break;
|
|
2300
|
+
case 3:
|
|
2301
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2302
|
+
msg.setSessionId(value);
|
|
2303
|
+
break;
|
|
2304
|
+
default:
|
|
2305
|
+
reader.skipField();
|
|
2306
|
+
break;
|
|
2307
|
+
}
|
|
2308
|
+
}
|
|
2309
|
+
return msg;
|
|
2310
|
+
};
|
|
2311
|
+
|
|
2312
|
+
|
|
2313
|
+
/**
|
|
2314
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2315
|
+
* @return {!Uint8Array}
|
|
2316
|
+
*/
|
|
2317
|
+
proto.ondewo.nlu.CreateSessionEntityTypeRequest.prototype.serializeBinary = function() {
|
|
2318
|
+
var writer = new jspb.BinaryWriter();
|
|
2319
|
+
proto.ondewo.nlu.CreateSessionEntityTypeRequest.serializeBinaryToWriter(this, writer);
|
|
2320
|
+
return writer.getResultBuffer();
|
|
2321
|
+
};
|
|
2322
|
+
|
|
2323
|
+
|
|
2324
|
+
/**
|
|
2325
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2326
|
+
* format), writing to the given BinaryWriter.
|
|
2327
|
+
* @param {!proto.ondewo.nlu.CreateSessionEntityTypeRequest} message
|
|
2328
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2329
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2330
|
+
*/
|
|
2331
|
+
proto.ondewo.nlu.CreateSessionEntityTypeRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2332
|
+
var f = undefined;
|
|
2333
|
+
f = message.getParent();
|
|
2334
|
+
if (f.length > 0) {
|
|
2335
|
+
writer.writeString(
|
|
2336
|
+
1,
|
|
2337
|
+
f
|
|
2338
|
+
);
|
|
2339
|
+
}
|
|
2340
|
+
f = message.getSessionEntityType();
|
|
2341
|
+
if (f != null) {
|
|
2342
|
+
writer.writeMessage(
|
|
2343
|
+
2,
|
|
2344
|
+
f,
|
|
2345
|
+
proto.ondewo.nlu.SessionEntityType.serializeBinaryToWriter
|
|
2346
|
+
);
|
|
2347
|
+
}
|
|
2348
|
+
f = message.getSessionId();
|
|
2349
|
+
if (f.length > 0) {
|
|
2350
|
+
writer.writeString(
|
|
2351
|
+
3,
|
|
2352
|
+
f
|
|
2353
|
+
);
|
|
2354
|
+
}
|
|
2355
|
+
};
|
|
2356
|
+
|
|
2357
|
+
|
|
2358
|
+
/**
|
|
2359
|
+
* optional string parent = 1;
|
|
2360
|
+
* @return {string}
|
|
2361
|
+
*/
|
|
2362
|
+
proto.ondewo.nlu.CreateSessionEntityTypeRequest.prototype.getParent = function() {
|
|
2363
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2364
|
+
};
|
|
2365
|
+
|
|
2366
|
+
|
|
2367
|
+
/**
|
|
2368
|
+
* @param {string} value
|
|
2369
|
+
* @return {!proto.ondewo.nlu.CreateSessionEntityTypeRequest} returns this
|
|
2370
|
+
*/
|
|
2371
|
+
proto.ondewo.nlu.CreateSessionEntityTypeRequest.prototype.setParent = function(value) {
|
|
2372
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2373
|
+
};
|
|
2374
|
+
|
|
2375
|
+
|
|
2376
|
+
/**
|
|
2377
|
+
* optional SessionEntityType session_entity_type = 2;
|
|
2378
|
+
* @return {?proto.ondewo.nlu.SessionEntityType}
|
|
2379
|
+
*/
|
|
2380
|
+
proto.ondewo.nlu.CreateSessionEntityTypeRequest.prototype.getSessionEntityType = function() {
|
|
2381
|
+
return /** @type{?proto.ondewo.nlu.SessionEntityType} */ (
|
|
2382
|
+
jspb.Message.getWrapperField(this, proto.ondewo.nlu.SessionEntityType, 2));
|
|
2383
|
+
};
|
|
2384
|
+
|
|
2385
|
+
|
|
2386
|
+
/**
|
|
2387
|
+
* @param {?proto.ondewo.nlu.SessionEntityType|undefined} value
|
|
2388
|
+
* @return {!proto.ondewo.nlu.CreateSessionEntityTypeRequest} returns this
|
|
2389
|
+
*/
|
|
2390
|
+
proto.ondewo.nlu.CreateSessionEntityTypeRequest.prototype.setSessionEntityType = function(value) {
|
|
2391
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
2392
|
+
};
|
|
2393
|
+
|
|
2394
|
+
|
|
2395
|
+
/**
|
|
2396
|
+
* Clears the message field making it undefined.
|
|
2397
|
+
* @return {!proto.ondewo.nlu.CreateSessionEntityTypeRequest} returns this
|
|
2398
|
+
*/
|
|
2399
|
+
proto.ondewo.nlu.CreateSessionEntityTypeRequest.prototype.clearSessionEntityType = function() {
|
|
2400
|
+
return this.setSessionEntityType(undefined);
|
|
2401
|
+
};
|
|
2402
|
+
|
|
2403
|
+
|
|
2404
|
+
/**
|
|
2405
|
+
* Returns whether this field is set.
|
|
2406
|
+
* @return {boolean}
|
|
2407
|
+
*/
|
|
2408
|
+
proto.ondewo.nlu.CreateSessionEntityTypeRequest.prototype.hasSessionEntityType = function() {
|
|
2409
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2410
|
+
};
|
|
2411
|
+
|
|
2412
|
+
|
|
2413
|
+
/**
|
|
2414
|
+
* optional string session_id = 3;
|
|
2415
|
+
* @return {string}
|
|
2416
|
+
*/
|
|
2417
|
+
proto.ondewo.nlu.CreateSessionEntityTypeRequest.prototype.getSessionId = function() {
|
|
2418
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
2419
|
+
};
|
|
2420
|
+
|
|
2421
|
+
|
|
2422
|
+
/**
|
|
2423
|
+
* @param {string} value
|
|
2424
|
+
* @return {!proto.ondewo.nlu.CreateSessionEntityTypeRequest} returns this
|
|
2425
|
+
*/
|
|
2426
|
+
proto.ondewo.nlu.CreateSessionEntityTypeRequest.prototype.setSessionId = function(value) {
|
|
2427
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
2428
|
+
};
|
|
2429
|
+
|
|
2430
|
+
|
|
2431
|
+
|
|
2432
|
+
|
|
2433
|
+
|
|
2434
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2435
|
+
/**
|
|
2436
|
+
* Creates an object representation of this proto.
|
|
2437
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2438
|
+
* Optional fields that are not set will be set to undefined.
|
|
2439
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2440
|
+
* For the list of reserved names please see:
|
|
2441
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2442
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2443
|
+
* JSPB instance for transitional soy proto support:
|
|
2444
|
+
* http://goto/soy-param-migration
|
|
2445
|
+
* @return {!Object}
|
|
2446
|
+
*/
|
|
2447
|
+
proto.ondewo.nlu.UpdateSessionEntityTypeRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2448
|
+
return proto.ondewo.nlu.UpdateSessionEntityTypeRequest.toObject(opt_includeInstance, this);
|
|
2449
|
+
};
|
|
2450
|
+
|
|
2451
|
+
|
|
2452
|
+
/**
|
|
2453
|
+
* Static version of the {@see toObject} method.
|
|
2454
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2455
|
+
* the JSPB instance for transitional soy proto support:
|
|
2456
|
+
* http://goto/soy-param-migration
|
|
2457
|
+
* @param {!proto.ondewo.nlu.UpdateSessionEntityTypeRequest} msg The msg instance to transform.
|
|
2458
|
+
* @return {!Object}
|
|
2459
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2460
|
+
*/
|
|
2461
|
+
proto.ondewo.nlu.UpdateSessionEntityTypeRequest.toObject = function(includeInstance, msg) {
|
|
2462
|
+
var f, obj = {
|
|
2463
|
+
sessionEntityType: (f = msg.getSessionEntityType()) && proto.ondewo.nlu.SessionEntityType.toObject(includeInstance, f),
|
|
2464
|
+
updateMask: (f = msg.getUpdateMask()) && google_protobuf_field_mask_pb.FieldMask.toObject(includeInstance, f)
|
|
2465
|
+
};
|
|
2466
|
+
|
|
2467
|
+
if (includeInstance) {
|
|
2468
|
+
obj.$jspbMessageInstance = msg;
|
|
2469
|
+
}
|
|
2470
|
+
return obj;
|
|
2471
|
+
};
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
|
|
2475
|
+
/**
|
|
2476
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2477
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2478
|
+
* @return {!proto.ondewo.nlu.UpdateSessionEntityTypeRequest}
|
|
2479
|
+
*/
|
|
2480
|
+
proto.ondewo.nlu.UpdateSessionEntityTypeRequest.deserializeBinary = function(bytes) {
|
|
2481
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2482
|
+
var msg = new proto.ondewo.nlu.UpdateSessionEntityTypeRequest;
|
|
2483
|
+
return proto.ondewo.nlu.UpdateSessionEntityTypeRequest.deserializeBinaryFromReader(msg, reader);
|
|
2484
|
+
};
|
|
2485
|
+
|
|
2486
|
+
|
|
2487
|
+
/**
|
|
2488
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2489
|
+
* given reader into the given message object.
|
|
2490
|
+
* @param {!proto.ondewo.nlu.UpdateSessionEntityTypeRequest} msg The message object to deserialize into.
|
|
2491
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2492
|
+
* @return {!proto.ondewo.nlu.UpdateSessionEntityTypeRequest}
|
|
2493
|
+
*/
|
|
2494
|
+
proto.ondewo.nlu.UpdateSessionEntityTypeRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2495
|
+
while (reader.nextField()) {
|
|
2496
|
+
if (reader.isEndGroup()) {
|
|
2497
|
+
break;
|
|
2498
|
+
}
|
|
2499
|
+
var field = reader.getFieldNumber();
|
|
2500
|
+
switch (field) {
|
|
2501
|
+
case 1:
|
|
2502
|
+
var value = new proto.ondewo.nlu.SessionEntityType;
|
|
2503
|
+
reader.readMessage(value,proto.ondewo.nlu.SessionEntityType.deserializeBinaryFromReader);
|
|
2504
|
+
msg.setSessionEntityType(value);
|
|
2505
|
+
break;
|
|
2506
|
+
case 2:
|
|
2507
|
+
var value = new google_protobuf_field_mask_pb.FieldMask;
|
|
2508
|
+
reader.readMessage(value,google_protobuf_field_mask_pb.FieldMask.deserializeBinaryFromReader);
|
|
2509
|
+
msg.setUpdateMask(value);
|
|
2510
|
+
break;
|
|
2511
|
+
default:
|
|
2512
|
+
reader.skipField();
|
|
2513
|
+
break;
|
|
2514
|
+
}
|
|
2515
|
+
}
|
|
2516
|
+
return msg;
|
|
2517
|
+
};
|
|
2518
|
+
|
|
2519
|
+
|
|
2520
|
+
/**
|
|
2521
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2522
|
+
* @return {!Uint8Array}
|
|
2523
|
+
*/
|
|
2524
|
+
proto.ondewo.nlu.UpdateSessionEntityTypeRequest.prototype.serializeBinary = function() {
|
|
2525
|
+
var writer = new jspb.BinaryWriter();
|
|
2526
|
+
proto.ondewo.nlu.UpdateSessionEntityTypeRequest.serializeBinaryToWriter(this, writer);
|
|
2527
|
+
return writer.getResultBuffer();
|
|
2528
|
+
};
|
|
2529
|
+
|
|
2530
|
+
|
|
2531
|
+
/**
|
|
2532
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2533
|
+
* format), writing to the given BinaryWriter.
|
|
2534
|
+
* @param {!proto.ondewo.nlu.UpdateSessionEntityTypeRequest} message
|
|
2535
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2536
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2537
|
+
*/
|
|
2538
|
+
proto.ondewo.nlu.UpdateSessionEntityTypeRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2539
|
+
var f = undefined;
|
|
2540
|
+
f = message.getSessionEntityType();
|
|
2541
|
+
if (f != null) {
|
|
2542
|
+
writer.writeMessage(
|
|
2543
|
+
1,
|
|
2544
|
+
f,
|
|
2545
|
+
proto.ondewo.nlu.SessionEntityType.serializeBinaryToWriter
|
|
2546
|
+
);
|
|
2547
|
+
}
|
|
2548
|
+
f = message.getUpdateMask();
|
|
2549
|
+
if (f != null) {
|
|
2550
|
+
writer.writeMessage(
|
|
2551
|
+
2,
|
|
2552
|
+
f,
|
|
2553
|
+
google_protobuf_field_mask_pb.FieldMask.serializeBinaryToWriter
|
|
2554
|
+
);
|
|
2555
|
+
}
|
|
2556
|
+
};
|
|
2557
|
+
|
|
2558
|
+
|
|
2559
|
+
/**
|
|
2560
|
+
* optional SessionEntityType session_entity_type = 1;
|
|
2561
|
+
* @return {?proto.ondewo.nlu.SessionEntityType}
|
|
2562
|
+
*/
|
|
2563
|
+
proto.ondewo.nlu.UpdateSessionEntityTypeRequest.prototype.getSessionEntityType = function() {
|
|
2564
|
+
return /** @type{?proto.ondewo.nlu.SessionEntityType} */ (
|
|
2565
|
+
jspb.Message.getWrapperField(this, proto.ondewo.nlu.SessionEntityType, 1));
|
|
2566
|
+
};
|
|
2567
|
+
|
|
2568
|
+
|
|
2569
|
+
/**
|
|
2570
|
+
* @param {?proto.ondewo.nlu.SessionEntityType|undefined} value
|
|
2571
|
+
* @return {!proto.ondewo.nlu.UpdateSessionEntityTypeRequest} returns this
|
|
2572
|
+
*/
|
|
2573
|
+
proto.ondewo.nlu.UpdateSessionEntityTypeRequest.prototype.setSessionEntityType = function(value) {
|
|
2574
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
2575
|
+
};
|
|
2576
|
+
|
|
2577
|
+
|
|
2578
|
+
/**
|
|
2579
|
+
* Clears the message field making it undefined.
|
|
2580
|
+
* @return {!proto.ondewo.nlu.UpdateSessionEntityTypeRequest} returns this
|
|
2581
|
+
*/
|
|
2582
|
+
proto.ondewo.nlu.UpdateSessionEntityTypeRequest.prototype.clearSessionEntityType = function() {
|
|
2583
|
+
return this.setSessionEntityType(undefined);
|
|
2584
|
+
};
|
|
2585
|
+
|
|
2586
|
+
|
|
2587
|
+
/**
|
|
2588
|
+
* Returns whether this field is set.
|
|
2589
|
+
* @return {boolean}
|
|
2590
|
+
*/
|
|
2591
|
+
proto.ondewo.nlu.UpdateSessionEntityTypeRequest.prototype.hasSessionEntityType = function() {
|
|
2592
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2593
|
+
};
|
|
2594
|
+
|
|
2595
|
+
|
|
2596
|
+
/**
|
|
2597
|
+
* optional google.protobuf.FieldMask update_mask = 2;
|
|
2598
|
+
* @return {?proto.google.protobuf.FieldMask}
|
|
2599
|
+
*/
|
|
2600
|
+
proto.ondewo.nlu.UpdateSessionEntityTypeRequest.prototype.getUpdateMask = function() {
|
|
2601
|
+
return /** @type{?proto.google.protobuf.FieldMask} */ (
|
|
2602
|
+
jspb.Message.getWrapperField(this, google_protobuf_field_mask_pb.FieldMask, 2));
|
|
2603
|
+
};
|
|
2604
|
+
|
|
2605
|
+
|
|
2606
|
+
/**
|
|
2607
|
+
* @param {?proto.google.protobuf.FieldMask|undefined} value
|
|
2608
|
+
* @return {!proto.ondewo.nlu.UpdateSessionEntityTypeRequest} returns this
|
|
2609
|
+
*/
|
|
2610
|
+
proto.ondewo.nlu.UpdateSessionEntityTypeRequest.prototype.setUpdateMask = function(value) {
|
|
2611
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
2612
|
+
};
|
|
2613
|
+
|
|
2614
|
+
|
|
2615
|
+
/**
|
|
2616
|
+
* Clears the message field making it undefined.
|
|
2617
|
+
* @return {!proto.ondewo.nlu.UpdateSessionEntityTypeRequest} returns this
|
|
2618
|
+
*/
|
|
2619
|
+
proto.ondewo.nlu.UpdateSessionEntityTypeRequest.prototype.clearUpdateMask = function() {
|
|
2620
|
+
return this.setUpdateMask(undefined);
|
|
2621
|
+
};
|
|
2622
|
+
|
|
2623
|
+
|
|
2624
|
+
/**
|
|
2625
|
+
* Returns whether this field is set.
|
|
2626
|
+
* @return {boolean}
|
|
2627
|
+
*/
|
|
2628
|
+
proto.ondewo.nlu.UpdateSessionEntityTypeRequest.prototype.hasUpdateMask = function() {
|
|
2629
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2630
|
+
};
|
|
2631
|
+
|
|
2632
|
+
|
|
2633
|
+
|
|
2634
|
+
|
|
2635
|
+
|
|
2636
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2637
|
+
/**
|
|
2638
|
+
* Creates an object representation of this proto.
|
|
2639
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2640
|
+
* Optional fields that are not set will be set to undefined.
|
|
2641
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2642
|
+
* For the list of reserved names please see:
|
|
2643
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2644
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2645
|
+
* JSPB instance for transitional soy proto support:
|
|
2646
|
+
* http://goto/soy-param-migration
|
|
2647
|
+
* @return {!Object}
|
|
2648
|
+
*/
|
|
2649
|
+
proto.ondewo.nlu.DeleteSessionEntityTypeRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2650
|
+
return proto.ondewo.nlu.DeleteSessionEntityTypeRequest.toObject(opt_includeInstance, this);
|
|
2651
|
+
};
|
|
2652
|
+
|
|
2653
|
+
|
|
2654
|
+
/**
|
|
2655
|
+
* Static version of the {@see toObject} method.
|
|
2656
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2657
|
+
* the JSPB instance for transitional soy proto support:
|
|
2658
|
+
* http://goto/soy-param-migration
|
|
2659
|
+
* @param {!proto.ondewo.nlu.DeleteSessionEntityTypeRequest} msg The msg instance to transform.
|
|
2660
|
+
* @return {!Object}
|
|
2661
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2662
|
+
*/
|
|
2663
|
+
proto.ondewo.nlu.DeleteSessionEntityTypeRequest.toObject = function(includeInstance, msg) {
|
|
2664
|
+
var f, obj = {
|
|
2665
|
+
name: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
2666
|
+
};
|
|
2667
|
+
|
|
2668
|
+
if (includeInstance) {
|
|
2669
|
+
obj.$jspbMessageInstance = msg;
|
|
2670
|
+
}
|
|
2671
|
+
return obj;
|
|
2672
|
+
};
|
|
2673
|
+
}
|
|
2674
|
+
|
|
2675
|
+
|
|
2676
|
+
/**
|
|
2677
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2678
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2679
|
+
* @return {!proto.ondewo.nlu.DeleteSessionEntityTypeRequest}
|
|
2680
|
+
*/
|
|
2681
|
+
proto.ondewo.nlu.DeleteSessionEntityTypeRequest.deserializeBinary = function(bytes) {
|
|
2682
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2683
|
+
var msg = new proto.ondewo.nlu.DeleteSessionEntityTypeRequest;
|
|
2684
|
+
return proto.ondewo.nlu.DeleteSessionEntityTypeRequest.deserializeBinaryFromReader(msg, reader);
|
|
2685
|
+
};
|
|
2686
|
+
|
|
2687
|
+
|
|
2688
|
+
/**
|
|
2689
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2690
|
+
* given reader into the given message object.
|
|
2691
|
+
* @param {!proto.ondewo.nlu.DeleteSessionEntityTypeRequest} msg The message object to deserialize into.
|
|
2692
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2693
|
+
* @return {!proto.ondewo.nlu.DeleteSessionEntityTypeRequest}
|
|
2694
|
+
*/
|
|
2695
|
+
proto.ondewo.nlu.DeleteSessionEntityTypeRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2696
|
+
while (reader.nextField()) {
|
|
2697
|
+
if (reader.isEndGroup()) {
|
|
2698
|
+
break;
|
|
2699
|
+
}
|
|
2700
|
+
var field = reader.getFieldNumber();
|
|
2701
|
+
switch (field) {
|
|
2702
|
+
case 1:
|
|
2703
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2704
|
+
msg.setName(value);
|
|
2705
|
+
break;
|
|
2706
|
+
default:
|
|
2707
|
+
reader.skipField();
|
|
2708
|
+
break;
|
|
2709
|
+
}
|
|
2710
|
+
}
|
|
2711
|
+
return msg;
|
|
2712
|
+
};
|
|
2713
|
+
|
|
2714
|
+
|
|
2715
|
+
/**
|
|
2716
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2717
|
+
* @return {!Uint8Array}
|
|
2718
|
+
*/
|
|
2719
|
+
proto.ondewo.nlu.DeleteSessionEntityTypeRequest.prototype.serializeBinary = function() {
|
|
2720
|
+
var writer = new jspb.BinaryWriter();
|
|
2721
|
+
proto.ondewo.nlu.DeleteSessionEntityTypeRequest.serializeBinaryToWriter(this, writer);
|
|
2722
|
+
return writer.getResultBuffer();
|
|
2723
|
+
};
|
|
2724
|
+
|
|
2725
|
+
|
|
2726
|
+
/**
|
|
2727
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2728
|
+
* format), writing to the given BinaryWriter.
|
|
2729
|
+
* @param {!proto.ondewo.nlu.DeleteSessionEntityTypeRequest} message
|
|
2730
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2731
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2732
|
+
*/
|
|
2733
|
+
proto.ondewo.nlu.DeleteSessionEntityTypeRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2734
|
+
var f = undefined;
|
|
2735
|
+
f = message.getName();
|
|
2736
|
+
if (f.length > 0) {
|
|
2737
|
+
writer.writeString(
|
|
2738
|
+
1,
|
|
2739
|
+
f
|
|
2740
|
+
);
|
|
2741
|
+
}
|
|
2742
|
+
};
|
|
2743
|
+
|
|
2744
|
+
|
|
2745
|
+
/**
|
|
2746
|
+
* optional string name = 1;
|
|
2747
|
+
* @return {string}
|
|
2748
|
+
*/
|
|
2749
|
+
proto.ondewo.nlu.DeleteSessionEntityTypeRequest.prototype.getName = function() {
|
|
2750
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2751
|
+
};
|
|
2752
|
+
|
|
2753
|
+
|
|
2754
|
+
/**
|
|
2755
|
+
* @param {string} value
|
|
2756
|
+
* @return {!proto.ondewo.nlu.DeleteSessionEntityTypeRequest} returns this
|
|
2757
|
+
*/
|
|
2758
|
+
proto.ondewo.nlu.DeleteSessionEntityTypeRequest.prototype.setName = function(value) {
|
|
2759
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2760
|
+
};
|
|
2761
|
+
|
|
2762
|
+
|
|
1267
2763
|
goog.object.extend(exports, proto.ondewo.nlu);
|