@ondewo/nlu-client-typescript 4.4.0 → 4.6.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.
|
@@ -26,22 +26,23 @@ goog.object.extend(proto, ondewo_nlu_common_pb);
|
|
|
26
26
|
var ondewo_nlu_operations_pb = require('../../ondewo/nlu/operations_pb.js');
|
|
27
27
|
goog.object.extend(proto, ondewo_nlu_operations_pb);
|
|
28
28
|
goog.exportSymbol('proto.ondewo.nlu.BatchCreateEntitiesRequest', null, global);
|
|
29
|
-
goog.exportSymbol('proto.ondewo.nlu.BatchCreateEntitiesRequest.CreateEntityRequest', null, global);
|
|
30
29
|
goog.exportSymbol('proto.ondewo.nlu.BatchDeleteEntitiesRequest', null, global);
|
|
31
30
|
goog.exportSymbol('proto.ondewo.nlu.BatchDeleteEntitiesResponse', null, global);
|
|
32
|
-
goog.exportSymbol('proto.ondewo.nlu.BatchDeleteEntitiesResponse.DeleteEntityStatus', null, global);
|
|
33
|
-
goog.exportSymbol('proto.ondewo.nlu.BatchDeleteEntitiesResponse.DeleteEntityStatus.DeleteStatusCase', null, global);
|
|
34
31
|
goog.exportSymbol('proto.ondewo.nlu.BatchDeleteEntityTypesRequest', null, global);
|
|
35
32
|
goog.exportSymbol('proto.ondewo.nlu.BatchEntitiesResponse', null, global);
|
|
36
|
-
goog.exportSymbol('proto.ondewo.nlu.BatchEntitiesResponse.EntityStatus', null, global);
|
|
37
|
-
goog.exportSymbol('proto.ondewo.nlu.BatchEntitiesResponse.EntityStatus.EntityOrStatusCase', null, global);
|
|
38
33
|
goog.exportSymbol('proto.ondewo.nlu.BatchGetEntitiesRequest', null, global);
|
|
39
34
|
goog.exportSymbol('proto.ondewo.nlu.BatchUpdateEntitiesRequest', null, global);
|
|
40
35
|
goog.exportSymbol('proto.ondewo.nlu.BatchUpdateEntityTypesRequest', null, global);
|
|
41
36
|
goog.exportSymbol('proto.ondewo.nlu.BatchUpdateEntityTypesRequest.EntityTypeBatchCase', null, global);
|
|
42
37
|
goog.exportSymbol('proto.ondewo.nlu.BatchUpdateEntityTypesResponse', null, global);
|
|
38
|
+
goog.exportSymbol('proto.ondewo.nlu.CreateEntityRequest', null, global);
|
|
43
39
|
goog.exportSymbol('proto.ondewo.nlu.CreateEntityTypeRequest', null, global);
|
|
40
|
+
goog.exportSymbol('proto.ondewo.nlu.DeleteEntityRequest', null, global);
|
|
41
|
+
goog.exportSymbol('proto.ondewo.nlu.DeleteEntityStatus', null, global);
|
|
42
|
+
goog.exportSymbol('proto.ondewo.nlu.DeleteEntityStatus.DeleteStatusCase', null, global);
|
|
44
43
|
goog.exportSymbol('proto.ondewo.nlu.DeleteEntityTypeRequest', null, global);
|
|
44
|
+
goog.exportSymbol('proto.ondewo.nlu.EntityStatus', null, global);
|
|
45
|
+
goog.exportSymbol('proto.ondewo.nlu.EntityStatus.EntityOrStatusCase', null, global);
|
|
45
46
|
goog.exportSymbol('proto.ondewo.nlu.EntityType', null, global);
|
|
46
47
|
goog.exportSymbol('proto.ondewo.nlu.EntityType.AutoExpansionMode', null, global);
|
|
47
48
|
goog.exportSymbol('proto.ondewo.nlu.EntityType.Entity', null, global);
|
|
@@ -54,11 +55,13 @@ goog.exportSymbol('proto.ondewo.nlu.EntityTypeSorting.EntityTypeSortingField', n
|
|
|
54
55
|
goog.exportSymbol('proto.ondewo.nlu.EntityTypeView', null, global);
|
|
55
56
|
goog.exportSymbol('proto.ondewo.nlu.EntityValueSorting', null, global);
|
|
56
57
|
goog.exportSymbol('proto.ondewo.nlu.EntityValueSorting.EntityValueSortingField', null, global);
|
|
58
|
+
goog.exportSymbol('proto.ondewo.nlu.GetEntityRequest', null, global);
|
|
57
59
|
goog.exportSymbol('proto.ondewo.nlu.GetEntityTypeRequest', null, global);
|
|
58
60
|
goog.exportSymbol('proto.ondewo.nlu.ListEntitiesRequest', null, global);
|
|
59
61
|
goog.exportSymbol('proto.ondewo.nlu.ListEntitiesResponse', null, global);
|
|
60
62
|
goog.exportSymbol('proto.ondewo.nlu.ListEntityTypesRequest', null, global);
|
|
61
63
|
goog.exportSymbol('proto.ondewo.nlu.ListEntityTypesResponse', null, global);
|
|
64
|
+
goog.exportSymbol('proto.ondewo.nlu.UpdateEntityRequest', null, global);
|
|
62
65
|
goog.exportSymbol('proto.ondewo.nlu.UpdateEntityTypeRequest', null, global);
|
|
63
66
|
/**
|
|
64
67
|
* Generated by JsPbCodeGenerator.
|
|
@@ -333,6 +336,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
333
336
|
*/
|
|
334
337
|
proto.ondewo.nlu.EntityTypeSorting.displayName = 'proto.ondewo.nlu.EntityTypeSorting';
|
|
335
338
|
}
|
|
339
|
+
/**
|
|
340
|
+
* Generated by JsPbCodeGenerator.
|
|
341
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
342
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
343
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
344
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
345
|
+
* valid.
|
|
346
|
+
* @extends {jspb.Message}
|
|
347
|
+
* @constructor
|
|
348
|
+
*/
|
|
349
|
+
proto.ondewo.nlu.EntityStatus = function(opt_data) {
|
|
350
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ondewo.nlu.EntityStatus.oneofGroups_);
|
|
351
|
+
};
|
|
352
|
+
goog.inherits(proto.ondewo.nlu.EntityStatus, jspb.Message);
|
|
353
|
+
if (goog.DEBUG && !COMPILED) {
|
|
354
|
+
/**
|
|
355
|
+
* @public
|
|
356
|
+
* @override
|
|
357
|
+
*/
|
|
358
|
+
proto.ondewo.nlu.EntityStatus.displayName = 'proto.ondewo.nlu.EntityStatus';
|
|
359
|
+
}
|
|
336
360
|
/**
|
|
337
361
|
* Generated by JsPbCodeGenerator.
|
|
338
362
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -364,16 +388,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
364
388
|
* @extends {jspb.Message}
|
|
365
389
|
* @constructor
|
|
366
390
|
*/
|
|
367
|
-
proto.ondewo.nlu.
|
|
368
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null,
|
|
391
|
+
proto.ondewo.nlu.CreateEntityRequest = function(opt_data) {
|
|
392
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
369
393
|
};
|
|
370
|
-
goog.inherits(proto.ondewo.nlu.
|
|
394
|
+
goog.inherits(proto.ondewo.nlu.CreateEntityRequest, jspb.Message);
|
|
371
395
|
if (goog.DEBUG && !COMPILED) {
|
|
372
396
|
/**
|
|
373
397
|
* @public
|
|
374
398
|
* @override
|
|
375
399
|
*/
|
|
376
|
-
proto.ondewo.nlu.
|
|
400
|
+
proto.ondewo.nlu.CreateEntityRequest.displayName = 'proto.ondewo.nlu.CreateEntityRequest';
|
|
377
401
|
}
|
|
378
402
|
/**
|
|
379
403
|
* Generated by JsPbCodeGenerator.
|
|
@@ -406,16 +430,37 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
406
430
|
* @extends {jspb.Message}
|
|
407
431
|
* @constructor
|
|
408
432
|
*/
|
|
409
|
-
proto.ondewo.nlu.
|
|
433
|
+
proto.ondewo.nlu.BatchUpdateEntitiesRequest = function(opt_data) {
|
|
434
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.BatchUpdateEntitiesRequest.repeatedFields_, null);
|
|
435
|
+
};
|
|
436
|
+
goog.inherits(proto.ondewo.nlu.BatchUpdateEntitiesRequest, jspb.Message);
|
|
437
|
+
if (goog.DEBUG && !COMPILED) {
|
|
438
|
+
/**
|
|
439
|
+
* @public
|
|
440
|
+
* @override
|
|
441
|
+
*/
|
|
442
|
+
proto.ondewo.nlu.BatchUpdateEntitiesRequest.displayName = 'proto.ondewo.nlu.BatchUpdateEntitiesRequest';
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* Generated by JsPbCodeGenerator.
|
|
446
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
447
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
448
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
449
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
450
|
+
* valid.
|
|
451
|
+
* @extends {jspb.Message}
|
|
452
|
+
* @constructor
|
|
453
|
+
*/
|
|
454
|
+
proto.ondewo.nlu.UpdateEntityRequest = function(opt_data) {
|
|
410
455
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
411
456
|
};
|
|
412
|
-
goog.inherits(proto.ondewo.nlu.
|
|
457
|
+
goog.inherits(proto.ondewo.nlu.UpdateEntityRequest, jspb.Message);
|
|
413
458
|
if (goog.DEBUG && !COMPILED) {
|
|
414
459
|
/**
|
|
415
460
|
* @public
|
|
416
461
|
* @override
|
|
417
462
|
*/
|
|
418
|
-
proto.ondewo.nlu.
|
|
463
|
+
proto.ondewo.nlu.UpdateEntityRequest.displayName = 'proto.ondewo.nlu.UpdateEntityRequest';
|
|
419
464
|
}
|
|
420
465
|
/**
|
|
421
466
|
* Generated by JsPbCodeGenerator.
|
|
@@ -427,16 +472,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
427
472
|
* @extends {jspb.Message}
|
|
428
473
|
* @constructor
|
|
429
474
|
*/
|
|
430
|
-
proto.ondewo.nlu.
|
|
431
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
475
|
+
proto.ondewo.nlu.GetEntityRequest = function(opt_data) {
|
|
476
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
432
477
|
};
|
|
433
|
-
goog.inherits(proto.ondewo.nlu.
|
|
478
|
+
goog.inherits(proto.ondewo.nlu.GetEntityRequest, jspb.Message);
|
|
434
479
|
if (goog.DEBUG && !COMPILED) {
|
|
435
480
|
/**
|
|
436
481
|
* @public
|
|
437
482
|
* @override
|
|
438
483
|
*/
|
|
439
|
-
proto.ondewo.nlu.
|
|
484
|
+
proto.ondewo.nlu.GetEntityRequest.displayName = 'proto.ondewo.nlu.GetEntityRequest';
|
|
440
485
|
}
|
|
441
486
|
/**
|
|
442
487
|
* Generated by JsPbCodeGenerator.
|
|
@@ -490,16 +535,37 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
490
535
|
* @extends {jspb.Message}
|
|
491
536
|
* @constructor
|
|
492
537
|
*/
|
|
493
|
-
proto.ondewo.nlu.
|
|
494
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
538
|
+
proto.ondewo.nlu.DeleteEntityRequest = function(opt_data) {
|
|
539
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
495
540
|
};
|
|
496
|
-
goog.inherits(proto.ondewo.nlu.
|
|
541
|
+
goog.inherits(proto.ondewo.nlu.DeleteEntityRequest, jspb.Message);
|
|
497
542
|
if (goog.DEBUG && !COMPILED) {
|
|
498
543
|
/**
|
|
499
544
|
* @public
|
|
500
545
|
* @override
|
|
501
546
|
*/
|
|
502
|
-
proto.ondewo.nlu.
|
|
547
|
+
proto.ondewo.nlu.DeleteEntityRequest.displayName = 'proto.ondewo.nlu.DeleteEntityRequest';
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* Generated by JsPbCodeGenerator.
|
|
551
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
552
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
553
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
554
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
555
|
+
* valid.
|
|
556
|
+
* @extends {jspb.Message}
|
|
557
|
+
* @constructor
|
|
558
|
+
*/
|
|
559
|
+
proto.ondewo.nlu.DeleteEntityStatus = function(opt_data) {
|
|
560
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ondewo.nlu.DeleteEntityStatus.oneofGroups_);
|
|
561
|
+
};
|
|
562
|
+
goog.inherits(proto.ondewo.nlu.DeleteEntityStatus, jspb.Message);
|
|
563
|
+
if (goog.DEBUG && !COMPILED) {
|
|
564
|
+
/**
|
|
565
|
+
* @public
|
|
566
|
+
* @override
|
|
567
|
+
*/
|
|
568
|
+
proto.ondewo.nlu.DeleteEntityStatus.displayName = 'proto.ondewo.nlu.DeleteEntityStatus';
|
|
503
569
|
}
|
|
504
570
|
/**
|
|
505
571
|
* Generated by JsPbCodeGenerator.
|
|
@@ -511,16 +577,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
511
577
|
* @extends {jspb.Message}
|
|
512
578
|
* @constructor
|
|
513
579
|
*/
|
|
514
|
-
proto.ondewo.nlu.BatchDeleteEntitiesResponse
|
|
515
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
580
|
+
proto.ondewo.nlu.BatchDeleteEntitiesResponse = function(opt_data) {
|
|
581
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.BatchDeleteEntitiesResponse.repeatedFields_, null);
|
|
516
582
|
};
|
|
517
|
-
goog.inherits(proto.ondewo.nlu.BatchDeleteEntitiesResponse
|
|
583
|
+
goog.inherits(proto.ondewo.nlu.BatchDeleteEntitiesResponse, jspb.Message);
|
|
518
584
|
if (goog.DEBUG && !COMPILED) {
|
|
519
585
|
/**
|
|
520
586
|
* @public
|
|
521
587
|
* @override
|
|
522
588
|
*/
|
|
523
|
-
proto.ondewo.nlu.BatchDeleteEntitiesResponse.
|
|
589
|
+
proto.ondewo.nlu.BatchDeleteEntitiesResponse.displayName = 'proto.ondewo.nlu.BatchDeleteEntitiesResponse';
|
|
524
590
|
}
|
|
525
591
|
/**
|
|
526
592
|
* Generated by JsPbCodeGenerator.
|
|
@@ -3676,11 +3742,30 @@ proto.ondewo.nlu.EntityTypeSorting.prototype.setSortingMode = function(value) {
|
|
|
3676
3742
|
|
|
3677
3743
|
|
|
3678
3744
|
/**
|
|
3679
|
-
*
|
|
3680
|
-
*
|
|
3745
|
+
* Oneof group definitions for this message. Each group defines the field
|
|
3746
|
+
* numbers belonging to that group. When of these fields' value is set, all
|
|
3747
|
+
* other fields in the group are cleared. During deserialization, if multiple
|
|
3748
|
+
* fields are encountered for a group, only the last value seen will be kept.
|
|
3749
|
+
* @private {!Array<!Array<number>>}
|
|
3681
3750
|
* @const
|
|
3682
3751
|
*/
|
|
3683
|
-
proto.ondewo.nlu.
|
|
3752
|
+
proto.ondewo.nlu.EntityStatus.oneofGroups_ = [[1,2]];
|
|
3753
|
+
|
|
3754
|
+
/**
|
|
3755
|
+
* @enum {number}
|
|
3756
|
+
*/
|
|
3757
|
+
proto.ondewo.nlu.EntityStatus.EntityOrStatusCase = {
|
|
3758
|
+
ENTITY_OR_STATUS_NOT_SET: 0,
|
|
3759
|
+
ENTITY: 1,
|
|
3760
|
+
ERROR_MESSAGE: 2
|
|
3761
|
+
};
|
|
3762
|
+
|
|
3763
|
+
/**
|
|
3764
|
+
* @return {proto.ondewo.nlu.EntityStatus.EntityOrStatusCase}
|
|
3765
|
+
*/
|
|
3766
|
+
proto.ondewo.nlu.EntityStatus.prototype.getEntityOrStatusCase = function() {
|
|
3767
|
+
return /** @type {proto.ondewo.nlu.EntityStatus.EntityOrStatusCase} */(jspb.Message.computeOneofCase(this, proto.ondewo.nlu.EntityStatus.oneofGroups_[0]));
|
|
3768
|
+
};
|
|
3684
3769
|
|
|
3685
3770
|
|
|
3686
3771
|
|
|
@@ -3697,8 +3782,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3697
3782
|
* http://goto/soy-param-migration
|
|
3698
3783
|
* @return {!Object}
|
|
3699
3784
|
*/
|
|
3700
|
-
proto.ondewo.nlu.
|
|
3701
|
-
return proto.ondewo.nlu.
|
|
3785
|
+
proto.ondewo.nlu.EntityStatus.prototype.toObject = function(opt_includeInstance) {
|
|
3786
|
+
return proto.ondewo.nlu.EntityStatus.toObject(opt_includeInstance, this);
|
|
3702
3787
|
};
|
|
3703
3788
|
|
|
3704
3789
|
|
|
@@ -3707,15 +3792,14 @@ proto.ondewo.nlu.BatchEntitiesResponse.prototype.toObject = function(opt_include
|
|
|
3707
3792
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3708
3793
|
* the JSPB instance for transitional soy proto support:
|
|
3709
3794
|
* http://goto/soy-param-migration
|
|
3710
|
-
* @param {!proto.ondewo.nlu.
|
|
3795
|
+
* @param {!proto.ondewo.nlu.EntityStatus} msg The msg instance to transform.
|
|
3711
3796
|
* @return {!Object}
|
|
3712
3797
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3713
3798
|
*/
|
|
3714
|
-
proto.ondewo.nlu.
|
|
3799
|
+
proto.ondewo.nlu.EntityStatus.toObject = function(includeInstance, msg) {
|
|
3715
3800
|
var f, obj = {
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
hasErrors: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
|
3801
|
+
entity: (f = msg.getEntity()) && proto.ondewo.nlu.EntityType.Entity.toObject(includeInstance, f),
|
|
3802
|
+
errorMessage: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
3719
3803
|
};
|
|
3720
3804
|
|
|
3721
3805
|
if (includeInstance) {
|
|
@@ -3729,23 +3813,23 @@ proto.ondewo.nlu.BatchEntitiesResponse.toObject = function(includeInstance, msg)
|
|
|
3729
3813
|
/**
|
|
3730
3814
|
* Deserializes binary data (in protobuf wire format).
|
|
3731
3815
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3732
|
-
* @return {!proto.ondewo.nlu.
|
|
3816
|
+
* @return {!proto.ondewo.nlu.EntityStatus}
|
|
3733
3817
|
*/
|
|
3734
|
-
proto.ondewo.nlu.
|
|
3818
|
+
proto.ondewo.nlu.EntityStatus.deserializeBinary = function(bytes) {
|
|
3735
3819
|
var reader = new jspb.BinaryReader(bytes);
|
|
3736
|
-
var msg = new proto.ondewo.nlu.
|
|
3737
|
-
return proto.ondewo.nlu.
|
|
3820
|
+
var msg = new proto.ondewo.nlu.EntityStatus;
|
|
3821
|
+
return proto.ondewo.nlu.EntityStatus.deserializeBinaryFromReader(msg, reader);
|
|
3738
3822
|
};
|
|
3739
3823
|
|
|
3740
3824
|
|
|
3741
3825
|
/**
|
|
3742
3826
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3743
3827
|
* given reader into the given message object.
|
|
3744
|
-
* @param {!proto.ondewo.nlu.
|
|
3828
|
+
* @param {!proto.ondewo.nlu.EntityStatus} msg The message object to deserialize into.
|
|
3745
3829
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3746
|
-
* @return {!proto.ondewo.nlu.
|
|
3830
|
+
* @return {!proto.ondewo.nlu.EntityStatus}
|
|
3747
3831
|
*/
|
|
3748
|
-
proto.ondewo.nlu.
|
|
3832
|
+
proto.ondewo.nlu.EntityStatus.deserializeBinaryFromReader = function(msg, reader) {
|
|
3749
3833
|
while (reader.nextField()) {
|
|
3750
3834
|
if (reader.isEndGroup()) {
|
|
3751
3835
|
break;
|
|
@@ -3753,13 +3837,13 @@ proto.ondewo.nlu.BatchEntitiesResponse.deserializeBinaryFromReader = function(ms
|
|
|
3753
3837
|
var field = reader.getFieldNumber();
|
|
3754
3838
|
switch (field) {
|
|
3755
3839
|
case 1:
|
|
3756
|
-
var value = new proto.ondewo.nlu.
|
|
3757
|
-
reader.readMessage(value,proto.ondewo.nlu.
|
|
3758
|
-
msg.
|
|
3840
|
+
var value = new proto.ondewo.nlu.EntityType.Entity;
|
|
3841
|
+
reader.readMessage(value,proto.ondewo.nlu.EntityType.Entity.deserializeBinaryFromReader);
|
|
3842
|
+
msg.setEntity(value);
|
|
3759
3843
|
break;
|
|
3760
3844
|
case 2:
|
|
3761
|
-
var value = /** @type {
|
|
3762
|
-
msg.
|
|
3845
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3846
|
+
msg.setErrorMessage(value);
|
|
3763
3847
|
break;
|
|
3764
3848
|
default:
|
|
3765
3849
|
reader.skipField();
|
|
@@ -3774,9 +3858,9 @@ proto.ondewo.nlu.BatchEntitiesResponse.deserializeBinaryFromReader = function(ms
|
|
|
3774
3858
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3775
3859
|
* @return {!Uint8Array}
|
|
3776
3860
|
*/
|
|
3777
|
-
proto.ondewo.nlu.
|
|
3861
|
+
proto.ondewo.nlu.EntityStatus.prototype.serializeBinary = function() {
|
|
3778
3862
|
var writer = new jspb.BinaryWriter();
|
|
3779
|
-
proto.ondewo.nlu.
|
|
3863
|
+
proto.ondewo.nlu.EntityStatus.serializeBinaryToWriter(this, writer);
|
|
3780
3864
|
return writer.getResultBuffer();
|
|
3781
3865
|
};
|
|
3782
3866
|
|
|
@@ -3784,23 +3868,23 @@ proto.ondewo.nlu.BatchEntitiesResponse.prototype.serializeBinary = function() {
|
|
|
3784
3868
|
/**
|
|
3785
3869
|
* Serializes the given message to binary data (in protobuf wire
|
|
3786
3870
|
* format), writing to the given BinaryWriter.
|
|
3787
|
-
* @param {!proto.ondewo.nlu.
|
|
3871
|
+
* @param {!proto.ondewo.nlu.EntityStatus} message
|
|
3788
3872
|
* @param {!jspb.BinaryWriter} writer
|
|
3789
3873
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3790
3874
|
*/
|
|
3791
|
-
proto.ondewo.nlu.
|
|
3875
|
+
proto.ondewo.nlu.EntityStatus.serializeBinaryToWriter = function(message, writer) {
|
|
3792
3876
|
var f = undefined;
|
|
3793
|
-
f = message.
|
|
3794
|
-
if (f
|
|
3795
|
-
writer.
|
|
3877
|
+
f = message.getEntity();
|
|
3878
|
+
if (f != null) {
|
|
3879
|
+
writer.writeMessage(
|
|
3796
3880
|
1,
|
|
3797
3881
|
f,
|
|
3798
|
-
proto.ondewo.nlu.
|
|
3882
|
+
proto.ondewo.nlu.EntityType.Entity.serializeBinaryToWriter
|
|
3799
3883
|
);
|
|
3800
3884
|
}
|
|
3801
|
-
f =
|
|
3802
|
-
if (f) {
|
|
3803
|
-
writer.
|
|
3885
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
3886
|
+
if (f != null) {
|
|
3887
|
+
writer.writeString(
|
|
3804
3888
|
2,
|
|
3805
3889
|
f
|
|
3806
3890
|
);
|
|
@@ -3808,35 +3892,89 @@ proto.ondewo.nlu.BatchEntitiesResponse.serializeBinaryToWriter = function(messag
|
|
|
3808
3892
|
};
|
|
3809
3893
|
|
|
3810
3894
|
|
|
3895
|
+
/**
|
|
3896
|
+
* optional EntityType.Entity entity = 1;
|
|
3897
|
+
* @return {?proto.ondewo.nlu.EntityType.Entity}
|
|
3898
|
+
*/
|
|
3899
|
+
proto.ondewo.nlu.EntityStatus.prototype.getEntity = function() {
|
|
3900
|
+
return /** @type{?proto.ondewo.nlu.EntityType.Entity} */ (
|
|
3901
|
+
jspb.Message.getWrapperField(this, proto.ondewo.nlu.EntityType.Entity, 1));
|
|
3902
|
+
};
|
|
3903
|
+
|
|
3811
3904
|
|
|
3812
3905
|
/**
|
|
3813
|
-
*
|
|
3814
|
-
*
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3906
|
+
* @param {?proto.ondewo.nlu.EntityType.Entity|undefined} value
|
|
3907
|
+
* @return {!proto.ondewo.nlu.EntityStatus} returns this
|
|
3908
|
+
*/
|
|
3909
|
+
proto.ondewo.nlu.EntityStatus.prototype.setEntity = function(value) {
|
|
3910
|
+
return jspb.Message.setOneofWrapperField(this, 1, proto.ondewo.nlu.EntityStatus.oneofGroups_[0], value);
|
|
3911
|
+
};
|
|
3912
|
+
|
|
3913
|
+
|
|
3914
|
+
/**
|
|
3915
|
+
* Clears the message field making it undefined.
|
|
3916
|
+
* @return {!proto.ondewo.nlu.EntityStatus} returns this
|
|
3819
3917
|
*/
|
|
3820
|
-
proto.ondewo.nlu.
|
|
3918
|
+
proto.ondewo.nlu.EntityStatus.prototype.clearEntity = function() {
|
|
3919
|
+
return this.setEntity(undefined);
|
|
3920
|
+
};
|
|
3921
|
+
|
|
3821
3922
|
|
|
3822
3923
|
/**
|
|
3823
|
-
*
|
|
3924
|
+
* Returns whether this field is set.
|
|
3925
|
+
* @return {boolean}
|
|
3824
3926
|
*/
|
|
3825
|
-
proto.ondewo.nlu.
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3927
|
+
proto.ondewo.nlu.EntityStatus.prototype.hasEntity = function() {
|
|
3928
|
+
return jspb.Message.getField(this, 1) != null;
|
|
3929
|
+
};
|
|
3930
|
+
|
|
3931
|
+
|
|
3932
|
+
/**
|
|
3933
|
+
* optional string error_message = 2;
|
|
3934
|
+
* @return {string}
|
|
3935
|
+
*/
|
|
3936
|
+
proto.ondewo.nlu.EntityStatus.prototype.getErrorMessage = function() {
|
|
3937
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3938
|
+
};
|
|
3939
|
+
|
|
3940
|
+
|
|
3941
|
+
/**
|
|
3942
|
+
* @param {string} value
|
|
3943
|
+
* @return {!proto.ondewo.nlu.EntityStatus} returns this
|
|
3944
|
+
*/
|
|
3945
|
+
proto.ondewo.nlu.EntityStatus.prototype.setErrorMessage = function(value) {
|
|
3946
|
+
return jspb.Message.setOneofField(this, 2, proto.ondewo.nlu.EntityStatus.oneofGroups_[0], value);
|
|
3947
|
+
};
|
|
3948
|
+
|
|
3949
|
+
|
|
3950
|
+
/**
|
|
3951
|
+
* Clears the field making it undefined.
|
|
3952
|
+
* @return {!proto.ondewo.nlu.EntityStatus} returns this
|
|
3953
|
+
*/
|
|
3954
|
+
proto.ondewo.nlu.EntityStatus.prototype.clearErrorMessage = function() {
|
|
3955
|
+
return jspb.Message.setOneofField(this, 2, proto.ondewo.nlu.EntityStatus.oneofGroups_[0], undefined);
|
|
3829
3956
|
};
|
|
3830
3957
|
|
|
3958
|
+
|
|
3831
3959
|
/**
|
|
3832
|
-
*
|
|
3960
|
+
* Returns whether this field is set.
|
|
3961
|
+
* @return {boolean}
|
|
3833
3962
|
*/
|
|
3834
|
-
proto.ondewo.nlu.
|
|
3835
|
-
return
|
|
3963
|
+
proto.ondewo.nlu.EntityStatus.prototype.hasErrorMessage = function() {
|
|
3964
|
+
return jspb.Message.getField(this, 2) != null;
|
|
3836
3965
|
};
|
|
3837
3966
|
|
|
3838
3967
|
|
|
3839
3968
|
|
|
3969
|
+
/**
|
|
3970
|
+
* List of repeated fields within this message type.
|
|
3971
|
+
* @private {!Array<number>}
|
|
3972
|
+
* @const
|
|
3973
|
+
*/
|
|
3974
|
+
proto.ondewo.nlu.BatchEntitiesResponse.repeatedFields_ = [1];
|
|
3975
|
+
|
|
3976
|
+
|
|
3977
|
+
|
|
3840
3978
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3841
3979
|
/**
|
|
3842
3980
|
* Creates an object representation of this proto.
|
|
@@ -3850,8 +3988,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3850
3988
|
* http://goto/soy-param-migration
|
|
3851
3989
|
* @return {!Object}
|
|
3852
3990
|
*/
|
|
3853
|
-
proto.ondewo.nlu.BatchEntitiesResponse.
|
|
3854
|
-
return proto.ondewo.nlu.BatchEntitiesResponse.
|
|
3991
|
+
proto.ondewo.nlu.BatchEntitiesResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3992
|
+
return proto.ondewo.nlu.BatchEntitiesResponse.toObject(opt_includeInstance, this);
|
|
3855
3993
|
};
|
|
3856
3994
|
|
|
3857
3995
|
|
|
@@ -3860,14 +3998,15 @@ proto.ondewo.nlu.BatchEntitiesResponse.EntityStatus.prototype.toObject = functio
|
|
|
3860
3998
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3861
3999
|
* the JSPB instance for transitional soy proto support:
|
|
3862
4000
|
* http://goto/soy-param-migration
|
|
3863
|
-
* @param {!proto.ondewo.nlu.BatchEntitiesResponse
|
|
4001
|
+
* @param {!proto.ondewo.nlu.BatchEntitiesResponse} msg The msg instance to transform.
|
|
3864
4002
|
* @return {!Object}
|
|
3865
4003
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3866
4004
|
*/
|
|
3867
|
-
proto.ondewo.nlu.BatchEntitiesResponse.
|
|
4005
|
+
proto.ondewo.nlu.BatchEntitiesResponse.toObject = function(includeInstance, msg) {
|
|
3868
4006
|
var f, obj = {
|
|
3869
|
-
|
|
3870
|
-
|
|
4007
|
+
entityStatusesList: jspb.Message.toObjectList(msg.getEntityStatusesList(),
|
|
4008
|
+
proto.ondewo.nlu.EntityStatus.toObject, includeInstance),
|
|
4009
|
+
hasErrors: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
|
3871
4010
|
};
|
|
3872
4011
|
|
|
3873
4012
|
if (includeInstance) {
|
|
@@ -3881,23 +4020,23 @@ proto.ondewo.nlu.BatchEntitiesResponse.EntityStatus.toObject = function(includeI
|
|
|
3881
4020
|
/**
|
|
3882
4021
|
* Deserializes binary data (in protobuf wire format).
|
|
3883
4022
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3884
|
-
* @return {!proto.ondewo.nlu.BatchEntitiesResponse
|
|
4023
|
+
* @return {!proto.ondewo.nlu.BatchEntitiesResponse}
|
|
3885
4024
|
*/
|
|
3886
|
-
proto.ondewo.nlu.BatchEntitiesResponse.
|
|
4025
|
+
proto.ondewo.nlu.BatchEntitiesResponse.deserializeBinary = function(bytes) {
|
|
3887
4026
|
var reader = new jspb.BinaryReader(bytes);
|
|
3888
|
-
var msg = new proto.ondewo.nlu.BatchEntitiesResponse
|
|
3889
|
-
return proto.ondewo.nlu.BatchEntitiesResponse.
|
|
4027
|
+
var msg = new proto.ondewo.nlu.BatchEntitiesResponse;
|
|
4028
|
+
return proto.ondewo.nlu.BatchEntitiesResponse.deserializeBinaryFromReader(msg, reader);
|
|
3890
4029
|
};
|
|
3891
4030
|
|
|
3892
4031
|
|
|
3893
4032
|
/**
|
|
3894
4033
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3895
4034
|
* given reader into the given message object.
|
|
3896
|
-
* @param {!proto.ondewo.nlu.BatchEntitiesResponse
|
|
4035
|
+
* @param {!proto.ondewo.nlu.BatchEntitiesResponse} msg The message object to deserialize into.
|
|
3897
4036
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3898
|
-
* @return {!proto.ondewo.nlu.BatchEntitiesResponse
|
|
4037
|
+
* @return {!proto.ondewo.nlu.BatchEntitiesResponse}
|
|
3899
4038
|
*/
|
|
3900
|
-
proto.ondewo.nlu.BatchEntitiesResponse.
|
|
4039
|
+
proto.ondewo.nlu.BatchEntitiesResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3901
4040
|
while (reader.nextField()) {
|
|
3902
4041
|
if (reader.isEndGroup()) {
|
|
3903
4042
|
break;
|
|
@@ -3905,13 +4044,13 @@ proto.ondewo.nlu.BatchEntitiesResponse.EntityStatus.deserializeBinaryFromReader
|
|
|
3905
4044
|
var field = reader.getFieldNumber();
|
|
3906
4045
|
switch (field) {
|
|
3907
4046
|
case 1:
|
|
3908
|
-
var value = new proto.ondewo.nlu.
|
|
3909
|
-
reader.readMessage(value,proto.ondewo.nlu.
|
|
3910
|
-
msg.
|
|
4047
|
+
var value = new proto.ondewo.nlu.EntityStatus;
|
|
4048
|
+
reader.readMessage(value,proto.ondewo.nlu.EntityStatus.deserializeBinaryFromReader);
|
|
4049
|
+
msg.addEntityStatuses(value);
|
|
3911
4050
|
break;
|
|
3912
4051
|
case 2:
|
|
3913
|
-
var value = /** @type {
|
|
3914
|
-
msg.
|
|
4052
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
4053
|
+
msg.setHasErrors(value);
|
|
3915
4054
|
break;
|
|
3916
4055
|
default:
|
|
3917
4056
|
reader.skipField();
|
|
@@ -3926,9 +4065,9 @@ proto.ondewo.nlu.BatchEntitiesResponse.EntityStatus.deserializeBinaryFromReader
|
|
|
3926
4065
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3927
4066
|
* @return {!Uint8Array}
|
|
3928
4067
|
*/
|
|
3929
|
-
proto.ondewo.nlu.BatchEntitiesResponse.
|
|
4068
|
+
proto.ondewo.nlu.BatchEntitiesResponse.prototype.serializeBinary = function() {
|
|
3930
4069
|
var writer = new jspb.BinaryWriter();
|
|
3931
|
-
proto.ondewo.nlu.BatchEntitiesResponse.
|
|
4070
|
+
proto.ondewo.nlu.BatchEntitiesResponse.serializeBinaryToWriter(this, writer);
|
|
3932
4071
|
return writer.getResultBuffer();
|
|
3933
4072
|
};
|
|
3934
4073
|
|
|
@@ -3936,23 +4075,23 @@ proto.ondewo.nlu.BatchEntitiesResponse.EntityStatus.prototype.serializeBinary =
|
|
|
3936
4075
|
/**
|
|
3937
4076
|
* Serializes the given message to binary data (in protobuf wire
|
|
3938
4077
|
* format), writing to the given BinaryWriter.
|
|
3939
|
-
* @param {!proto.ondewo.nlu.BatchEntitiesResponse
|
|
4078
|
+
* @param {!proto.ondewo.nlu.BatchEntitiesResponse} message
|
|
3940
4079
|
* @param {!jspb.BinaryWriter} writer
|
|
3941
4080
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3942
4081
|
*/
|
|
3943
|
-
proto.ondewo.nlu.BatchEntitiesResponse.
|
|
4082
|
+
proto.ondewo.nlu.BatchEntitiesResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3944
4083
|
var f = undefined;
|
|
3945
|
-
f = message.
|
|
3946
|
-
if (f
|
|
3947
|
-
writer.
|
|
4084
|
+
f = message.getEntityStatusesList();
|
|
4085
|
+
if (f.length > 0) {
|
|
4086
|
+
writer.writeRepeatedMessage(
|
|
3948
4087
|
1,
|
|
3949
4088
|
f,
|
|
3950
|
-
proto.ondewo.nlu.
|
|
4089
|
+
proto.ondewo.nlu.EntityStatus.serializeBinaryToWriter
|
|
3951
4090
|
);
|
|
3952
4091
|
}
|
|
3953
|
-
f =
|
|
3954
|
-
if (f
|
|
3955
|
-
writer.
|
|
4092
|
+
f = message.getHasErrors();
|
|
4093
|
+
if (f) {
|
|
4094
|
+
writer.writeBool(
|
|
3956
4095
|
2,
|
|
3957
4096
|
f
|
|
3958
4097
|
);
|
|
@@ -3961,131 +4100,239 @@ proto.ondewo.nlu.BatchEntitiesResponse.EntityStatus.serializeBinaryToWriter = fu
|
|
|
3961
4100
|
|
|
3962
4101
|
|
|
3963
4102
|
/**
|
|
3964
|
-
*
|
|
3965
|
-
* @return {
|
|
4103
|
+
* repeated EntityStatus entity_statuses = 1;
|
|
4104
|
+
* @return {!Array<!proto.ondewo.nlu.EntityStatus>}
|
|
3966
4105
|
*/
|
|
3967
|
-
proto.ondewo.nlu.BatchEntitiesResponse.
|
|
3968
|
-
return /** @type{
|
|
3969
|
-
jspb.Message.
|
|
4106
|
+
proto.ondewo.nlu.BatchEntitiesResponse.prototype.getEntityStatusesList = function() {
|
|
4107
|
+
return /** @type{!Array<!proto.ondewo.nlu.EntityStatus>} */ (
|
|
4108
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ondewo.nlu.EntityStatus, 1));
|
|
3970
4109
|
};
|
|
3971
4110
|
|
|
3972
4111
|
|
|
3973
4112
|
/**
|
|
3974
|
-
* @param {
|
|
3975
|
-
* @return {!proto.ondewo.nlu.BatchEntitiesResponse
|
|
4113
|
+
* @param {!Array<!proto.ondewo.nlu.EntityStatus>} value
|
|
4114
|
+
* @return {!proto.ondewo.nlu.BatchEntitiesResponse} returns this
|
|
3976
4115
|
*/
|
|
3977
|
-
proto.ondewo.nlu.BatchEntitiesResponse.
|
|
3978
|
-
return jspb.Message.
|
|
4116
|
+
proto.ondewo.nlu.BatchEntitiesResponse.prototype.setEntityStatusesList = function(value) {
|
|
4117
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
3979
4118
|
};
|
|
3980
4119
|
|
|
3981
4120
|
|
|
3982
4121
|
/**
|
|
3983
|
-
*
|
|
3984
|
-
* @
|
|
4122
|
+
* @param {!proto.ondewo.nlu.EntityStatus=} opt_value
|
|
4123
|
+
* @param {number=} opt_index
|
|
4124
|
+
* @return {!proto.ondewo.nlu.EntityStatus}
|
|
3985
4125
|
*/
|
|
3986
|
-
proto.ondewo.nlu.BatchEntitiesResponse.
|
|
3987
|
-
return this.
|
|
4126
|
+
proto.ondewo.nlu.BatchEntitiesResponse.prototype.addEntityStatuses = function(opt_value, opt_index) {
|
|
4127
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ondewo.nlu.EntityStatus, opt_index);
|
|
3988
4128
|
};
|
|
3989
4129
|
|
|
3990
4130
|
|
|
3991
4131
|
/**
|
|
3992
|
-
*
|
|
3993
|
-
* @return {
|
|
4132
|
+
* Clears the list making it empty but non-null.
|
|
4133
|
+
* @return {!proto.ondewo.nlu.BatchEntitiesResponse} returns this
|
|
3994
4134
|
*/
|
|
3995
|
-
proto.ondewo.nlu.BatchEntitiesResponse.
|
|
3996
|
-
return
|
|
4135
|
+
proto.ondewo.nlu.BatchEntitiesResponse.prototype.clearEntityStatusesList = function() {
|
|
4136
|
+
return this.setEntityStatusesList([]);
|
|
3997
4137
|
};
|
|
3998
4138
|
|
|
3999
4139
|
|
|
4000
4140
|
/**
|
|
4001
|
-
* optional
|
|
4002
|
-
* @return {
|
|
4141
|
+
* optional bool has_errors = 2;
|
|
4142
|
+
* @return {boolean}
|
|
4003
4143
|
*/
|
|
4004
|
-
proto.ondewo.nlu.BatchEntitiesResponse.
|
|
4005
|
-
return /** @type {
|
|
4144
|
+
proto.ondewo.nlu.BatchEntitiesResponse.prototype.getHasErrors = function() {
|
|
4145
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
4006
4146
|
};
|
|
4007
4147
|
|
|
4008
4148
|
|
|
4009
4149
|
/**
|
|
4010
|
-
* @param {
|
|
4011
|
-
* @return {!proto.ondewo.nlu.BatchEntitiesResponse
|
|
4150
|
+
* @param {boolean} value
|
|
4151
|
+
* @return {!proto.ondewo.nlu.BatchEntitiesResponse} returns this
|
|
4012
4152
|
*/
|
|
4013
|
-
proto.ondewo.nlu.BatchEntitiesResponse.
|
|
4014
|
-
return jspb.Message.
|
|
4153
|
+
proto.ondewo.nlu.BatchEntitiesResponse.prototype.setHasErrors = function(value) {
|
|
4154
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
4015
4155
|
};
|
|
4016
4156
|
|
|
4017
4157
|
|
|
4158
|
+
|
|
4159
|
+
|
|
4160
|
+
|
|
4161
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4018
4162
|
/**
|
|
4019
|
-
*
|
|
4020
|
-
*
|
|
4163
|
+
* Creates an object representation of this proto.
|
|
4164
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4165
|
+
* Optional fields that are not set will be set to undefined.
|
|
4166
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4167
|
+
* For the list of reserved names please see:
|
|
4168
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4169
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4170
|
+
* JSPB instance for transitional soy proto support:
|
|
4171
|
+
* http://goto/soy-param-migration
|
|
4172
|
+
* @return {!Object}
|
|
4021
4173
|
*/
|
|
4022
|
-
proto.ondewo.nlu.
|
|
4023
|
-
return
|
|
4174
|
+
proto.ondewo.nlu.CreateEntityRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4175
|
+
return proto.ondewo.nlu.CreateEntityRequest.toObject(opt_includeInstance, this);
|
|
4024
4176
|
};
|
|
4025
4177
|
|
|
4026
4178
|
|
|
4027
4179
|
/**
|
|
4028
|
-
*
|
|
4029
|
-
* @
|
|
4180
|
+
* Static version of the {@see toObject} method.
|
|
4181
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4182
|
+
* the JSPB instance for transitional soy proto support:
|
|
4183
|
+
* http://goto/soy-param-migration
|
|
4184
|
+
* @param {!proto.ondewo.nlu.CreateEntityRequest} msg The msg instance to transform.
|
|
4185
|
+
* @return {!Object}
|
|
4186
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4030
4187
|
*/
|
|
4031
|
-
proto.ondewo.nlu.
|
|
4032
|
-
|
|
4188
|
+
proto.ondewo.nlu.CreateEntityRequest.toObject = function(includeInstance, msg) {
|
|
4189
|
+
var f, obj = {
|
|
4190
|
+
entityTypeName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4191
|
+
entity: (f = msg.getEntity()) && proto.ondewo.nlu.EntityType.Entity.toObject(includeInstance, f)
|
|
4192
|
+
};
|
|
4193
|
+
|
|
4194
|
+
if (includeInstance) {
|
|
4195
|
+
obj.$jspbMessageInstance = msg;
|
|
4196
|
+
}
|
|
4197
|
+
return obj;
|
|
4033
4198
|
};
|
|
4199
|
+
}
|
|
4034
4200
|
|
|
4035
4201
|
|
|
4036
4202
|
/**
|
|
4037
|
-
*
|
|
4038
|
-
* @
|
|
4203
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4204
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4205
|
+
* @return {!proto.ondewo.nlu.CreateEntityRequest}
|
|
4039
4206
|
*/
|
|
4040
|
-
proto.ondewo.nlu.
|
|
4041
|
-
|
|
4042
|
-
|
|
4207
|
+
proto.ondewo.nlu.CreateEntityRequest.deserializeBinary = function(bytes) {
|
|
4208
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4209
|
+
var msg = new proto.ondewo.nlu.CreateEntityRequest;
|
|
4210
|
+
return proto.ondewo.nlu.CreateEntityRequest.deserializeBinaryFromReader(msg, reader);
|
|
4043
4211
|
};
|
|
4044
4212
|
|
|
4045
4213
|
|
|
4046
4214
|
/**
|
|
4047
|
-
*
|
|
4048
|
-
*
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4215
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4216
|
+
* given reader into the given message object.
|
|
4217
|
+
* @param {!proto.ondewo.nlu.CreateEntityRequest} msg The message object to deserialize into.
|
|
4218
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4219
|
+
* @return {!proto.ondewo.nlu.CreateEntityRequest}
|
|
4220
|
+
*/
|
|
4221
|
+
proto.ondewo.nlu.CreateEntityRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4222
|
+
while (reader.nextField()) {
|
|
4223
|
+
if (reader.isEndGroup()) {
|
|
4224
|
+
break;
|
|
4225
|
+
}
|
|
4226
|
+
var field = reader.getFieldNumber();
|
|
4227
|
+
switch (field) {
|
|
4228
|
+
case 1:
|
|
4229
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4230
|
+
msg.setEntityTypeName(value);
|
|
4231
|
+
break;
|
|
4232
|
+
case 2:
|
|
4233
|
+
var value = new proto.ondewo.nlu.EntityType.Entity;
|
|
4234
|
+
reader.readMessage(value,proto.ondewo.nlu.EntityType.Entity.deserializeBinaryFromReader);
|
|
4235
|
+
msg.setEntity(value);
|
|
4236
|
+
break;
|
|
4237
|
+
default:
|
|
4238
|
+
reader.skipField();
|
|
4239
|
+
break;
|
|
4240
|
+
}
|
|
4241
|
+
}
|
|
4242
|
+
return msg;
|
|
4052
4243
|
};
|
|
4053
4244
|
|
|
4054
4245
|
|
|
4055
4246
|
/**
|
|
4056
|
-
*
|
|
4057
|
-
* @
|
|
4058
|
-
* @return {!proto.ondewo.nlu.BatchEntitiesResponse.EntityStatus}
|
|
4247
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4248
|
+
* @return {!Uint8Array}
|
|
4059
4249
|
*/
|
|
4060
|
-
proto.ondewo.nlu.
|
|
4061
|
-
|
|
4250
|
+
proto.ondewo.nlu.CreateEntityRequest.prototype.serializeBinary = function() {
|
|
4251
|
+
var writer = new jspb.BinaryWriter();
|
|
4252
|
+
proto.ondewo.nlu.CreateEntityRequest.serializeBinaryToWriter(this, writer);
|
|
4253
|
+
return writer.getResultBuffer();
|
|
4062
4254
|
};
|
|
4063
4255
|
|
|
4064
4256
|
|
|
4065
4257
|
/**
|
|
4066
|
-
*
|
|
4067
|
-
*
|
|
4258
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4259
|
+
* format), writing to the given BinaryWriter.
|
|
4260
|
+
* @param {!proto.ondewo.nlu.CreateEntityRequest} message
|
|
4261
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4262
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4068
4263
|
*/
|
|
4069
|
-
proto.ondewo.nlu.
|
|
4070
|
-
|
|
4264
|
+
proto.ondewo.nlu.CreateEntityRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4265
|
+
var f = undefined;
|
|
4266
|
+
f = message.getEntityTypeName();
|
|
4267
|
+
if (f.length > 0) {
|
|
4268
|
+
writer.writeString(
|
|
4269
|
+
1,
|
|
4270
|
+
f
|
|
4271
|
+
);
|
|
4272
|
+
}
|
|
4273
|
+
f = message.getEntity();
|
|
4274
|
+
if (f != null) {
|
|
4275
|
+
writer.writeMessage(
|
|
4276
|
+
2,
|
|
4277
|
+
f,
|
|
4278
|
+
proto.ondewo.nlu.EntityType.Entity.serializeBinaryToWriter
|
|
4279
|
+
);
|
|
4280
|
+
}
|
|
4071
4281
|
};
|
|
4072
4282
|
|
|
4073
4283
|
|
|
4074
4284
|
/**
|
|
4075
|
-
* optional
|
|
4076
|
-
* @return {
|
|
4285
|
+
* optional string entity_type_name = 1;
|
|
4286
|
+
* @return {string}
|
|
4077
4287
|
*/
|
|
4078
|
-
proto.ondewo.nlu.
|
|
4079
|
-
return /** @type {
|
|
4288
|
+
proto.ondewo.nlu.CreateEntityRequest.prototype.getEntityTypeName = function() {
|
|
4289
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4080
4290
|
};
|
|
4081
4291
|
|
|
4082
4292
|
|
|
4083
4293
|
/**
|
|
4084
|
-
* @param {
|
|
4085
|
-
* @return {!proto.ondewo.nlu.
|
|
4294
|
+
* @param {string} value
|
|
4295
|
+
* @return {!proto.ondewo.nlu.CreateEntityRequest} returns this
|
|
4086
4296
|
*/
|
|
4087
|
-
proto.ondewo.nlu.
|
|
4088
|
-
return jspb.Message.
|
|
4297
|
+
proto.ondewo.nlu.CreateEntityRequest.prototype.setEntityTypeName = function(value) {
|
|
4298
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4299
|
+
};
|
|
4300
|
+
|
|
4301
|
+
|
|
4302
|
+
/**
|
|
4303
|
+
* optional EntityType.Entity entity = 2;
|
|
4304
|
+
* @return {?proto.ondewo.nlu.EntityType.Entity}
|
|
4305
|
+
*/
|
|
4306
|
+
proto.ondewo.nlu.CreateEntityRequest.prototype.getEntity = function() {
|
|
4307
|
+
return /** @type{?proto.ondewo.nlu.EntityType.Entity} */ (
|
|
4308
|
+
jspb.Message.getWrapperField(this, proto.ondewo.nlu.EntityType.Entity, 2));
|
|
4309
|
+
};
|
|
4310
|
+
|
|
4311
|
+
|
|
4312
|
+
/**
|
|
4313
|
+
* @param {?proto.ondewo.nlu.EntityType.Entity|undefined} value
|
|
4314
|
+
* @return {!proto.ondewo.nlu.CreateEntityRequest} returns this
|
|
4315
|
+
*/
|
|
4316
|
+
proto.ondewo.nlu.CreateEntityRequest.prototype.setEntity = function(value) {
|
|
4317
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
4318
|
+
};
|
|
4319
|
+
|
|
4320
|
+
|
|
4321
|
+
/**
|
|
4322
|
+
* Clears the message field making it undefined.
|
|
4323
|
+
* @return {!proto.ondewo.nlu.CreateEntityRequest} returns this
|
|
4324
|
+
*/
|
|
4325
|
+
proto.ondewo.nlu.CreateEntityRequest.prototype.clearEntity = function() {
|
|
4326
|
+
return this.setEntity(undefined);
|
|
4327
|
+
};
|
|
4328
|
+
|
|
4329
|
+
|
|
4330
|
+
/**
|
|
4331
|
+
* Returns whether this field is set.
|
|
4332
|
+
* @return {boolean}
|
|
4333
|
+
*/
|
|
4334
|
+
proto.ondewo.nlu.CreateEntityRequest.prototype.hasEntity = function() {
|
|
4335
|
+
return jspb.Message.getField(this, 2) != null;
|
|
4089
4336
|
};
|
|
4090
4337
|
|
|
4091
4338
|
|
|
@@ -4129,7 +4376,7 @@ proto.ondewo.nlu.BatchCreateEntitiesRequest.prototype.toObject = function(opt_in
|
|
|
4129
4376
|
proto.ondewo.nlu.BatchCreateEntitiesRequest.toObject = function(includeInstance, msg) {
|
|
4130
4377
|
var f, obj = {
|
|
4131
4378
|
createEntityRequestsList: jspb.Message.toObjectList(msg.getCreateEntityRequestsList(),
|
|
4132
|
-
proto.ondewo.nlu.
|
|
4379
|
+
proto.ondewo.nlu.CreateEntityRequest.toObject, includeInstance)
|
|
4133
4380
|
};
|
|
4134
4381
|
|
|
4135
4382
|
if (includeInstance) {
|
|
@@ -4167,8 +4414,8 @@ proto.ondewo.nlu.BatchCreateEntitiesRequest.deserializeBinaryFromReader = functi
|
|
|
4167
4414
|
var field = reader.getFieldNumber();
|
|
4168
4415
|
switch (field) {
|
|
4169
4416
|
case 1:
|
|
4170
|
-
var value = new proto.ondewo.nlu.
|
|
4171
|
-
reader.readMessage(value,proto.ondewo.nlu.
|
|
4417
|
+
var value = new proto.ondewo.nlu.CreateEntityRequest;
|
|
4418
|
+
reader.readMessage(value,proto.ondewo.nlu.CreateEntityRequest.deserializeBinaryFromReader);
|
|
4172
4419
|
msg.addCreateEntityRequests(value);
|
|
4173
4420
|
break;
|
|
4174
4421
|
default:
|
|
@@ -4205,12 +4452,57 @@ proto.ondewo.nlu.BatchCreateEntitiesRequest.serializeBinaryToWriter = function(m
|
|
|
4205
4452
|
writer.writeRepeatedMessage(
|
|
4206
4453
|
1,
|
|
4207
4454
|
f,
|
|
4208
|
-
proto.ondewo.nlu.
|
|
4455
|
+
proto.ondewo.nlu.CreateEntityRequest.serializeBinaryToWriter
|
|
4209
4456
|
);
|
|
4210
4457
|
}
|
|
4211
4458
|
};
|
|
4212
4459
|
|
|
4213
4460
|
|
|
4461
|
+
/**
|
|
4462
|
+
* repeated CreateEntityRequest create_entity_requests = 1;
|
|
4463
|
+
* @return {!Array<!proto.ondewo.nlu.CreateEntityRequest>}
|
|
4464
|
+
*/
|
|
4465
|
+
proto.ondewo.nlu.BatchCreateEntitiesRequest.prototype.getCreateEntityRequestsList = function() {
|
|
4466
|
+
return /** @type{!Array<!proto.ondewo.nlu.CreateEntityRequest>} */ (
|
|
4467
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ondewo.nlu.CreateEntityRequest, 1));
|
|
4468
|
+
};
|
|
4469
|
+
|
|
4470
|
+
|
|
4471
|
+
/**
|
|
4472
|
+
* @param {!Array<!proto.ondewo.nlu.CreateEntityRequest>} value
|
|
4473
|
+
* @return {!proto.ondewo.nlu.BatchCreateEntitiesRequest} returns this
|
|
4474
|
+
*/
|
|
4475
|
+
proto.ondewo.nlu.BatchCreateEntitiesRequest.prototype.setCreateEntityRequestsList = function(value) {
|
|
4476
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
4477
|
+
};
|
|
4478
|
+
|
|
4479
|
+
|
|
4480
|
+
/**
|
|
4481
|
+
* @param {!proto.ondewo.nlu.CreateEntityRequest=} opt_value
|
|
4482
|
+
* @param {number=} opt_index
|
|
4483
|
+
* @return {!proto.ondewo.nlu.CreateEntityRequest}
|
|
4484
|
+
*/
|
|
4485
|
+
proto.ondewo.nlu.BatchCreateEntitiesRequest.prototype.addCreateEntityRequests = function(opt_value, opt_index) {
|
|
4486
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ondewo.nlu.CreateEntityRequest, opt_index);
|
|
4487
|
+
};
|
|
4488
|
+
|
|
4489
|
+
|
|
4490
|
+
/**
|
|
4491
|
+
* Clears the list making it empty but non-null.
|
|
4492
|
+
* @return {!proto.ondewo.nlu.BatchCreateEntitiesRequest} returns this
|
|
4493
|
+
*/
|
|
4494
|
+
proto.ondewo.nlu.BatchCreateEntitiesRequest.prototype.clearCreateEntityRequestsList = function() {
|
|
4495
|
+
return this.setCreateEntityRequestsList([]);
|
|
4496
|
+
};
|
|
4497
|
+
|
|
4498
|
+
|
|
4499
|
+
|
|
4500
|
+
/**
|
|
4501
|
+
* List of repeated fields within this message type.
|
|
4502
|
+
* @private {!Array<number>}
|
|
4503
|
+
* @const
|
|
4504
|
+
*/
|
|
4505
|
+
proto.ondewo.nlu.BatchUpdateEntitiesRequest.repeatedFields_ = [1];
|
|
4214
4506
|
|
|
4215
4507
|
|
|
4216
4508
|
|
|
@@ -4227,8 +4519,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
4227
4519
|
* http://goto/soy-param-migration
|
|
4228
4520
|
* @return {!Object}
|
|
4229
4521
|
*/
|
|
4230
|
-
proto.ondewo.nlu.
|
|
4231
|
-
return proto.ondewo.nlu.
|
|
4522
|
+
proto.ondewo.nlu.BatchUpdateEntitiesRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4523
|
+
return proto.ondewo.nlu.BatchUpdateEntitiesRequest.toObject(opt_includeInstance, this);
|
|
4232
4524
|
};
|
|
4233
4525
|
|
|
4234
4526
|
|
|
@@ -4237,14 +4529,14 @@ proto.ondewo.nlu.BatchCreateEntitiesRequest.CreateEntityRequest.prototype.toObje
|
|
|
4237
4529
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4238
4530
|
* the JSPB instance for transitional soy proto support:
|
|
4239
4531
|
* http://goto/soy-param-migration
|
|
4240
|
-
* @param {!proto.ondewo.nlu.
|
|
4532
|
+
* @param {!proto.ondewo.nlu.BatchUpdateEntitiesRequest} msg The msg instance to transform.
|
|
4241
4533
|
* @return {!Object}
|
|
4242
4534
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4243
4535
|
*/
|
|
4244
|
-
proto.ondewo.nlu.
|
|
4536
|
+
proto.ondewo.nlu.BatchUpdateEntitiesRequest.toObject = function(includeInstance, msg) {
|
|
4245
4537
|
var f, obj = {
|
|
4246
|
-
|
|
4247
|
-
|
|
4538
|
+
entitiesList: jspb.Message.toObjectList(msg.getEntitiesList(),
|
|
4539
|
+
proto.ondewo.nlu.EntityType.Entity.toObject, includeInstance)
|
|
4248
4540
|
};
|
|
4249
4541
|
|
|
4250
4542
|
if (includeInstance) {
|
|
@@ -4258,23 +4550,23 @@ proto.ondewo.nlu.BatchCreateEntitiesRequest.CreateEntityRequest.toObject = funct
|
|
|
4258
4550
|
/**
|
|
4259
4551
|
* Deserializes binary data (in protobuf wire format).
|
|
4260
4552
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4261
|
-
* @return {!proto.ondewo.nlu.
|
|
4553
|
+
* @return {!proto.ondewo.nlu.BatchUpdateEntitiesRequest}
|
|
4262
4554
|
*/
|
|
4263
|
-
proto.ondewo.nlu.
|
|
4555
|
+
proto.ondewo.nlu.BatchUpdateEntitiesRequest.deserializeBinary = function(bytes) {
|
|
4264
4556
|
var reader = new jspb.BinaryReader(bytes);
|
|
4265
|
-
var msg = new proto.ondewo.nlu.
|
|
4266
|
-
return proto.ondewo.nlu.
|
|
4557
|
+
var msg = new proto.ondewo.nlu.BatchUpdateEntitiesRequest;
|
|
4558
|
+
return proto.ondewo.nlu.BatchUpdateEntitiesRequest.deserializeBinaryFromReader(msg, reader);
|
|
4267
4559
|
};
|
|
4268
4560
|
|
|
4269
4561
|
|
|
4270
4562
|
/**
|
|
4271
4563
|
* Deserializes binary data (in protobuf wire format) from the
|
|
4272
4564
|
* given reader into the given message object.
|
|
4273
|
-
* @param {!proto.ondewo.nlu.
|
|
4565
|
+
* @param {!proto.ondewo.nlu.BatchUpdateEntitiesRequest} msg The message object to deserialize into.
|
|
4274
4566
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4275
|
-
* @return {!proto.ondewo.nlu.
|
|
4567
|
+
* @return {!proto.ondewo.nlu.BatchUpdateEntitiesRequest}
|
|
4276
4568
|
*/
|
|
4277
|
-
proto.ondewo.nlu.
|
|
4569
|
+
proto.ondewo.nlu.BatchUpdateEntitiesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4278
4570
|
while (reader.nextField()) {
|
|
4279
4571
|
if (reader.isEndGroup()) {
|
|
4280
4572
|
break;
|
|
@@ -4282,13 +4574,9 @@ proto.ondewo.nlu.BatchCreateEntitiesRequest.CreateEntityRequest.deserializeBinar
|
|
|
4282
4574
|
var field = reader.getFieldNumber();
|
|
4283
4575
|
switch (field) {
|
|
4284
4576
|
case 1:
|
|
4285
|
-
var value = /** @type {string} */ (reader.readString());
|
|
4286
|
-
msg.setEntityTypeName(value);
|
|
4287
|
-
break;
|
|
4288
|
-
case 2:
|
|
4289
4577
|
var value = new proto.ondewo.nlu.EntityType.Entity;
|
|
4290
4578
|
reader.readMessage(value,proto.ondewo.nlu.EntityType.Entity.deserializeBinaryFromReader);
|
|
4291
|
-
msg.
|
|
4579
|
+
msg.addEntities(value);
|
|
4292
4580
|
break;
|
|
4293
4581
|
default:
|
|
4294
4582
|
reader.skipField();
|
|
@@ -4303,9 +4591,9 @@ proto.ondewo.nlu.BatchCreateEntitiesRequest.CreateEntityRequest.deserializeBinar
|
|
|
4303
4591
|
* Serializes the message to binary data (in protobuf wire format).
|
|
4304
4592
|
* @return {!Uint8Array}
|
|
4305
4593
|
*/
|
|
4306
|
-
proto.ondewo.nlu.
|
|
4594
|
+
proto.ondewo.nlu.BatchUpdateEntitiesRequest.prototype.serializeBinary = function() {
|
|
4307
4595
|
var writer = new jspb.BinaryWriter();
|
|
4308
|
-
proto.ondewo.nlu.
|
|
4596
|
+
proto.ondewo.nlu.BatchUpdateEntitiesRequest.serializeBinaryToWriter(this, writer);
|
|
4309
4597
|
return writer.getResultBuffer();
|
|
4310
4598
|
};
|
|
4311
4599
|
|
|
@@ -4313,23 +4601,16 @@ proto.ondewo.nlu.BatchCreateEntitiesRequest.CreateEntityRequest.prototype.serial
|
|
|
4313
4601
|
/**
|
|
4314
4602
|
* Serializes the given message to binary data (in protobuf wire
|
|
4315
4603
|
* format), writing to the given BinaryWriter.
|
|
4316
|
-
* @param {!proto.ondewo.nlu.
|
|
4604
|
+
* @param {!proto.ondewo.nlu.BatchUpdateEntitiesRequest} message
|
|
4317
4605
|
* @param {!jspb.BinaryWriter} writer
|
|
4318
4606
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4319
4607
|
*/
|
|
4320
|
-
proto.ondewo.nlu.
|
|
4608
|
+
proto.ondewo.nlu.BatchUpdateEntitiesRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4321
4609
|
var f = undefined;
|
|
4322
|
-
f = message.
|
|
4610
|
+
f = message.getEntitiesList();
|
|
4323
4611
|
if (f.length > 0) {
|
|
4324
|
-
writer.
|
|
4612
|
+
writer.writeRepeatedMessage(
|
|
4325
4613
|
1,
|
|
4326
|
-
f
|
|
4327
|
-
);
|
|
4328
|
-
}
|
|
4329
|
-
f = message.getEntity();
|
|
4330
|
-
if (f != null) {
|
|
4331
|
-
writer.writeMessage(
|
|
4332
|
-
2,
|
|
4333
4614
|
f,
|
|
4334
4615
|
proto.ondewo.nlu.EntityType.Entity.serializeBinaryToWriter
|
|
4335
4616
|
);
|
|
@@ -4338,105 +4619,194 @@ proto.ondewo.nlu.BatchCreateEntitiesRequest.CreateEntityRequest.serializeBinaryT
|
|
|
4338
4619
|
|
|
4339
4620
|
|
|
4340
4621
|
/**
|
|
4341
|
-
*
|
|
4342
|
-
* @return {
|
|
4622
|
+
* repeated EntityType.Entity entities = 1;
|
|
4623
|
+
* @return {!Array<!proto.ondewo.nlu.EntityType.Entity>}
|
|
4343
4624
|
*/
|
|
4344
|
-
proto.ondewo.nlu.
|
|
4345
|
-
return /** @type
|
|
4625
|
+
proto.ondewo.nlu.BatchUpdateEntitiesRequest.prototype.getEntitiesList = function() {
|
|
4626
|
+
return /** @type{!Array<!proto.ondewo.nlu.EntityType.Entity>} */ (
|
|
4627
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ondewo.nlu.EntityType.Entity, 1));
|
|
4346
4628
|
};
|
|
4347
4629
|
|
|
4348
4630
|
|
|
4349
4631
|
/**
|
|
4350
|
-
* @param {
|
|
4351
|
-
* @return {!proto.ondewo.nlu.
|
|
4632
|
+
* @param {!Array<!proto.ondewo.nlu.EntityType.Entity>} value
|
|
4633
|
+
* @return {!proto.ondewo.nlu.BatchUpdateEntitiesRequest} returns this
|
|
4634
|
+
*/
|
|
4635
|
+
proto.ondewo.nlu.BatchUpdateEntitiesRequest.prototype.setEntitiesList = function(value) {
|
|
4636
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
4637
|
+
};
|
|
4638
|
+
|
|
4639
|
+
|
|
4640
|
+
/**
|
|
4641
|
+
* @param {!proto.ondewo.nlu.EntityType.Entity=} opt_value
|
|
4642
|
+
* @param {number=} opt_index
|
|
4643
|
+
* @return {!proto.ondewo.nlu.EntityType.Entity}
|
|
4352
4644
|
*/
|
|
4353
|
-
proto.ondewo.nlu.
|
|
4354
|
-
return jspb.Message.
|
|
4645
|
+
proto.ondewo.nlu.BatchUpdateEntitiesRequest.prototype.addEntities = function(opt_value, opt_index) {
|
|
4646
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ondewo.nlu.EntityType.Entity, opt_index);
|
|
4355
4647
|
};
|
|
4356
4648
|
|
|
4357
4649
|
|
|
4358
4650
|
/**
|
|
4359
|
-
*
|
|
4360
|
-
* @return {
|
|
4651
|
+
* Clears the list making it empty but non-null.
|
|
4652
|
+
* @return {!proto.ondewo.nlu.BatchUpdateEntitiesRequest} returns this
|
|
4361
4653
|
*/
|
|
4362
|
-
proto.ondewo.nlu.
|
|
4363
|
-
return
|
|
4364
|
-
jspb.Message.getWrapperField(this, proto.ondewo.nlu.EntityType.Entity, 2));
|
|
4654
|
+
proto.ondewo.nlu.BatchUpdateEntitiesRequest.prototype.clearEntitiesList = function() {
|
|
4655
|
+
return this.setEntitiesList([]);
|
|
4365
4656
|
};
|
|
4366
4657
|
|
|
4367
4658
|
|
|
4659
|
+
|
|
4660
|
+
|
|
4661
|
+
|
|
4662
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4368
4663
|
/**
|
|
4369
|
-
*
|
|
4370
|
-
*
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4664
|
+
* Creates an object representation of this proto.
|
|
4665
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4666
|
+
* Optional fields that are not set will be set to undefined.
|
|
4667
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4668
|
+
* For the list of reserved names please see:
|
|
4669
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4670
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4671
|
+
* JSPB instance for transitional soy proto support:
|
|
4672
|
+
* http://goto/soy-param-migration
|
|
4673
|
+
* @return {!Object}
|
|
4674
|
+
*/
|
|
4675
|
+
proto.ondewo.nlu.UpdateEntityRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4676
|
+
return proto.ondewo.nlu.UpdateEntityRequest.toObject(opt_includeInstance, this);
|
|
4374
4677
|
};
|
|
4375
4678
|
|
|
4376
4679
|
|
|
4377
4680
|
/**
|
|
4378
|
-
*
|
|
4379
|
-
* @
|
|
4681
|
+
* Static version of the {@see toObject} method.
|
|
4682
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4683
|
+
* the JSPB instance for transitional soy proto support:
|
|
4684
|
+
* http://goto/soy-param-migration
|
|
4685
|
+
* @param {!proto.ondewo.nlu.UpdateEntityRequest} msg The msg instance to transform.
|
|
4686
|
+
* @return {!Object}
|
|
4687
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4380
4688
|
*/
|
|
4381
|
-
proto.ondewo.nlu.
|
|
4382
|
-
|
|
4689
|
+
proto.ondewo.nlu.UpdateEntityRequest.toObject = function(includeInstance, msg) {
|
|
4690
|
+
var f, obj = {
|
|
4691
|
+
entity: (f = msg.getEntity()) && proto.ondewo.nlu.EntityType.Entity.toObject(includeInstance, f)
|
|
4692
|
+
};
|
|
4693
|
+
|
|
4694
|
+
if (includeInstance) {
|
|
4695
|
+
obj.$jspbMessageInstance = msg;
|
|
4696
|
+
}
|
|
4697
|
+
return obj;
|
|
4383
4698
|
};
|
|
4699
|
+
}
|
|
4384
4700
|
|
|
4385
4701
|
|
|
4386
4702
|
/**
|
|
4387
|
-
*
|
|
4388
|
-
* @
|
|
4703
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4704
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4705
|
+
* @return {!proto.ondewo.nlu.UpdateEntityRequest}
|
|
4389
4706
|
*/
|
|
4390
|
-
proto.ondewo.nlu.
|
|
4391
|
-
|
|
4707
|
+
proto.ondewo.nlu.UpdateEntityRequest.deserializeBinary = function(bytes) {
|
|
4708
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4709
|
+
var msg = new proto.ondewo.nlu.UpdateEntityRequest;
|
|
4710
|
+
return proto.ondewo.nlu.UpdateEntityRequest.deserializeBinaryFromReader(msg, reader);
|
|
4392
4711
|
};
|
|
4393
4712
|
|
|
4394
4713
|
|
|
4395
4714
|
/**
|
|
4396
|
-
*
|
|
4397
|
-
*
|
|
4715
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4716
|
+
* given reader into the given message object.
|
|
4717
|
+
* @param {!proto.ondewo.nlu.UpdateEntityRequest} msg The message object to deserialize into.
|
|
4718
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4719
|
+
* @return {!proto.ondewo.nlu.UpdateEntityRequest}
|
|
4398
4720
|
*/
|
|
4399
|
-
proto.ondewo.nlu.
|
|
4400
|
-
|
|
4401
|
-
|
|
4721
|
+
proto.ondewo.nlu.UpdateEntityRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4722
|
+
while (reader.nextField()) {
|
|
4723
|
+
if (reader.isEndGroup()) {
|
|
4724
|
+
break;
|
|
4725
|
+
}
|
|
4726
|
+
var field = reader.getFieldNumber();
|
|
4727
|
+
switch (field) {
|
|
4728
|
+
case 1:
|
|
4729
|
+
var value = new proto.ondewo.nlu.EntityType.Entity;
|
|
4730
|
+
reader.readMessage(value,proto.ondewo.nlu.EntityType.Entity.deserializeBinaryFromReader);
|
|
4731
|
+
msg.setEntity(value);
|
|
4732
|
+
break;
|
|
4733
|
+
default:
|
|
4734
|
+
reader.skipField();
|
|
4735
|
+
break;
|
|
4736
|
+
}
|
|
4737
|
+
}
|
|
4738
|
+
return msg;
|
|
4402
4739
|
};
|
|
4403
4740
|
|
|
4404
4741
|
|
|
4405
4742
|
/**
|
|
4406
|
-
*
|
|
4407
|
-
* @return {!
|
|
4408
|
-
*/
|
|
4409
|
-
proto.ondewo.nlu.
|
|
4410
|
-
|
|
4743
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4744
|
+
* @return {!Uint8Array}
|
|
4745
|
+
*/
|
|
4746
|
+
proto.ondewo.nlu.UpdateEntityRequest.prototype.serializeBinary = function() {
|
|
4747
|
+
var writer = new jspb.BinaryWriter();
|
|
4748
|
+
proto.ondewo.nlu.UpdateEntityRequest.serializeBinaryToWriter(this, writer);
|
|
4749
|
+
return writer.getResultBuffer();
|
|
4411
4750
|
};
|
|
4412
4751
|
|
|
4413
4752
|
|
|
4414
4753
|
/**
|
|
4415
|
-
*
|
|
4416
|
-
*
|
|
4417
|
-
* @
|
|
4754
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4755
|
+
* format), writing to the given BinaryWriter.
|
|
4756
|
+
* @param {!proto.ondewo.nlu.UpdateEntityRequest} message
|
|
4757
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4758
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4418
4759
|
*/
|
|
4419
|
-
proto.ondewo.nlu.
|
|
4420
|
-
|
|
4760
|
+
proto.ondewo.nlu.UpdateEntityRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4761
|
+
var f = undefined;
|
|
4762
|
+
f = message.getEntity();
|
|
4763
|
+
if (f != null) {
|
|
4764
|
+
writer.writeMessage(
|
|
4765
|
+
1,
|
|
4766
|
+
f,
|
|
4767
|
+
proto.ondewo.nlu.EntityType.Entity.serializeBinaryToWriter
|
|
4768
|
+
);
|
|
4769
|
+
}
|
|
4421
4770
|
};
|
|
4422
4771
|
|
|
4423
4772
|
|
|
4424
4773
|
/**
|
|
4425
|
-
*
|
|
4426
|
-
* @return {
|
|
4774
|
+
* optional EntityType.Entity entity = 1;
|
|
4775
|
+
* @return {?proto.ondewo.nlu.EntityType.Entity}
|
|
4427
4776
|
*/
|
|
4428
|
-
proto.ondewo.nlu.
|
|
4429
|
-
return
|
|
4777
|
+
proto.ondewo.nlu.UpdateEntityRequest.prototype.getEntity = function() {
|
|
4778
|
+
return /** @type{?proto.ondewo.nlu.EntityType.Entity} */ (
|
|
4779
|
+
jspb.Message.getWrapperField(this, proto.ondewo.nlu.EntityType.Entity, 1));
|
|
4430
4780
|
};
|
|
4431
4781
|
|
|
4432
4782
|
|
|
4783
|
+
/**
|
|
4784
|
+
* @param {?proto.ondewo.nlu.EntityType.Entity|undefined} value
|
|
4785
|
+
* @return {!proto.ondewo.nlu.UpdateEntityRequest} returns this
|
|
4786
|
+
*/
|
|
4787
|
+
proto.ondewo.nlu.UpdateEntityRequest.prototype.setEntity = function(value) {
|
|
4788
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
4789
|
+
};
|
|
4790
|
+
|
|
4433
4791
|
|
|
4434
4792
|
/**
|
|
4435
|
-
*
|
|
4436
|
-
* @
|
|
4437
|
-
|
|
4793
|
+
* Clears the message field making it undefined.
|
|
4794
|
+
* @return {!proto.ondewo.nlu.UpdateEntityRequest} returns this
|
|
4795
|
+
*/
|
|
4796
|
+
proto.ondewo.nlu.UpdateEntityRequest.prototype.clearEntity = function() {
|
|
4797
|
+
return this.setEntity(undefined);
|
|
4798
|
+
};
|
|
4799
|
+
|
|
4800
|
+
|
|
4801
|
+
/**
|
|
4802
|
+
* Returns whether this field is set.
|
|
4803
|
+
* @return {boolean}
|
|
4438
4804
|
*/
|
|
4439
|
-
proto.ondewo.nlu.
|
|
4805
|
+
proto.ondewo.nlu.UpdateEntityRequest.prototype.hasEntity = function() {
|
|
4806
|
+
return jspb.Message.getField(this, 1) != null;
|
|
4807
|
+
};
|
|
4808
|
+
|
|
4809
|
+
|
|
4440
4810
|
|
|
4441
4811
|
|
|
4442
4812
|
|
|
@@ -4453,8 +4823,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
4453
4823
|
* http://goto/soy-param-migration
|
|
4454
4824
|
* @return {!Object}
|
|
4455
4825
|
*/
|
|
4456
|
-
proto.ondewo.nlu.
|
|
4457
|
-
return proto.ondewo.nlu.
|
|
4826
|
+
proto.ondewo.nlu.GetEntityRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4827
|
+
return proto.ondewo.nlu.GetEntityRequest.toObject(opt_includeInstance, this);
|
|
4458
4828
|
};
|
|
4459
4829
|
|
|
4460
4830
|
|
|
@@ -4463,14 +4833,13 @@ proto.ondewo.nlu.BatchUpdateEntitiesRequest.prototype.toObject = function(opt_in
|
|
|
4463
4833
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4464
4834
|
* the JSPB instance for transitional soy proto support:
|
|
4465
4835
|
* http://goto/soy-param-migration
|
|
4466
|
-
* @param {!proto.ondewo.nlu.
|
|
4836
|
+
* @param {!proto.ondewo.nlu.GetEntityRequest} msg The msg instance to transform.
|
|
4467
4837
|
* @return {!Object}
|
|
4468
4838
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4469
4839
|
*/
|
|
4470
|
-
proto.ondewo.nlu.
|
|
4840
|
+
proto.ondewo.nlu.GetEntityRequest.toObject = function(includeInstance, msg) {
|
|
4471
4841
|
var f, obj = {
|
|
4472
|
-
|
|
4473
|
-
proto.ondewo.nlu.EntityType.Entity.toObject, includeInstance)
|
|
4842
|
+
name: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
4474
4843
|
};
|
|
4475
4844
|
|
|
4476
4845
|
if (includeInstance) {
|
|
@@ -4484,23 +4853,23 @@ proto.ondewo.nlu.BatchUpdateEntitiesRequest.toObject = function(includeInstance,
|
|
|
4484
4853
|
/**
|
|
4485
4854
|
* Deserializes binary data (in protobuf wire format).
|
|
4486
4855
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4487
|
-
* @return {!proto.ondewo.nlu.
|
|
4856
|
+
* @return {!proto.ondewo.nlu.GetEntityRequest}
|
|
4488
4857
|
*/
|
|
4489
|
-
proto.ondewo.nlu.
|
|
4858
|
+
proto.ondewo.nlu.GetEntityRequest.deserializeBinary = function(bytes) {
|
|
4490
4859
|
var reader = new jspb.BinaryReader(bytes);
|
|
4491
|
-
var msg = new proto.ondewo.nlu.
|
|
4492
|
-
return proto.ondewo.nlu.
|
|
4860
|
+
var msg = new proto.ondewo.nlu.GetEntityRequest;
|
|
4861
|
+
return proto.ondewo.nlu.GetEntityRequest.deserializeBinaryFromReader(msg, reader);
|
|
4493
4862
|
};
|
|
4494
4863
|
|
|
4495
4864
|
|
|
4496
4865
|
/**
|
|
4497
4866
|
* Deserializes binary data (in protobuf wire format) from the
|
|
4498
4867
|
* given reader into the given message object.
|
|
4499
|
-
* @param {!proto.ondewo.nlu.
|
|
4868
|
+
* @param {!proto.ondewo.nlu.GetEntityRequest} msg The message object to deserialize into.
|
|
4500
4869
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4501
|
-
* @return {!proto.ondewo.nlu.
|
|
4870
|
+
* @return {!proto.ondewo.nlu.GetEntityRequest}
|
|
4502
4871
|
*/
|
|
4503
|
-
proto.ondewo.nlu.
|
|
4872
|
+
proto.ondewo.nlu.GetEntityRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4504
4873
|
while (reader.nextField()) {
|
|
4505
4874
|
if (reader.isEndGroup()) {
|
|
4506
4875
|
break;
|
|
@@ -4508,9 +4877,8 @@ proto.ondewo.nlu.BatchUpdateEntitiesRequest.deserializeBinaryFromReader = functi
|
|
|
4508
4877
|
var field = reader.getFieldNumber();
|
|
4509
4878
|
switch (field) {
|
|
4510
4879
|
case 1:
|
|
4511
|
-
var value =
|
|
4512
|
-
|
|
4513
|
-
msg.addEntities(value);
|
|
4880
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4881
|
+
msg.setName(value);
|
|
4514
4882
|
break;
|
|
4515
4883
|
default:
|
|
4516
4884
|
reader.skipField();
|
|
@@ -4525,9 +4893,9 @@ proto.ondewo.nlu.BatchUpdateEntitiesRequest.deserializeBinaryFromReader = functi
|
|
|
4525
4893
|
* Serializes the message to binary data (in protobuf wire format).
|
|
4526
4894
|
* @return {!Uint8Array}
|
|
4527
4895
|
*/
|
|
4528
|
-
proto.ondewo.nlu.
|
|
4896
|
+
proto.ondewo.nlu.GetEntityRequest.prototype.serializeBinary = function() {
|
|
4529
4897
|
var writer = new jspb.BinaryWriter();
|
|
4530
|
-
proto.ondewo.nlu.
|
|
4898
|
+
proto.ondewo.nlu.GetEntityRequest.serializeBinaryToWriter(this, writer);
|
|
4531
4899
|
return writer.getResultBuffer();
|
|
4532
4900
|
};
|
|
4533
4901
|
|
|
@@ -4535,58 +4903,37 @@ proto.ondewo.nlu.BatchUpdateEntitiesRequest.prototype.serializeBinary = function
|
|
|
4535
4903
|
/**
|
|
4536
4904
|
* Serializes the given message to binary data (in protobuf wire
|
|
4537
4905
|
* format), writing to the given BinaryWriter.
|
|
4538
|
-
* @param {!proto.ondewo.nlu.
|
|
4906
|
+
* @param {!proto.ondewo.nlu.GetEntityRequest} message
|
|
4539
4907
|
* @param {!jspb.BinaryWriter} writer
|
|
4540
4908
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4541
4909
|
*/
|
|
4542
|
-
proto.ondewo.nlu.
|
|
4910
|
+
proto.ondewo.nlu.GetEntityRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4543
4911
|
var f = undefined;
|
|
4544
|
-
f = message.
|
|
4912
|
+
f = message.getName();
|
|
4545
4913
|
if (f.length > 0) {
|
|
4546
|
-
writer.
|
|
4914
|
+
writer.writeString(
|
|
4547
4915
|
1,
|
|
4548
|
-
f
|
|
4549
|
-
proto.ondewo.nlu.EntityType.Entity.serializeBinaryToWriter
|
|
4916
|
+
f
|
|
4550
4917
|
);
|
|
4551
4918
|
}
|
|
4552
4919
|
};
|
|
4553
4920
|
|
|
4554
4921
|
|
|
4555
4922
|
/**
|
|
4556
|
-
*
|
|
4557
|
-
* @return {
|
|
4558
|
-
*/
|
|
4559
|
-
proto.ondewo.nlu.BatchUpdateEntitiesRequest.prototype.getEntitiesList = function() {
|
|
4560
|
-
return /** @type{!Array<!proto.ondewo.nlu.EntityType.Entity>} */ (
|
|
4561
|
-
jspb.Message.getRepeatedWrapperField(this, proto.ondewo.nlu.EntityType.Entity, 1));
|
|
4562
|
-
};
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
/**
|
|
4566
|
-
* @param {!Array<!proto.ondewo.nlu.EntityType.Entity>} value
|
|
4567
|
-
* @return {!proto.ondewo.nlu.BatchUpdateEntitiesRequest} returns this
|
|
4568
|
-
*/
|
|
4569
|
-
proto.ondewo.nlu.BatchUpdateEntitiesRequest.prototype.setEntitiesList = function(value) {
|
|
4570
|
-
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
4571
|
-
};
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
/**
|
|
4575
|
-
* @param {!proto.ondewo.nlu.EntityType.Entity=} opt_value
|
|
4576
|
-
* @param {number=} opt_index
|
|
4577
|
-
* @return {!proto.ondewo.nlu.EntityType.Entity}
|
|
4923
|
+
* optional string name = 1;
|
|
4924
|
+
* @return {string}
|
|
4578
4925
|
*/
|
|
4579
|
-
proto.ondewo.nlu.
|
|
4580
|
-
return jspb.Message.
|
|
4926
|
+
proto.ondewo.nlu.GetEntityRequest.prototype.getName = function() {
|
|
4927
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4581
4928
|
};
|
|
4582
4929
|
|
|
4583
4930
|
|
|
4584
4931
|
/**
|
|
4585
|
-
*
|
|
4586
|
-
* @return {!proto.ondewo.nlu.
|
|
4932
|
+
* @param {string} value
|
|
4933
|
+
* @return {!proto.ondewo.nlu.GetEntityRequest} returns this
|
|
4587
4934
|
*/
|
|
4588
|
-
proto.ondewo.nlu.
|
|
4589
|
-
return
|
|
4935
|
+
proto.ondewo.nlu.GetEntityRequest.prototype.setName = function(value) {
|
|
4936
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4590
4937
|
};
|
|
4591
4938
|
|
|
4592
4939
|
|
|
@@ -4903,13 +5250,6 @@ proto.ondewo.nlu.BatchDeleteEntitiesRequest.prototype.clearNamesList = function(
|
|
|
4903
5250
|
|
|
4904
5251
|
|
|
4905
5252
|
|
|
4906
|
-
/**
|
|
4907
|
-
* List of repeated fields within this message type.
|
|
4908
|
-
* @private {!Array<number>}
|
|
4909
|
-
* @const
|
|
4910
|
-
*/
|
|
4911
|
-
proto.ondewo.nlu.BatchDeleteEntitiesResponse.repeatedFields_ = [1];
|
|
4912
|
-
|
|
4913
5253
|
|
|
4914
5254
|
|
|
4915
5255
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -4925,8 +5265,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
4925
5265
|
* http://goto/soy-param-migration
|
|
4926
5266
|
* @return {!Object}
|
|
4927
5267
|
*/
|
|
4928
|
-
proto.ondewo.nlu.
|
|
4929
|
-
return proto.ondewo.nlu.
|
|
5268
|
+
proto.ondewo.nlu.DeleteEntityRequest.prototype.toObject = function(opt_includeInstance) {
|
|
5269
|
+
return proto.ondewo.nlu.DeleteEntityRequest.toObject(opt_includeInstance, this);
|
|
4930
5270
|
};
|
|
4931
5271
|
|
|
4932
5272
|
|
|
@@ -4935,15 +5275,13 @@ proto.ondewo.nlu.BatchDeleteEntitiesResponse.prototype.toObject = function(opt_i
|
|
|
4935
5275
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4936
5276
|
* the JSPB instance for transitional soy proto support:
|
|
4937
5277
|
* http://goto/soy-param-migration
|
|
4938
|
-
* @param {!proto.ondewo.nlu.
|
|
5278
|
+
* @param {!proto.ondewo.nlu.DeleteEntityRequest} msg The msg instance to transform.
|
|
4939
5279
|
* @return {!Object}
|
|
4940
5280
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4941
5281
|
*/
|
|
4942
|
-
proto.ondewo.nlu.
|
|
5282
|
+
proto.ondewo.nlu.DeleteEntityRequest.toObject = function(includeInstance, msg) {
|
|
4943
5283
|
var f, obj = {
|
|
4944
|
-
|
|
4945
|
-
proto.ondewo.nlu.BatchDeleteEntitiesResponse.DeleteEntityStatus.toObject, includeInstance),
|
|
4946
|
-
hasErrors: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
|
5284
|
+
name: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
4947
5285
|
};
|
|
4948
5286
|
|
|
4949
5287
|
if (includeInstance) {
|
|
@@ -4957,23 +5295,23 @@ proto.ondewo.nlu.BatchDeleteEntitiesResponse.toObject = function(includeInstance
|
|
|
4957
5295
|
/**
|
|
4958
5296
|
* Deserializes binary data (in protobuf wire format).
|
|
4959
5297
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4960
|
-
* @return {!proto.ondewo.nlu.
|
|
5298
|
+
* @return {!proto.ondewo.nlu.DeleteEntityRequest}
|
|
4961
5299
|
*/
|
|
4962
|
-
proto.ondewo.nlu.
|
|
5300
|
+
proto.ondewo.nlu.DeleteEntityRequest.deserializeBinary = function(bytes) {
|
|
4963
5301
|
var reader = new jspb.BinaryReader(bytes);
|
|
4964
|
-
var msg = new proto.ondewo.nlu.
|
|
4965
|
-
return proto.ondewo.nlu.
|
|
5302
|
+
var msg = new proto.ondewo.nlu.DeleteEntityRequest;
|
|
5303
|
+
return proto.ondewo.nlu.DeleteEntityRequest.deserializeBinaryFromReader(msg, reader);
|
|
4966
5304
|
};
|
|
4967
5305
|
|
|
4968
5306
|
|
|
4969
5307
|
/**
|
|
4970
5308
|
* Deserializes binary data (in protobuf wire format) from the
|
|
4971
5309
|
* given reader into the given message object.
|
|
4972
|
-
* @param {!proto.ondewo.nlu.
|
|
5310
|
+
* @param {!proto.ondewo.nlu.DeleteEntityRequest} msg The message object to deserialize into.
|
|
4973
5311
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4974
|
-
* @return {!proto.ondewo.nlu.
|
|
5312
|
+
* @return {!proto.ondewo.nlu.DeleteEntityRequest}
|
|
4975
5313
|
*/
|
|
4976
|
-
proto.ondewo.nlu.
|
|
5314
|
+
proto.ondewo.nlu.DeleteEntityRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4977
5315
|
while (reader.nextField()) {
|
|
4978
5316
|
if (reader.isEndGroup()) {
|
|
4979
5317
|
break;
|
|
@@ -4981,13 +5319,8 @@ proto.ondewo.nlu.BatchDeleteEntitiesResponse.deserializeBinaryFromReader = funct
|
|
|
4981
5319
|
var field = reader.getFieldNumber();
|
|
4982
5320
|
switch (field) {
|
|
4983
5321
|
case 1:
|
|
4984
|
-
var value =
|
|
4985
|
-
|
|
4986
|
-
msg.addDeleteStatuses(value);
|
|
4987
|
-
break;
|
|
4988
|
-
case 2:
|
|
4989
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
|
4990
|
-
msg.setHasErrors(value);
|
|
5322
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5323
|
+
msg.setName(value);
|
|
4991
5324
|
break;
|
|
4992
5325
|
default:
|
|
4993
5326
|
reader.skipField();
|
|
@@ -5002,9 +5335,9 @@ proto.ondewo.nlu.BatchDeleteEntitiesResponse.deserializeBinaryFromReader = funct
|
|
|
5002
5335
|
* Serializes the message to binary data (in protobuf wire format).
|
|
5003
5336
|
* @return {!Uint8Array}
|
|
5004
5337
|
*/
|
|
5005
|
-
proto.ondewo.nlu.
|
|
5338
|
+
proto.ondewo.nlu.DeleteEntityRequest.prototype.serializeBinary = function() {
|
|
5006
5339
|
var writer = new jspb.BinaryWriter();
|
|
5007
|
-
proto.ondewo.nlu.
|
|
5340
|
+
proto.ondewo.nlu.DeleteEntityRequest.serializeBinaryToWriter(this, writer);
|
|
5008
5341
|
return writer.getResultBuffer();
|
|
5009
5342
|
};
|
|
5010
5343
|
|
|
@@ -5012,30 +5345,40 @@ proto.ondewo.nlu.BatchDeleteEntitiesResponse.prototype.serializeBinary = functio
|
|
|
5012
5345
|
/**
|
|
5013
5346
|
* Serializes the given message to binary data (in protobuf wire
|
|
5014
5347
|
* format), writing to the given BinaryWriter.
|
|
5015
|
-
* @param {!proto.ondewo.nlu.
|
|
5348
|
+
* @param {!proto.ondewo.nlu.DeleteEntityRequest} message
|
|
5016
5349
|
* @param {!jspb.BinaryWriter} writer
|
|
5017
5350
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5018
5351
|
*/
|
|
5019
|
-
proto.ondewo.nlu.
|
|
5352
|
+
proto.ondewo.nlu.DeleteEntityRequest.serializeBinaryToWriter = function(message, writer) {
|
|
5020
5353
|
var f = undefined;
|
|
5021
|
-
f = message.
|
|
5354
|
+
f = message.getName();
|
|
5022
5355
|
if (f.length > 0) {
|
|
5023
|
-
writer.
|
|
5356
|
+
writer.writeString(
|
|
5024
5357
|
1,
|
|
5025
|
-
f,
|
|
5026
|
-
proto.ondewo.nlu.BatchDeleteEntitiesResponse.DeleteEntityStatus.serializeBinaryToWriter
|
|
5027
|
-
);
|
|
5028
|
-
}
|
|
5029
|
-
f = message.getHasErrors();
|
|
5030
|
-
if (f) {
|
|
5031
|
-
writer.writeBool(
|
|
5032
|
-
2,
|
|
5033
5358
|
f
|
|
5034
5359
|
);
|
|
5035
5360
|
}
|
|
5036
5361
|
};
|
|
5037
5362
|
|
|
5038
5363
|
|
|
5364
|
+
/**
|
|
5365
|
+
* optional string name = 1;
|
|
5366
|
+
* @return {string}
|
|
5367
|
+
*/
|
|
5368
|
+
proto.ondewo.nlu.DeleteEntityRequest.prototype.getName = function() {
|
|
5369
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
5370
|
+
};
|
|
5371
|
+
|
|
5372
|
+
|
|
5373
|
+
/**
|
|
5374
|
+
* @param {string} value
|
|
5375
|
+
* @return {!proto.ondewo.nlu.DeleteEntityRequest} returns this
|
|
5376
|
+
*/
|
|
5377
|
+
proto.ondewo.nlu.DeleteEntityRequest.prototype.setName = function(value) {
|
|
5378
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
5379
|
+
};
|
|
5380
|
+
|
|
5381
|
+
|
|
5039
5382
|
|
|
5040
5383
|
/**
|
|
5041
5384
|
* Oneof group definitions for this message. Each group defines the field
|
|
@@ -5045,22 +5388,22 @@ proto.ondewo.nlu.BatchDeleteEntitiesResponse.serializeBinaryToWriter = function(
|
|
|
5045
5388
|
* @private {!Array<!Array<number>>}
|
|
5046
5389
|
* @const
|
|
5047
5390
|
*/
|
|
5048
|
-
proto.ondewo.nlu.
|
|
5391
|
+
proto.ondewo.nlu.DeleteEntityStatus.oneofGroups_ = [[1,2]];
|
|
5049
5392
|
|
|
5050
5393
|
/**
|
|
5051
5394
|
* @enum {number}
|
|
5052
5395
|
*/
|
|
5053
|
-
proto.ondewo.nlu.
|
|
5396
|
+
proto.ondewo.nlu.DeleteEntityStatus.DeleteStatusCase = {
|
|
5054
5397
|
DELETE_STATUS_NOT_SET: 0,
|
|
5055
5398
|
SUCCESSFULLY_DELETED: 1,
|
|
5056
5399
|
ERROR_MESSAGE: 2
|
|
5057
5400
|
};
|
|
5058
5401
|
|
|
5059
5402
|
/**
|
|
5060
|
-
* @return {proto.ondewo.nlu.
|
|
5403
|
+
* @return {proto.ondewo.nlu.DeleteEntityStatus.DeleteStatusCase}
|
|
5061
5404
|
*/
|
|
5062
|
-
proto.ondewo.nlu.
|
|
5063
|
-
return /** @type {proto.ondewo.nlu.
|
|
5405
|
+
proto.ondewo.nlu.DeleteEntityStatus.prototype.getDeleteStatusCase = function() {
|
|
5406
|
+
return /** @type {proto.ondewo.nlu.DeleteEntityStatus.DeleteStatusCase} */(jspb.Message.computeOneofCase(this, proto.ondewo.nlu.DeleteEntityStatus.oneofGroups_[0]));
|
|
5064
5407
|
};
|
|
5065
5408
|
|
|
5066
5409
|
|
|
@@ -5078,8 +5421,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
5078
5421
|
* http://goto/soy-param-migration
|
|
5079
5422
|
* @return {!Object}
|
|
5080
5423
|
*/
|
|
5081
|
-
proto.ondewo.nlu.
|
|
5082
|
-
return proto.ondewo.nlu.
|
|
5424
|
+
proto.ondewo.nlu.DeleteEntityStatus.prototype.toObject = function(opt_includeInstance) {
|
|
5425
|
+
return proto.ondewo.nlu.DeleteEntityStatus.toObject(opt_includeInstance, this);
|
|
5083
5426
|
};
|
|
5084
5427
|
|
|
5085
5428
|
|
|
@@ -5088,11 +5431,11 @@ proto.ondewo.nlu.BatchDeleteEntitiesResponse.DeleteEntityStatus.prototype.toObje
|
|
|
5088
5431
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5089
5432
|
* the JSPB instance for transitional soy proto support:
|
|
5090
5433
|
* http://goto/soy-param-migration
|
|
5091
|
-
* @param {!proto.ondewo.nlu.
|
|
5434
|
+
* @param {!proto.ondewo.nlu.DeleteEntityStatus} msg The msg instance to transform.
|
|
5092
5435
|
* @return {!Object}
|
|
5093
5436
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5094
5437
|
*/
|
|
5095
|
-
proto.ondewo.nlu.
|
|
5438
|
+
proto.ondewo.nlu.DeleteEntityStatus.toObject = function(includeInstance, msg) {
|
|
5096
5439
|
var f, obj = {
|
|
5097
5440
|
successfullyDeleted: (f = msg.getSuccessfullyDeleted()) && google_protobuf_empty_pb.Empty.toObject(includeInstance, f),
|
|
5098
5441
|
errorMessage: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
@@ -5109,23 +5452,23 @@ proto.ondewo.nlu.BatchDeleteEntitiesResponse.DeleteEntityStatus.toObject = funct
|
|
|
5109
5452
|
/**
|
|
5110
5453
|
* Deserializes binary data (in protobuf wire format).
|
|
5111
5454
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5112
|
-
* @return {!proto.ondewo.nlu.
|
|
5455
|
+
* @return {!proto.ondewo.nlu.DeleteEntityStatus}
|
|
5113
5456
|
*/
|
|
5114
|
-
proto.ondewo.nlu.
|
|
5457
|
+
proto.ondewo.nlu.DeleteEntityStatus.deserializeBinary = function(bytes) {
|
|
5115
5458
|
var reader = new jspb.BinaryReader(bytes);
|
|
5116
|
-
var msg = new proto.ondewo.nlu.
|
|
5117
|
-
return proto.ondewo.nlu.
|
|
5459
|
+
var msg = new proto.ondewo.nlu.DeleteEntityStatus;
|
|
5460
|
+
return proto.ondewo.nlu.DeleteEntityStatus.deserializeBinaryFromReader(msg, reader);
|
|
5118
5461
|
};
|
|
5119
5462
|
|
|
5120
5463
|
|
|
5121
5464
|
/**
|
|
5122
5465
|
* Deserializes binary data (in protobuf wire format) from the
|
|
5123
5466
|
* given reader into the given message object.
|
|
5124
|
-
* @param {!proto.ondewo.nlu.
|
|
5467
|
+
* @param {!proto.ondewo.nlu.DeleteEntityStatus} msg The message object to deserialize into.
|
|
5125
5468
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5126
|
-
* @return {!proto.ondewo.nlu.
|
|
5469
|
+
* @return {!proto.ondewo.nlu.DeleteEntityStatus}
|
|
5127
5470
|
*/
|
|
5128
|
-
proto.ondewo.nlu.
|
|
5471
|
+
proto.ondewo.nlu.DeleteEntityStatus.deserializeBinaryFromReader = function(msg, reader) {
|
|
5129
5472
|
while (reader.nextField()) {
|
|
5130
5473
|
if (reader.isEndGroup()) {
|
|
5131
5474
|
break;
|
|
@@ -5154,9 +5497,9 @@ proto.ondewo.nlu.BatchDeleteEntitiesResponse.DeleteEntityStatus.deserializeBinar
|
|
|
5154
5497
|
* Serializes the message to binary data (in protobuf wire format).
|
|
5155
5498
|
* @return {!Uint8Array}
|
|
5156
5499
|
*/
|
|
5157
|
-
proto.ondewo.nlu.
|
|
5500
|
+
proto.ondewo.nlu.DeleteEntityStatus.prototype.serializeBinary = function() {
|
|
5158
5501
|
var writer = new jspb.BinaryWriter();
|
|
5159
|
-
proto.ondewo.nlu.
|
|
5502
|
+
proto.ondewo.nlu.DeleteEntityStatus.serializeBinaryToWriter(this, writer);
|
|
5160
5503
|
return writer.getResultBuffer();
|
|
5161
5504
|
};
|
|
5162
5505
|
|
|
@@ -5164,11 +5507,11 @@ proto.ondewo.nlu.BatchDeleteEntitiesResponse.DeleteEntityStatus.prototype.serial
|
|
|
5164
5507
|
/**
|
|
5165
5508
|
* Serializes the given message to binary data (in protobuf wire
|
|
5166
5509
|
* format), writing to the given BinaryWriter.
|
|
5167
|
-
* @param {!proto.ondewo.nlu.
|
|
5510
|
+
* @param {!proto.ondewo.nlu.DeleteEntityStatus} message
|
|
5168
5511
|
* @param {!jspb.BinaryWriter} writer
|
|
5169
5512
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5170
5513
|
*/
|
|
5171
|
-
proto.ondewo.nlu.
|
|
5514
|
+
proto.ondewo.nlu.DeleteEntityStatus.serializeBinaryToWriter = function(message, writer) {
|
|
5172
5515
|
var f = undefined;
|
|
5173
5516
|
f = message.getSuccessfullyDeleted();
|
|
5174
5517
|
if (f != null) {
|
|
@@ -5192,7 +5535,7 @@ proto.ondewo.nlu.BatchDeleteEntitiesResponse.DeleteEntityStatus.serializeBinaryT
|
|
|
5192
5535
|
* optional google.protobuf.Empty successfully_deleted = 1;
|
|
5193
5536
|
* @return {?proto.google.protobuf.Empty}
|
|
5194
5537
|
*/
|
|
5195
|
-
proto.ondewo.nlu.
|
|
5538
|
+
proto.ondewo.nlu.DeleteEntityStatus.prototype.getSuccessfullyDeleted = function() {
|
|
5196
5539
|
return /** @type{?proto.google.protobuf.Empty} */ (
|
|
5197
5540
|
jspb.Message.getWrapperField(this, google_protobuf_empty_pb.Empty, 1));
|
|
5198
5541
|
};
|
|
@@ -5200,18 +5543,18 @@ proto.ondewo.nlu.BatchDeleteEntitiesResponse.DeleteEntityStatus.prototype.getSuc
|
|
|
5200
5543
|
|
|
5201
5544
|
/**
|
|
5202
5545
|
* @param {?proto.google.protobuf.Empty|undefined} value
|
|
5203
|
-
* @return {!proto.ondewo.nlu.
|
|
5546
|
+
* @return {!proto.ondewo.nlu.DeleteEntityStatus} returns this
|
|
5204
5547
|
*/
|
|
5205
|
-
proto.ondewo.nlu.
|
|
5206
|
-
return jspb.Message.setOneofWrapperField(this, 1, proto.ondewo.nlu.
|
|
5548
|
+
proto.ondewo.nlu.DeleteEntityStatus.prototype.setSuccessfullyDeleted = function(value) {
|
|
5549
|
+
return jspb.Message.setOneofWrapperField(this, 1, proto.ondewo.nlu.DeleteEntityStatus.oneofGroups_[0], value);
|
|
5207
5550
|
};
|
|
5208
5551
|
|
|
5209
5552
|
|
|
5210
5553
|
/**
|
|
5211
5554
|
* Clears the message field making it undefined.
|
|
5212
|
-
* @return {!proto.ondewo.nlu.
|
|
5555
|
+
* @return {!proto.ondewo.nlu.DeleteEntityStatus} returns this
|
|
5213
5556
|
*/
|
|
5214
|
-
proto.ondewo.nlu.
|
|
5557
|
+
proto.ondewo.nlu.DeleteEntityStatus.prototype.clearSuccessfullyDeleted = function() {
|
|
5215
5558
|
return this.setSuccessfullyDeleted(undefined);
|
|
5216
5559
|
};
|
|
5217
5560
|
|
|
@@ -5220,7 +5563,7 @@ proto.ondewo.nlu.BatchDeleteEntitiesResponse.DeleteEntityStatus.prototype.clearS
|
|
|
5220
5563
|
* Returns whether this field is set.
|
|
5221
5564
|
* @return {boolean}
|
|
5222
5565
|
*/
|
|
5223
|
-
proto.ondewo.nlu.
|
|
5566
|
+
proto.ondewo.nlu.DeleteEntityStatus.prototype.hasSuccessfullyDeleted = function() {
|
|
5224
5567
|
return jspb.Message.getField(this, 1) != null;
|
|
5225
5568
|
};
|
|
5226
5569
|
|
|
@@ -5229,26 +5572,26 @@ proto.ondewo.nlu.BatchDeleteEntitiesResponse.DeleteEntityStatus.prototype.hasSuc
|
|
|
5229
5572
|
* optional string error_message = 2;
|
|
5230
5573
|
* @return {string}
|
|
5231
5574
|
*/
|
|
5232
|
-
proto.ondewo.nlu.
|
|
5575
|
+
proto.ondewo.nlu.DeleteEntityStatus.prototype.getErrorMessage = function() {
|
|
5233
5576
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
5234
5577
|
};
|
|
5235
5578
|
|
|
5236
5579
|
|
|
5237
5580
|
/**
|
|
5238
5581
|
* @param {string} value
|
|
5239
|
-
* @return {!proto.ondewo.nlu.
|
|
5582
|
+
* @return {!proto.ondewo.nlu.DeleteEntityStatus} returns this
|
|
5240
5583
|
*/
|
|
5241
|
-
proto.ondewo.nlu.
|
|
5242
|
-
return jspb.Message.setOneofField(this, 2, proto.ondewo.nlu.
|
|
5584
|
+
proto.ondewo.nlu.DeleteEntityStatus.prototype.setErrorMessage = function(value) {
|
|
5585
|
+
return jspb.Message.setOneofField(this, 2, proto.ondewo.nlu.DeleteEntityStatus.oneofGroups_[0], value);
|
|
5243
5586
|
};
|
|
5244
5587
|
|
|
5245
5588
|
|
|
5246
5589
|
/**
|
|
5247
5590
|
* Clears the field making it undefined.
|
|
5248
|
-
* @return {!proto.ondewo.nlu.
|
|
5591
|
+
* @return {!proto.ondewo.nlu.DeleteEntityStatus} returns this
|
|
5249
5592
|
*/
|
|
5250
|
-
proto.ondewo.nlu.
|
|
5251
|
-
return jspb.Message.setOneofField(this, 2, proto.ondewo.nlu.
|
|
5593
|
+
proto.ondewo.nlu.DeleteEntityStatus.prototype.clearErrorMessage = function() {
|
|
5594
|
+
return jspb.Message.setOneofField(this, 2, proto.ondewo.nlu.DeleteEntityStatus.oneofGroups_[0], undefined);
|
|
5252
5595
|
};
|
|
5253
5596
|
|
|
5254
5597
|
|
|
@@ -5256,23 +5599,157 @@ proto.ondewo.nlu.BatchDeleteEntitiesResponse.DeleteEntityStatus.prototype.clearE
|
|
|
5256
5599
|
* Returns whether this field is set.
|
|
5257
5600
|
* @return {boolean}
|
|
5258
5601
|
*/
|
|
5259
|
-
proto.ondewo.nlu.
|
|
5602
|
+
proto.ondewo.nlu.DeleteEntityStatus.prototype.hasErrorMessage = function() {
|
|
5260
5603
|
return jspb.Message.getField(this, 2) != null;
|
|
5261
5604
|
};
|
|
5262
5605
|
|
|
5263
5606
|
|
|
5607
|
+
|
|
5608
|
+
/**
|
|
5609
|
+
* List of repeated fields within this message type.
|
|
5610
|
+
* @private {!Array<number>}
|
|
5611
|
+
* @const
|
|
5612
|
+
*/
|
|
5613
|
+
proto.ondewo.nlu.BatchDeleteEntitiesResponse.repeatedFields_ = [1];
|
|
5614
|
+
|
|
5615
|
+
|
|
5616
|
+
|
|
5617
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5618
|
+
/**
|
|
5619
|
+
* Creates an object representation of this proto.
|
|
5620
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5621
|
+
* Optional fields that are not set will be set to undefined.
|
|
5622
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5623
|
+
* For the list of reserved names please see:
|
|
5624
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5625
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5626
|
+
* JSPB instance for transitional soy proto support:
|
|
5627
|
+
* http://goto/soy-param-migration
|
|
5628
|
+
* @return {!Object}
|
|
5629
|
+
*/
|
|
5630
|
+
proto.ondewo.nlu.BatchDeleteEntitiesResponse.prototype.toObject = function(opt_includeInstance) {
|
|
5631
|
+
return proto.ondewo.nlu.BatchDeleteEntitiesResponse.toObject(opt_includeInstance, this);
|
|
5632
|
+
};
|
|
5633
|
+
|
|
5634
|
+
|
|
5635
|
+
/**
|
|
5636
|
+
* Static version of the {@see toObject} method.
|
|
5637
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5638
|
+
* the JSPB instance for transitional soy proto support:
|
|
5639
|
+
* http://goto/soy-param-migration
|
|
5640
|
+
* @param {!proto.ondewo.nlu.BatchDeleteEntitiesResponse} msg The msg instance to transform.
|
|
5641
|
+
* @return {!Object}
|
|
5642
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5643
|
+
*/
|
|
5644
|
+
proto.ondewo.nlu.BatchDeleteEntitiesResponse.toObject = function(includeInstance, msg) {
|
|
5645
|
+
var f, obj = {
|
|
5646
|
+
deleteStatusesList: jspb.Message.toObjectList(msg.getDeleteStatusesList(),
|
|
5647
|
+
proto.ondewo.nlu.DeleteEntityStatus.toObject, includeInstance),
|
|
5648
|
+
hasErrors: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
|
5649
|
+
};
|
|
5650
|
+
|
|
5651
|
+
if (includeInstance) {
|
|
5652
|
+
obj.$jspbMessageInstance = msg;
|
|
5653
|
+
}
|
|
5654
|
+
return obj;
|
|
5655
|
+
};
|
|
5656
|
+
}
|
|
5657
|
+
|
|
5658
|
+
|
|
5659
|
+
/**
|
|
5660
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5661
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5662
|
+
* @return {!proto.ondewo.nlu.BatchDeleteEntitiesResponse}
|
|
5663
|
+
*/
|
|
5664
|
+
proto.ondewo.nlu.BatchDeleteEntitiesResponse.deserializeBinary = function(bytes) {
|
|
5665
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5666
|
+
var msg = new proto.ondewo.nlu.BatchDeleteEntitiesResponse;
|
|
5667
|
+
return proto.ondewo.nlu.BatchDeleteEntitiesResponse.deserializeBinaryFromReader(msg, reader);
|
|
5668
|
+
};
|
|
5669
|
+
|
|
5670
|
+
|
|
5671
|
+
/**
|
|
5672
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5673
|
+
* given reader into the given message object.
|
|
5674
|
+
* @param {!proto.ondewo.nlu.BatchDeleteEntitiesResponse} msg The message object to deserialize into.
|
|
5675
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5676
|
+
* @return {!proto.ondewo.nlu.BatchDeleteEntitiesResponse}
|
|
5677
|
+
*/
|
|
5678
|
+
proto.ondewo.nlu.BatchDeleteEntitiesResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
5679
|
+
while (reader.nextField()) {
|
|
5680
|
+
if (reader.isEndGroup()) {
|
|
5681
|
+
break;
|
|
5682
|
+
}
|
|
5683
|
+
var field = reader.getFieldNumber();
|
|
5684
|
+
switch (field) {
|
|
5685
|
+
case 1:
|
|
5686
|
+
var value = new proto.ondewo.nlu.DeleteEntityStatus;
|
|
5687
|
+
reader.readMessage(value,proto.ondewo.nlu.DeleteEntityStatus.deserializeBinaryFromReader);
|
|
5688
|
+
msg.addDeleteStatuses(value);
|
|
5689
|
+
break;
|
|
5690
|
+
case 2:
|
|
5691
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
5692
|
+
msg.setHasErrors(value);
|
|
5693
|
+
break;
|
|
5694
|
+
default:
|
|
5695
|
+
reader.skipField();
|
|
5696
|
+
break;
|
|
5697
|
+
}
|
|
5698
|
+
}
|
|
5699
|
+
return msg;
|
|
5700
|
+
};
|
|
5701
|
+
|
|
5702
|
+
|
|
5703
|
+
/**
|
|
5704
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5705
|
+
* @return {!Uint8Array}
|
|
5706
|
+
*/
|
|
5707
|
+
proto.ondewo.nlu.BatchDeleteEntitiesResponse.prototype.serializeBinary = function() {
|
|
5708
|
+
var writer = new jspb.BinaryWriter();
|
|
5709
|
+
proto.ondewo.nlu.BatchDeleteEntitiesResponse.serializeBinaryToWriter(this, writer);
|
|
5710
|
+
return writer.getResultBuffer();
|
|
5711
|
+
};
|
|
5712
|
+
|
|
5713
|
+
|
|
5714
|
+
/**
|
|
5715
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5716
|
+
* format), writing to the given BinaryWriter.
|
|
5717
|
+
* @param {!proto.ondewo.nlu.BatchDeleteEntitiesResponse} message
|
|
5718
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5719
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5720
|
+
*/
|
|
5721
|
+
proto.ondewo.nlu.BatchDeleteEntitiesResponse.serializeBinaryToWriter = function(message, writer) {
|
|
5722
|
+
var f = undefined;
|
|
5723
|
+
f = message.getDeleteStatusesList();
|
|
5724
|
+
if (f.length > 0) {
|
|
5725
|
+
writer.writeRepeatedMessage(
|
|
5726
|
+
1,
|
|
5727
|
+
f,
|
|
5728
|
+
proto.ondewo.nlu.DeleteEntityStatus.serializeBinaryToWriter
|
|
5729
|
+
);
|
|
5730
|
+
}
|
|
5731
|
+
f = message.getHasErrors();
|
|
5732
|
+
if (f) {
|
|
5733
|
+
writer.writeBool(
|
|
5734
|
+
2,
|
|
5735
|
+
f
|
|
5736
|
+
);
|
|
5737
|
+
}
|
|
5738
|
+
};
|
|
5739
|
+
|
|
5740
|
+
|
|
5264
5741
|
/**
|
|
5265
5742
|
* repeated DeleteEntityStatus delete_statuses = 1;
|
|
5266
|
-
* @return {!Array<!proto.ondewo.nlu.
|
|
5743
|
+
* @return {!Array<!proto.ondewo.nlu.DeleteEntityStatus>}
|
|
5267
5744
|
*/
|
|
5268
5745
|
proto.ondewo.nlu.BatchDeleteEntitiesResponse.prototype.getDeleteStatusesList = function() {
|
|
5269
|
-
return /** @type{!Array<!proto.ondewo.nlu.
|
|
5270
|
-
jspb.Message.getRepeatedWrapperField(this, proto.ondewo.nlu.
|
|
5746
|
+
return /** @type{!Array<!proto.ondewo.nlu.DeleteEntityStatus>} */ (
|
|
5747
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ondewo.nlu.DeleteEntityStatus, 1));
|
|
5271
5748
|
};
|
|
5272
5749
|
|
|
5273
5750
|
|
|
5274
5751
|
/**
|
|
5275
|
-
* @param {!Array<!proto.ondewo.nlu.
|
|
5752
|
+
* @param {!Array<!proto.ondewo.nlu.DeleteEntityStatus>} value
|
|
5276
5753
|
* @return {!proto.ondewo.nlu.BatchDeleteEntitiesResponse} returns this
|
|
5277
5754
|
*/
|
|
5278
5755
|
proto.ondewo.nlu.BatchDeleteEntitiesResponse.prototype.setDeleteStatusesList = function(value) {
|
|
@@ -5281,12 +5758,12 @@ proto.ondewo.nlu.BatchDeleteEntitiesResponse.prototype.setDeleteStatusesList = f
|
|
|
5281
5758
|
|
|
5282
5759
|
|
|
5283
5760
|
/**
|
|
5284
|
-
* @param {!proto.ondewo.nlu.
|
|
5761
|
+
* @param {!proto.ondewo.nlu.DeleteEntityStatus=} opt_value
|
|
5285
5762
|
* @param {number=} opt_index
|
|
5286
|
-
* @return {!proto.ondewo.nlu.
|
|
5763
|
+
* @return {!proto.ondewo.nlu.DeleteEntityStatus}
|
|
5287
5764
|
*/
|
|
5288
5765
|
proto.ondewo.nlu.BatchDeleteEntitiesResponse.prototype.addDeleteStatuses = function(opt_value, opt_index) {
|
|
5289
|
-
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ondewo.nlu.
|
|
5766
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ondewo.nlu.DeleteEntityStatus, opt_index);
|
|
5290
5767
|
};
|
|
5291
5768
|
|
|
5292
5769
|
|