@ondewo/nlu-client-typescript 3.3.0 → 3.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +80 -13
- package/api/ondewo/nlu/agent_pb.d.ts +36 -0
- package/api/ondewo/nlu/agent_pb.js +372 -36
- package/api/ondewo/nlu/session_grpc_web_pb.d.ts +16 -4
- package/api/ondewo/nlu/session_grpc_web_pb.js +74 -13
- package/api/ondewo/nlu/session_pb.d.ts +37 -21
- package/api/ondewo/nlu/session_pb.js +248 -100
- package/package.json +1 -1
- package/public-api.d.ts +27 -27
|
@@ -35,6 +35,7 @@ goog.exportSymbol('proto.ondewo.nlu.AddSessionLabelsRequest', null, global);
|
|
|
35
35
|
goog.exportSymbol('proto.ondewo.nlu.AudioEncoding', null, global);
|
|
36
36
|
goog.exportSymbol('proto.ondewo.nlu.CreateSessionRequest', null, global);
|
|
37
37
|
goog.exportSymbol('proto.ondewo.nlu.CreateSessionReviewRequest', null, global);
|
|
38
|
+
goog.exportSymbol('proto.ondewo.nlu.DeleteSessionLabelsRequest', null, global);
|
|
38
39
|
goog.exportSymbol('proto.ondewo.nlu.DeleteSessionRequest', null, global);
|
|
39
40
|
goog.exportSymbol('proto.ondewo.nlu.DetectIntentRequest', null, global);
|
|
40
41
|
goog.exportSymbol('proto.ondewo.nlu.DetectIntentResponse', null, global);
|
|
@@ -44,6 +45,7 @@ goog.exportSymbol('proto.ondewo.nlu.GetLatestSessionReviewRequest', null, global
|
|
|
44
45
|
goog.exportSymbol('proto.ondewo.nlu.GetSessionRequest', null, global);
|
|
45
46
|
goog.exportSymbol('proto.ondewo.nlu.GetSessionReviewRequest', null, global);
|
|
46
47
|
goog.exportSymbol('proto.ondewo.nlu.InputAudioConfig', null, global);
|
|
48
|
+
goog.exportSymbol('proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest', null, global);
|
|
47
49
|
goog.exportSymbol('proto.ondewo.nlu.ListSessionLabelsRequest', null, global);
|
|
48
50
|
goog.exportSymbol('proto.ondewo.nlu.ListSessionLabelsResponse', null, global);
|
|
49
51
|
goog.exportSymbol('proto.ondewo.nlu.ListSessionReviewsRequest', null, global);
|
|
@@ -54,7 +56,6 @@ goog.exportSymbol('proto.ondewo.nlu.QueryInput', null, global);
|
|
|
54
56
|
goog.exportSymbol('proto.ondewo.nlu.QueryInput.InputCase', null, global);
|
|
55
57
|
goog.exportSymbol('proto.ondewo.nlu.QueryParameters', null, global);
|
|
56
58
|
goog.exportSymbol('proto.ondewo.nlu.QueryResult', null, global);
|
|
57
|
-
goog.exportSymbol('proto.ondewo.nlu.RemoveSessionLabelsRequest', null, global);
|
|
58
59
|
goog.exportSymbol('proto.ondewo.nlu.Session', null, global);
|
|
59
60
|
goog.exportSymbol('proto.ondewo.nlu.Session.View', null, global);
|
|
60
61
|
goog.exportSymbol('proto.ondewo.nlu.SessionFilter', null, global);
|
|
@@ -501,7 +502,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
501
502
|
* @constructor
|
|
502
503
|
*/
|
|
503
504
|
proto.ondewo.nlu.CreateSessionRequest = function(opt_data) {
|
|
504
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
505
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.CreateSessionRequest.repeatedFields_, null);
|
|
505
506
|
};
|
|
506
507
|
goog.inherits(proto.ondewo.nlu.CreateSessionRequest, jspb.Message);
|
|
507
508
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -637,6 +638,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
637
638
|
*/
|
|
638
639
|
proto.ondewo.nlu.ListSessionLabelsRequest.displayName = 'proto.ondewo.nlu.ListSessionLabelsRequest';
|
|
639
640
|
}
|
|
641
|
+
/**
|
|
642
|
+
* Generated by JsPbCodeGenerator.
|
|
643
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
644
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
645
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
646
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
647
|
+
* valid.
|
|
648
|
+
* @extends {jspb.Message}
|
|
649
|
+
* @constructor
|
|
650
|
+
*/
|
|
651
|
+
proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest = function(opt_data) {
|
|
652
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
653
|
+
};
|
|
654
|
+
goog.inherits(proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest, jspb.Message);
|
|
655
|
+
if (goog.DEBUG && !COMPILED) {
|
|
656
|
+
/**
|
|
657
|
+
* @public
|
|
658
|
+
* @override
|
|
659
|
+
*/
|
|
660
|
+
proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest.displayName = 'proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest';
|
|
661
|
+
}
|
|
640
662
|
/**
|
|
641
663
|
* Generated by JsPbCodeGenerator.
|
|
642
664
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -689,16 +711,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
689
711
|
* @extends {jspb.Message}
|
|
690
712
|
* @constructor
|
|
691
713
|
*/
|
|
692
|
-
proto.ondewo.nlu.
|
|
693
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.
|
|
714
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest = function(opt_data) {
|
|
715
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.DeleteSessionLabelsRequest.repeatedFields_, null);
|
|
694
716
|
};
|
|
695
|
-
goog.inherits(proto.ondewo.nlu.
|
|
717
|
+
goog.inherits(proto.ondewo.nlu.DeleteSessionLabelsRequest, jspb.Message);
|
|
696
718
|
if (goog.DEBUG && !COMPILED) {
|
|
697
719
|
/**
|
|
698
720
|
* @public
|
|
699
721
|
* @override
|
|
700
722
|
*/
|
|
701
|
-
proto.ondewo.nlu.
|
|
723
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.displayName = 'proto.ondewo.nlu.DeleteSessionLabelsRequest';
|
|
702
724
|
}
|
|
703
725
|
/**
|
|
704
726
|
* Generated by JsPbCodeGenerator.
|
|
@@ -6950,6 +6972,13 @@ proto.ondewo.nlu.GetSessionRequest.prototype.setSessionView = function(value) {
|
|
|
6950
6972
|
|
|
6951
6973
|
|
|
6952
6974
|
|
|
6975
|
+
/**
|
|
6976
|
+
* List of repeated fields within this message type.
|
|
6977
|
+
* @private {!Array<number>}
|
|
6978
|
+
* @const
|
|
6979
|
+
*/
|
|
6980
|
+
proto.ondewo.nlu.CreateSessionRequest.repeatedFields_ = [3];
|
|
6981
|
+
|
|
6953
6982
|
|
|
6954
6983
|
|
|
6955
6984
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -6982,7 +7011,8 @@ proto.ondewo.nlu.CreateSessionRequest.prototype.toObject = function(opt_includeI
|
|
|
6982
7011
|
proto.ondewo.nlu.CreateSessionRequest.toObject = function(includeInstance, msg) {
|
|
6983
7012
|
var f, obj = {
|
|
6984
7013
|
parent: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6985
|
-
sessionUuid: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
7014
|
+
sessionUuid: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
7015
|
+
labelsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
|
|
6986
7016
|
};
|
|
6987
7017
|
|
|
6988
7018
|
if (includeInstance) {
|
|
@@ -7027,6 +7057,10 @@ proto.ondewo.nlu.CreateSessionRequest.deserializeBinaryFromReader = function(msg
|
|
|
7027
7057
|
var value = /** @type {string} */ (reader.readString());
|
|
7028
7058
|
msg.setSessionUuid(value);
|
|
7029
7059
|
break;
|
|
7060
|
+
case 3:
|
|
7061
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7062
|
+
msg.addLabels(value);
|
|
7063
|
+
break;
|
|
7030
7064
|
default:
|
|
7031
7065
|
reader.skipField();
|
|
7032
7066
|
break;
|
|
@@ -7070,6 +7104,13 @@ proto.ondewo.nlu.CreateSessionRequest.serializeBinaryToWriter = function(message
|
|
|
7070
7104
|
f
|
|
7071
7105
|
);
|
|
7072
7106
|
}
|
|
7107
|
+
f = message.getLabelsList();
|
|
7108
|
+
if (f.length > 0) {
|
|
7109
|
+
writer.writeRepeatedString(
|
|
7110
|
+
3,
|
|
7111
|
+
f
|
|
7112
|
+
);
|
|
7113
|
+
}
|
|
7073
7114
|
};
|
|
7074
7115
|
|
|
7075
7116
|
|
|
@@ -7109,6 +7150,43 @@ proto.ondewo.nlu.CreateSessionRequest.prototype.setSessionUuid = function(value)
|
|
|
7109
7150
|
};
|
|
7110
7151
|
|
|
7111
7152
|
|
|
7153
|
+
/**
|
|
7154
|
+
* repeated string labels = 3;
|
|
7155
|
+
* @return {!Array<string>}
|
|
7156
|
+
*/
|
|
7157
|
+
proto.ondewo.nlu.CreateSessionRequest.prototype.getLabelsList = function() {
|
|
7158
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
|
7159
|
+
};
|
|
7160
|
+
|
|
7161
|
+
|
|
7162
|
+
/**
|
|
7163
|
+
* @param {!Array<string>} value
|
|
7164
|
+
* @return {!proto.ondewo.nlu.CreateSessionRequest} returns this
|
|
7165
|
+
*/
|
|
7166
|
+
proto.ondewo.nlu.CreateSessionRequest.prototype.setLabelsList = function(value) {
|
|
7167
|
+
return jspb.Message.setField(this, 3, value || []);
|
|
7168
|
+
};
|
|
7169
|
+
|
|
7170
|
+
|
|
7171
|
+
/**
|
|
7172
|
+
* @param {string} value
|
|
7173
|
+
* @param {number=} opt_index
|
|
7174
|
+
* @return {!proto.ondewo.nlu.CreateSessionRequest} returns this
|
|
7175
|
+
*/
|
|
7176
|
+
proto.ondewo.nlu.CreateSessionRequest.prototype.addLabels = function(value, opt_index) {
|
|
7177
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
7178
|
+
};
|
|
7179
|
+
|
|
7180
|
+
|
|
7181
|
+
/**
|
|
7182
|
+
* Clears the list making it empty but non-null.
|
|
7183
|
+
* @return {!proto.ondewo.nlu.CreateSessionRequest} returns this
|
|
7184
|
+
*/
|
|
7185
|
+
proto.ondewo.nlu.CreateSessionRequest.prototype.clearLabelsList = function() {
|
|
7186
|
+
return this.setLabelsList([]);
|
|
7187
|
+
};
|
|
7188
|
+
|
|
7189
|
+
|
|
7112
7190
|
|
|
7113
7191
|
|
|
7114
7192
|
|
|
@@ -8359,7 +8437,7 @@ proto.ondewo.nlu.ListSessionLabelsRequest.prototype.toObject = function(opt_incl
|
|
|
8359
8437
|
*/
|
|
8360
8438
|
proto.ondewo.nlu.ListSessionLabelsRequest.toObject = function(includeInstance, msg) {
|
|
8361
8439
|
var f, obj = {
|
|
8362
|
-
|
|
8440
|
+
sessionId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
8363
8441
|
};
|
|
8364
8442
|
|
|
8365
8443
|
if (includeInstance) {
|
|
@@ -8398,7 +8476,7 @@ proto.ondewo.nlu.ListSessionLabelsRequest.deserializeBinaryFromReader = function
|
|
|
8398
8476
|
switch (field) {
|
|
8399
8477
|
case 1:
|
|
8400
8478
|
var value = /** @type {string} */ (reader.readString());
|
|
8401
|
-
msg.
|
|
8479
|
+
msg.setSessionId(value);
|
|
8402
8480
|
break;
|
|
8403
8481
|
default:
|
|
8404
8482
|
reader.skipField();
|
|
@@ -8428,6 +8506,136 @@ proto.ondewo.nlu.ListSessionLabelsRequest.prototype.serializeBinary = function()
|
|
|
8428
8506
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8429
8507
|
*/
|
|
8430
8508
|
proto.ondewo.nlu.ListSessionLabelsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
8509
|
+
var f = undefined;
|
|
8510
|
+
f = message.getSessionId();
|
|
8511
|
+
if (f.length > 0) {
|
|
8512
|
+
writer.writeString(
|
|
8513
|
+
1,
|
|
8514
|
+
f
|
|
8515
|
+
);
|
|
8516
|
+
}
|
|
8517
|
+
};
|
|
8518
|
+
|
|
8519
|
+
|
|
8520
|
+
/**
|
|
8521
|
+
* optional string session_id = 1;
|
|
8522
|
+
* @return {string}
|
|
8523
|
+
*/
|
|
8524
|
+
proto.ondewo.nlu.ListSessionLabelsRequest.prototype.getSessionId = function() {
|
|
8525
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
8526
|
+
};
|
|
8527
|
+
|
|
8528
|
+
|
|
8529
|
+
/**
|
|
8530
|
+
* @param {string} value
|
|
8531
|
+
* @return {!proto.ondewo.nlu.ListSessionLabelsRequest} returns this
|
|
8532
|
+
*/
|
|
8533
|
+
proto.ondewo.nlu.ListSessionLabelsRequest.prototype.setSessionId = function(value) {
|
|
8534
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8535
|
+
};
|
|
8536
|
+
|
|
8537
|
+
|
|
8538
|
+
|
|
8539
|
+
|
|
8540
|
+
|
|
8541
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8542
|
+
/**
|
|
8543
|
+
* Creates an object representation of this proto.
|
|
8544
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8545
|
+
* Optional fields that are not set will be set to undefined.
|
|
8546
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8547
|
+
* For the list of reserved names please see:
|
|
8548
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8549
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8550
|
+
* JSPB instance for transitional soy proto support:
|
|
8551
|
+
* http://goto/soy-param-migration
|
|
8552
|
+
* @return {!Object}
|
|
8553
|
+
*/
|
|
8554
|
+
proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
8555
|
+
return proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest.toObject(opt_includeInstance, this);
|
|
8556
|
+
};
|
|
8557
|
+
|
|
8558
|
+
|
|
8559
|
+
/**
|
|
8560
|
+
* Static version of the {@see toObject} method.
|
|
8561
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8562
|
+
* the JSPB instance for transitional soy proto support:
|
|
8563
|
+
* http://goto/soy-param-migration
|
|
8564
|
+
* @param {!proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest} msg The msg instance to transform.
|
|
8565
|
+
* @return {!Object}
|
|
8566
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8567
|
+
*/
|
|
8568
|
+
proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest.toObject = function(includeInstance, msg) {
|
|
8569
|
+
var f, obj = {
|
|
8570
|
+
parent: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
8571
|
+
};
|
|
8572
|
+
|
|
8573
|
+
if (includeInstance) {
|
|
8574
|
+
obj.$jspbMessageInstance = msg;
|
|
8575
|
+
}
|
|
8576
|
+
return obj;
|
|
8577
|
+
};
|
|
8578
|
+
}
|
|
8579
|
+
|
|
8580
|
+
|
|
8581
|
+
/**
|
|
8582
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8583
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8584
|
+
* @return {!proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest}
|
|
8585
|
+
*/
|
|
8586
|
+
proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest.deserializeBinary = function(bytes) {
|
|
8587
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8588
|
+
var msg = new proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest;
|
|
8589
|
+
return proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest.deserializeBinaryFromReader(msg, reader);
|
|
8590
|
+
};
|
|
8591
|
+
|
|
8592
|
+
|
|
8593
|
+
/**
|
|
8594
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8595
|
+
* given reader into the given message object.
|
|
8596
|
+
* @param {!proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest} msg The message object to deserialize into.
|
|
8597
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8598
|
+
* @return {!proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest}
|
|
8599
|
+
*/
|
|
8600
|
+
proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
8601
|
+
while (reader.nextField()) {
|
|
8602
|
+
if (reader.isEndGroup()) {
|
|
8603
|
+
break;
|
|
8604
|
+
}
|
|
8605
|
+
var field = reader.getFieldNumber();
|
|
8606
|
+
switch (field) {
|
|
8607
|
+
case 1:
|
|
8608
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8609
|
+
msg.setParent(value);
|
|
8610
|
+
break;
|
|
8611
|
+
default:
|
|
8612
|
+
reader.skipField();
|
|
8613
|
+
break;
|
|
8614
|
+
}
|
|
8615
|
+
}
|
|
8616
|
+
return msg;
|
|
8617
|
+
};
|
|
8618
|
+
|
|
8619
|
+
|
|
8620
|
+
/**
|
|
8621
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8622
|
+
* @return {!Uint8Array}
|
|
8623
|
+
*/
|
|
8624
|
+
proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest.prototype.serializeBinary = function() {
|
|
8625
|
+
var writer = new jspb.BinaryWriter();
|
|
8626
|
+
proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest.serializeBinaryToWriter(this, writer);
|
|
8627
|
+
return writer.getResultBuffer();
|
|
8628
|
+
};
|
|
8629
|
+
|
|
8630
|
+
|
|
8631
|
+
/**
|
|
8632
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8633
|
+
* format), writing to the given BinaryWriter.
|
|
8634
|
+
* @param {!proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest} message
|
|
8635
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8636
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8637
|
+
*/
|
|
8638
|
+
proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
8431
8639
|
var f = undefined;
|
|
8432
8640
|
f = message.getParent();
|
|
8433
8641
|
if (f.length > 0) {
|
|
@@ -8443,16 +8651,16 @@ proto.ondewo.nlu.ListSessionLabelsRequest.serializeBinaryToWriter = function(mes
|
|
|
8443
8651
|
* optional string parent = 1;
|
|
8444
8652
|
* @return {string}
|
|
8445
8653
|
*/
|
|
8446
|
-
proto.ondewo.nlu.
|
|
8654
|
+
proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest.prototype.getParent = function() {
|
|
8447
8655
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
8448
8656
|
};
|
|
8449
8657
|
|
|
8450
8658
|
|
|
8451
8659
|
/**
|
|
8452
8660
|
* @param {string} value
|
|
8453
|
-
* @return {!proto.ondewo.nlu.
|
|
8661
|
+
* @return {!proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest} returns this
|
|
8454
8662
|
*/
|
|
8455
|
-
proto.ondewo.nlu.
|
|
8663
|
+
proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest.prototype.setParent = function(value) {
|
|
8456
8664
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8457
8665
|
};
|
|
8458
8666
|
|
|
@@ -8653,8 +8861,7 @@ proto.ondewo.nlu.AddSessionLabelsRequest.prototype.toObject = function(opt_inclu
|
|
|
8653
8861
|
proto.ondewo.nlu.AddSessionLabelsRequest.toObject = function(includeInstance, msg) {
|
|
8654
8862
|
var f, obj = {
|
|
8655
8863
|
sessionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
8656
|
-
labelsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
8657
|
-
sessionView: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
8864
|
+
labelsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
8658
8865
|
};
|
|
8659
8866
|
|
|
8660
8867
|
if (includeInstance) {
|
|
@@ -8699,10 +8906,6 @@ proto.ondewo.nlu.AddSessionLabelsRequest.deserializeBinaryFromReader = function(
|
|
|
8699
8906
|
var value = /** @type {string} */ (reader.readString());
|
|
8700
8907
|
msg.addLabels(value);
|
|
8701
8908
|
break;
|
|
8702
|
-
case 3:
|
|
8703
|
-
var value = /** @type {!proto.ondewo.nlu.Session.View} */ (reader.readEnum());
|
|
8704
|
-
msg.setSessionView(value);
|
|
8705
|
-
break;
|
|
8706
8909
|
default:
|
|
8707
8910
|
reader.skipField();
|
|
8708
8911
|
break;
|
|
@@ -8746,13 +8949,6 @@ proto.ondewo.nlu.AddSessionLabelsRequest.serializeBinaryToWriter = function(mess
|
|
|
8746
8949
|
f
|
|
8747
8950
|
);
|
|
8748
8951
|
}
|
|
8749
|
-
f = message.getSessionView();
|
|
8750
|
-
if (f !== 0.0) {
|
|
8751
|
-
writer.writeEnum(
|
|
8752
|
-
3,
|
|
8753
|
-
f
|
|
8754
|
-
);
|
|
8755
|
-
}
|
|
8756
8952
|
};
|
|
8757
8953
|
|
|
8758
8954
|
|
|
@@ -8811,31 +9007,13 @@ proto.ondewo.nlu.AddSessionLabelsRequest.prototype.clearLabelsList = function()
|
|
|
8811
9007
|
};
|
|
8812
9008
|
|
|
8813
9009
|
|
|
8814
|
-
/**
|
|
8815
|
-
* optional Session.View session_view = 3;
|
|
8816
|
-
* @return {!proto.ondewo.nlu.Session.View}
|
|
8817
|
-
*/
|
|
8818
|
-
proto.ondewo.nlu.AddSessionLabelsRequest.prototype.getSessionView = function() {
|
|
8819
|
-
return /** @type {!proto.ondewo.nlu.Session.View} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
8820
|
-
};
|
|
8821
|
-
|
|
8822
|
-
|
|
8823
|
-
/**
|
|
8824
|
-
* @param {!proto.ondewo.nlu.Session.View} value
|
|
8825
|
-
* @return {!proto.ondewo.nlu.AddSessionLabelsRequest} returns this
|
|
8826
|
-
*/
|
|
8827
|
-
proto.ondewo.nlu.AddSessionLabelsRequest.prototype.setSessionView = function(value) {
|
|
8828
|
-
return jspb.Message.setProto3EnumField(this, 3, value);
|
|
8829
|
-
};
|
|
8830
|
-
|
|
8831
|
-
|
|
8832
9010
|
|
|
8833
9011
|
/**
|
|
8834
9012
|
* List of repeated fields within this message type.
|
|
8835
9013
|
* @private {!Array<number>}
|
|
8836
9014
|
* @const
|
|
8837
9015
|
*/
|
|
8838
|
-
proto.ondewo.nlu.
|
|
9016
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.repeatedFields_ = [2];
|
|
8839
9017
|
|
|
8840
9018
|
|
|
8841
9019
|
|
|
@@ -8852,8 +9030,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
8852
9030
|
* http://goto/soy-param-migration
|
|
8853
9031
|
* @return {!Object}
|
|
8854
9032
|
*/
|
|
8855
|
-
proto.ondewo.nlu.
|
|
8856
|
-
return proto.ondewo.nlu.
|
|
9033
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
9034
|
+
return proto.ondewo.nlu.DeleteSessionLabelsRequest.toObject(opt_includeInstance, this);
|
|
8857
9035
|
};
|
|
8858
9036
|
|
|
8859
9037
|
|
|
@@ -8862,15 +9040,14 @@ proto.ondewo.nlu.RemoveSessionLabelsRequest.prototype.toObject = function(opt_in
|
|
|
8862
9040
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8863
9041
|
* the JSPB instance for transitional soy proto support:
|
|
8864
9042
|
* http://goto/soy-param-migration
|
|
8865
|
-
* @param {!proto.ondewo.nlu.
|
|
9043
|
+
* @param {!proto.ondewo.nlu.DeleteSessionLabelsRequest} msg The msg instance to transform.
|
|
8866
9044
|
* @return {!Object}
|
|
8867
9045
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8868
9046
|
*/
|
|
8869
|
-
proto.ondewo.nlu.
|
|
9047
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.toObject = function(includeInstance, msg) {
|
|
8870
9048
|
var f, obj = {
|
|
8871
9049
|
sessionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
8872
|
-
labelsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
8873
|
-
sessionView: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
9050
|
+
labelsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
8874
9051
|
};
|
|
8875
9052
|
|
|
8876
9053
|
if (includeInstance) {
|
|
@@ -8884,23 +9061,23 @@ proto.ondewo.nlu.RemoveSessionLabelsRequest.toObject = function(includeInstance,
|
|
|
8884
9061
|
/**
|
|
8885
9062
|
* Deserializes binary data (in protobuf wire format).
|
|
8886
9063
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8887
|
-
* @return {!proto.ondewo.nlu.
|
|
9064
|
+
* @return {!proto.ondewo.nlu.DeleteSessionLabelsRequest}
|
|
8888
9065
|
*/
|
|
8889
|
-
proto.ondewo.nlu.
|
|
9066
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.deserializeBinary = function(bytes) {
|
|
8890
9067
|
var reader = new jspb.BinaryReader(bytes);
|
|
8891
|
-
var msg = new proto.ondewo.nlu.
|
|
8892
|
-
return proto.ondewo.nlu.
|
|
9068
|
+
var msg = new proto.ondewo.nlu.DeleteSessionLabelsRequest;
|
|
9069
|
+
return proto.ondewo.nlu.DeleteSessionLabelsRequest.deserializeBinaryFromReader(msg, reader);
|
|
8893
9070
|
};
|
|
8894
9071
|
|
|
8895
9072
|
|
|
8896
9073
|
/**
|
|
8897
9074
|
* Deserializes binary data (in protobuf wire format) from the
|
|
8898
9075
|
* given reader into the given message object.
|
|
8899
|
-
* @param {!proto.ondewo.nlu.
|
|
9076
|
+
* @param {!proto.ondewo.nlu.DeleteSessionLabelsRequest} msg The message object to deserialize into.
|
|
8900
9077
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8901
|
-
* @return {!proto.ondewo.nlu.
|
|
9078
|
+
* @return {!proto.ondewo.nlu.DeleteSessionLabelsRequest}
|
|
8902
9079
|
*/
|
|
8903
|
-
proto.ondewo.nlu.
|
|
9080
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
8904
9081
|
while (reader.nextField()) {
|
|
8905
9082
|
if (reader.isEndGroup()) {
|
|
8906
9083
|
break;
|
|
@@ -8915,10 +9092,6 @@ proto.ondewo.nlu.RemoveSessionLabelsRequest.deserializeBinaryFromReader = functi
|
|
|
8915
9092
|
var value = /** @type {string} */ (reader.readString());
|
|
8916
9093
|
msg.addLabels(value);
|
|
8917
9094
|
break;
|
|
8918
|
-
case 3:
|
|
8919
|
-
var value = /** @type {!proto.ondewo.nlu.Session.View} */ (reader.readEnum());
|
|
8920
|
-
msg.setSessionView(value);
|
|
8921
|
-
break;
|
|
8922
9095
|
default:
|
|
8923
9096
|
reader.skipField();
|
|
8924
9097
|
break;
|
|
@@ -8932,9 +9105,9 @@ proto.ondewo.nlu.RemoveSessionLabelsRequest.deserializeBinaryFromReader = functi
|
|
|
8932
9105
|
* Serializes the message to binary data (in protobuf wire format).
|
|
8933
9106
|
* @return {!Uint8Array}
|
|
8934
9107
|
*/
|
|
8935
|
-
proto.ondewo.nlu.
|
|
9108
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.prototype.serializeBinary = function() {
|
|
8936
9109
|
var writer = new jspb.BinaryWriter();
|
|
8937
|
-
proto.ondewo.nlu.
|
|
9110
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.serializeBinaryToWriter(this, writer);
|
|
8938
9111
|
return writer.getResultBuffer();
|
|
8939
9112
|
};
|
|
8940
9113
|
|
|
@@ -8942,11 +9115,11 @@ proto.ondewo.nlu.RemoveSessionLabelsRequest.prototype.serializeBinary = function
|
|
|
8942
9115
|
/**
|
|
8943
9116
|
* Serializes the given message to binary data (in protobuf wire
|
|
8944
9117
|
* format), writing to the given BinaryWriter.
|
|
8945
|
-
* @param {!proto.ondewo.nlu.
|
|
9118
|
+
* @param {!proto.ondewo.nlu.DeleteSessionLabelsRequest} message
|
|
8946
9119
|
* @param {!jspb.BinaryWriter} writer
|
|
8947
9120
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8948
9121
|
*/
|
|
8949
|
-
proto.ondewo.nlu.
|
|
9122
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
8950
9123
|
var f = undefined;
|
|
8951
9124
|
f = message.getSessionId();
|
|
8952
9125
|
if (f.length > 0) {
|
|
@@ -8962,13 +9135,6 @@ proto.ondewo.nlu.RemoveSessionLabelsRequest.serializeBinaryToWriter = function(m
|
|
|
8962
9135
|
f
|
|
8963
9136
|
);
|
|
8964
9137
|
}
|
|
8965
|
-
f = message.getSessionView();
|
|
8966
|
-
if (f !== 0.0) {
|
|
8967
|
-
writer.writeEnum(
|
|
8968
|
-
3,
|
|
8969
|
-
f
|
|
8970
|
-
);
|
|
8971
|
-
}
|
|
8972
9138
|
};
|
|
8973
9139
|
|
|
8974
9140
|
|
|
@@ -8976,16 +9142,16 @@ proto.ondewo.nlu.RemoveSessionLabelsRequest.serializeBinaryToWriter = function(m
|
|
|
8976
9142
|
* optional string session_id = 1;
|
|
8977
9143
|
* @return {string}
|
|
8978
9144
|
*/
|
|
8979
|
-
proto.ondewo.nlu.
|
|
9145
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.prototype.getSessionId = function() {
|
|
8980
9146
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
8981
9147
|
};
|
|
8982
9148
|
|
|
8983
9149
|
|
|
8984
9150
|
/**
|
|
8985
9151
|
* @param {string} value
|
|
8986
|
-
* @return {!proto.ondewo.nlu.
|
|
9152
|
+
* @return {!proto.ondewo.nlu.DeleteSessionLabelsRequest} returns this
|
|
8987
9153
|
*/
|
|
8988
|
-
proto.ondewo.nlu.
|
|
9154
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.prototype.setSessionId = function(value) {
|
|
8989
9155
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8990
9156
|
};
|
|
8991
9157
|
|
|
@@ -8994,16 +9160,16 @@ proto.ondewo.nlu.RemoveSessionLabelsRequest.prototype.setSessionId = function(va
|
|
|
8994
9160
|
* repeated string labels = 2;
|
|
8995
9161
|
* @return {!Array<string>}
|
|
8996
9162
|
*/
|
|
8997
|
-
proto.ondewo.nlu.
|
|
9163
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.prototype.getLabelsList = function() {
|
|
8998
9164
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
8999
9165
|
};
|
|
9000
9166
|
|
|
9001
9167
|
|
|
9002
9168
|
/**
|
|
9003
9169
|
* @param {!Array<string>} value
|
|
9004
|
-
* @return {!proto.ondewo.nlu.
|
|
9170
|
+
* @return {!proto.ondewo.nlu.DeleteSessionLabelsRequest} returns this
|
|
9005
9171
|
*/
|
|
9006
|
-
proto.ondewo.nlu.
|
|
9172
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.prototype.setLabelsList = function(value) {
|
|
9007
9173
|
return jspb.Message.setField(this, 2, value || []);
|
|
9008
9174
|
};
|
|
9009
9175
|
|
|
@@ -9011,40 +9177,22 @@ proto.ondewo.nlu.RemoveSessionLabelsRequest.prototype.setLabelsList = function(v
|
|
|
9011
9177
|
/**
|
|
9012
9178
|
* @param {string} value
|
|
9013
9179
|
* @param {number=} opt_index
|
|
9014
|
-
* @return {!proto.ondewo.nlu.
|
|
9180
|
+
* @return {!proto.ondewo.nlu.DeleteSessionLabelsRequest} returns this
|
|
9015
9181
|
*/
|
|
9016
|
-
proto.ondewo.nlu.
|
|
9182
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.prototype.addLabels = function(value, opt_index) {
|
|
9017
9183
|
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
9018
9184
|
};
|
|
9019
9185
|
|
|
9020
9186
|
|
|
9021
9187
|
/**
|
|
9022
9188
|
* Clears the list making it empty but non-null.
|
|
9023
|
-
* @return {!proto.ondewo.nlu.
|
|
9189
|
+
* @return {!proto.ondewo.nlu.DeleteSessionLabelsRequest} returns this
|
|
9024
9190
|
*/
|
|
9025
|
-
proto.ondewo.nlu.
|
|
9191
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest.prototype.clearLabelsList = function() {
|
|
9026
9192
|
return this.setLabelsList([]);
|
|
9027
9193
|
};
|
|
9028
9194
|
|
|
9029
9195
|
|
|
9030
|
-
/**
|
|
9031
|
-
* optional Session.View session_view = 3;
|
|
9032
|
-
* @return {!proto.ondewo.nlu.Session.View}
|
|
9033
|
-
*/
|
|
9034
|
-
proto.ondewo.nlu.RemoveSessionLabelsRequest.prototype.getSessionView = function() {
|
|
9035
|
-
return /** @type {!proto.ondewo.nlu.Session.View} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
9036
|
-
};
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
/**
|
|
9040
|
-
* @param {!proto.ondewo.nlu.Session.View} value
|
|
9041
|
-
* @return {!proto.ondewo.nlu.RemoveSessionLabelsRequest} returns this
|
|
9042
|
-
*/
|
|
9043
|
-
proto.ondewo.nlu.RemoveSessionLabelsRequest.prototype.setSessionView = function(value) {
|
|
9044
|
-
return jspb.Message.setProto3EnumField(this, 3, value);
|
|
9045
|
-
};
|
|
9046
|
-
|
|
9047
|
-
|
|
9048
9196
|
|
|
9049
9197
|
|
|
9050
9198
|
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
export * from './api/
|
|
2
|
-
export * from './api/
|
|
3
|
-
export * from './api/google/type/latlng_pb.d';
|
|
4
|
-
export * from './api/google/protobuf/timestamp_pb.d';
|
|
5
|
-
export * from './api/google/protobuf/empty_pb.d';
|
|
6
|
-
export * from './api/google/protobuf/field_mask_pb.d';
|
|
7
|
-
export * from './api/google/protobuf/struct_pb.d';
|
|
8
|
-
export * from './api/google/protobuf/any_pb.d';
|
|
9
|
-
export * from './api/ondewo/nlu/agent_pb.d';
|
|
10
|
-
export * from './api/ondewo/nlu/webhook_grpc_web_pb.d';
|
|
1
|
+
export * from './api/ondewo/nlu/context_grpc_web_pb.d';
|
|
2
|
+
export * from './api/ondewo/nlu/project_statistics_grpc_web_pb.d';
|
|
11
3
|
export * from './api/ondewo/nlu/utility_pb.d';
|
|
12
|
-
export * from './api/ondewo/nlu/intent_grpc_web_pb.d';
|
|
13
4
|
export * from './api/ondewo/nlu/utility_grpc_web_pb.d';
|
|
14
|
-
export * from './api/ondewo/nlu/operations_pb.d';
|
|
15
|
-
export * from './api/ondewo/nlu/intent_pb.d';
|
|
16
|
-
export * from './api/ondewo/nlu/entity_type_grpc_web_pb.d';
|
|
17
|
-
export * from './api/ondewo/nlu/webhook_pb.d';
|
|
18
|
-
export * from './api/ondewo/nlu/session_grpc_web_pb.d';
|
|
19
|
-
export * from './api/ondewo/nlu/user_grpc_web_pb.d';
|
|
20
|
-
export * from './api/ondewo/nlu/project_role_pb.d';
|
|
21
5
|
export * from './api/ondewo/nlu/server_statistics_grpc_web_pb.d';
|
|
22
|
-
export * from './api/ondewo/nlu/
|
|
6
|
+
export * from './api/ondewo/nlu/operations_grpc_web_pb.d';
|
|
23
7
|
export * from './api/ondewo/nlu/user_pb.d';
|
|
8
|
+
export * from './api/ondewo/nlu/intent_pb.d';
|
|
9
|
+
export * from './api/ondewo/nlu/context_pb.d';
|
|
10
|
+
export * from './api/ondewo/nlu/project_statistics_pb.d';
|
|
24
11
|
export * from './api/ondewo/nlu/session_pb.d';
|
|
25
|
-
export * from './api/ondewo/nlu/operations_grpc_web_pb.d';
|
|
26
|
-
export * from './api/ondewo/nlu/common_pb.d';
|
|
27
|
-
export * from './api/ondewo/nlu/project_statistics_grpc_web_pb.d';
|
|
28
|
-
export * from './api/ondewo/nlu/context_grpc_web_pb.d';
|
|
29
12
|
export * from './api/ondewo/nlu/server_statistics_pb.d';
|
|
13
|
+
export * from './api/ondewo/nlu/agent_pb.d';
|
|
30
14
|
export * from './api/ondewo/nlu/aiservices_pb.d';
|
|
31
|
-
export * from './api/ondewo/nlu/
|
|
15
|
+
export * from './api/ondewo/nlu/user_grpc_web_pb.d';
|
|
16
|
+
export * from './api/ondewo/nlu/common_pb.d';
|
|
32
17
|
export * from './api/ondewo/nlu/entity_type_pb.d';
|
|
33
18
|
export * from './api/ondewo/nlu/agent_grpc_web_pb.d';
|
|
34
|
-
export * from './api/ondewo/nlu/
|
|
35
|
-
export * from './api/ondewo/nlu/
|
|
19
|
+
export * from './api/ondewo/nlu/webhook_grpc_web_pb.d';
|
|
20
|
+
export * from './api/ondewo/nlu/operation_metadata_pb.d';
|
|
36
21
|
export * from './api/ondewo/nlu/project_role_grpc_web_pb.d';
|
|
37
|
-
export * from './api/ondewo/
|
|
22
|
+
export * from './api/ondewo/nlu/intent_grpc_web_pb.d';
|
|
23
|
+
export * from './api/ondewo/nlu/webhook_pb.d';
|
|
24
|
+
export * from './api/ondewo/nlu/project_role_pb.d';
|
|
25
|
+
export * from './api/ondewo/nlu/operations_pb.d';
|
|
26
|
+
export * from './api/ondewo/nlu/aiservices_grpc_web_pb.d';
|
|
27
|
+
export * from './api/ondewo/nlu/entity_type_grpc_web_pb.d';
|
|
28
|
+
export * from './api/ondewo/nlu/session_grpc_web_pb.d';
|
|
38
29
|
export * from './api/ondewo/qa/qa_pb.d';
|
|
30
|
+
export * from './api/ondewo/qa/qa_grpc_web_pb.d';
|
|
31
|
+
export * from './api/google/type/latlng_pb.d';
|
|
32
|
+
export * from './api/google/rpc/status_pb.d';
|
|
33
|
+
export * from './api/google/protobuf/struct_pb.d';
|
|
34
|
+
export * from './api/google/protobuf/field_mask_pb.d';
|
|
35
|
+
export * from './api/google/protobuf/any_pb.d';
|
|
36
|
+
export * from './api/google/protobuf/timestamp_pb.d';
|
|
37
|
+
export * from './api/google/protobuf/empty_pb.d';
|
|
38
|
+
export * from './api/google/api/annotations_pb.d';
|