@ondewo/nlu-client-typescript 5.0.0 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/api/google/api/annotations_pb.d.ts +2 -2
  2. package/api/google/api/annotations_pb.js +7 -1
  3. package/api/google/protobuf/any_pb.js +9 -3
  4. package/api/google/protobuf/empty_pb.js +7 -1
  5. package/api/google/protobuf/field_mask_pb.js +8 -2
  6. package/api/google/protobuf/struct_pb.js +17 -10
  7. package/api/google/protobuf/timestamp_pb.js +9 -3
  8. package/api/google/rpc/status_pb.d.ts +1 -1
  9. package/api/google/rpc/status_pb.js +10 -4
  10. package/api/google/type/latlng_pb.js +9 -3
  11. package/api/ondewo/nlu/agent_grpc_web_pb.d.ts +15 -64
  12. package/api/ondewo/nlu/agent_grpc_web_pb.js +68 -310
  13. package/api/ondewo/nlu/agent_pb.d.ts +31 -12
  14. package/api/ondewo/nlu/agent_pb.js +507 -326
  15. package/api/ondewo/nlu/aiservices_grpc_web_pb.d.ts +35 -1
  16. package/api/ondewo/nlu/aiservices_grpc_web_pb.js +191 -3
  17. package/api/ondewo/nlu/aiservices_pb.d.ts +190 -3
  18. package/api/ondewo/nlu/aiservices_pb.js +1715 -135
  19. package/api/ondewo/nlu/ccai_project_grpc_web_pb.d.ts +13 -1
  20. package/api/ondewo/nlu/ccai_project_grpc_web_pb.js +68 -3
  21. package/api/ondewo/nlu/ccai_project_pb.d.ts +100 -5
  22. package/api/ondewo/nlu/ccai_project_pb.js +448 -67
  23. package/api/ondewo/nlu/common_pb.d.ts +27 -27
  24. package/api/ondewo/nlu/common_pb.js +100 -94
  25. package/api/ondewo/nlu/context_grpc_web_pb.d.ts +2 -2
  26. package/api/ondewo/nlu/context_grpc_web_pb.js +7 -3
  27. package/api/ondewo/nlu/context_pb.d.ts +4 -4
  28. package/api/ondewo/nlu/context_pb.js +36 -29
  29. package/api/ondewo/nlu/entity_type_grpc_web_pb.d.ts +3 -3
  30. package/api/ondewo/nlu/entity_type_grpc_web_pb.js +7 -3
  31. package/api/ondewo/nlu/entity_type_pb.d.ts +6 -6
  32. package/api/ondewo/nlu/entity_type_pb.js +88 -82
  33. package/api/ondewo/nlu/intent_grpc_web_pb.d.ts +3 -3
  34. package/api/ondewo/nlu/intent_grpc_web_pb.js +7 -3
  35. package/api/ondewo/nlu/intent_pb.d.ts +8 -8
  36. package/api/ondewo/nlu/intent_pb.js +251 -245
  37. package/api/ondewo/nlu/operation_metadata_pb.d.ts +1 -1
  38. package/api/ondewo/nlu/operation_metadata_pb.js +29 -23
  39. package/api/ondewo/nlu/operations_grpc_web_pb.d.ts +2 -2
  40. package/api/ondewo/nlu/operations_grpc_web_pb.js +7 -3
  41. package/api/ondewo/nlu/operations_pb.d.ts +6 -6
  42. package/api/ondewo/nlu/operations_pb.js +28 -22
  43. package/api/ondewo/nlu/project_role_grpc_web_pb.d.ts +2 -2
  44. package/api/ondewo/nlu/project_role_grpc_web_pb.js +7 -3
  45. package/api/ondewo/nlu/project_role_pb.d.ts +4 -4
  46. package/api/ondewo/nlu/project_role_pb.js +32 -26
  47. package/api/ondewo/nlu/project_statistics_grpc_web_pb.d.ts +2 -2
  48. package/api/ondewo/nlu/project_statistics_grpc_web_pb.js +7 -3
  49. package/api/ondewo/nlu/project_statistics_pb.d.ts +4 -4
  50. package/api/ondewo/nlu/project_statistics_pb.js +14 -8
  51. package/api/ondewo/nlu/server_statistics_grpc_web_pb.d.ts +3 -3
  52. package/api/ondewo/nlu/server_statistics_grpc_web_pb.js +7 -3
  53. package/api/ondewo/nlu/server_statistics_pb.d.ts +3 -3
  54. package/api/ondewo/nlu/server_statistics_pb.js +8 -2
  55. package/api/ondewo/nlu/session_grpc_web_pb.d.ts +46 -10
  56. package/api/ondewo/nlu/session_grpc_web_pb.js +209 -22
  57. package/api/ondewo/nlu/session_pb.d.ts +324 -24
  58. package/api/ondewo/nlu/session_pb.js +8251 -5782
  59. package/api/ondewo/nlu/user_grpc_web_pb.d.ts +3 -3
  60. package/api/ondewo/nlu/user_grpc_web_pb.js +7 -3
  61. package/api/ondewo/nlu/user_pb.d.ts +12 -6
  62. package/api/ondewo/nlu/user_pb.js +131 -73
  63. package/api/ondewo/nlu/utility_grpc_web_pb.d.ts +1 -1
  64. package/api/ondewo/nlu/utility_grpc_web_pb.js +7 -3
  65. package/api/ondewo/nlu/utility_pb.d.ts +2 -2
  66. package/api/ondewo/nlu/utility_pb.js +86 -80
  67. package/api/ondewo/nlu/webhook_grpc_web_pb.d.ts +2 -2
  68. package/api/ondewo/nlu/webhook_grpc_web_pb.js +7 -3
  69. package/api/ondewo/nlu/webhook_pb.d.ts +8 -8
  70. package/api/ondewo/nlu/webhook_pb.js +38 -32
  71. package/api/ondewo/qa/qa_grpc_web_pb.d.ts +2 -2
  72. package/api/ondewo/qa/qa_grpc_web_pb.js +7 -3
  73. package/api/ondewo/qa/qa_pb.d.ts +3 -3
  74. package/api/ondewo/qa/qa_pb.js +31 -25
  75. package/package.json +36 -16
  76. package/public-api.js +40 -0
@@ -13,14 +13,26 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
17
23
 
18
24
  var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
19
25
  goog.object.extend(proto, google_api_annotations_pb);
26
+ var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js');
27
+ goog.object.extend(proto, google_protobuf_struct_pb);
28
+ var ondewo_nlu_ccai_project_pb = require('../../ondewo/nlu/ccai_project_pb.js');
29
+ goog.object.extend(proto, ondewo_nlu_ccai_project_pb);
20
30
  var ondewo_nlu_intent_pb = require('../../ondewo/nlu/intent_pb.js');
21
31
  goog.object.extend(proto, ondewo_nlu_intent_pb);
22
32
  var ondewo_nlu_entity_type_pb = require('../../ondewo/nlu/entity_type_pb.js');
23
33
  goog.object.extend(proto, ondewo_nlu_entity_type_pb);
34
+ var ondewo_nlu_session_pb = require('../../ondewo/nlu/session_pb.js');
35
+ goog.object.extend(proto, ondewo_nlu_session_pb);
24
36
  goog.exportSymbol('proto.ondewo.nlu.AltSentence', null, global);
25
37
  goog.exportSymbol('proto.ondewo.nlu.AltTrainingPhrase', null, global);
26
38
  goog.exportSymbol('proto.ondewo.nlu.BertAugEnrichmentConfig', null, global);
@@ -48,12 +60,145 @@ goog.exportSymbol('proto.ondewo.nlu.GetSynonymsResponse', null, global);
48
60
  goog.exportSymbol('proto.ondewo.nlu.GloVeEnrichmentConfig', null, global);
49
61
  goog.exportSymbol('proto.ondewo.nlu.IntentAlgorithms', null, global);
50
62
  goog.exportSymbol('proto.ondewo.nlu.IntentClassified', null, global);
63
+ goog.exportSymbol('proto.ondewo.nlu.ListLlmModelsRequest', null, global);
64
+ goog.exportSymbol('proto.ondewo.nlu.ListLlmModelsResponse', null, global);
65
+ goog.exportSymbol('proto.ondewo.nlu.LlmEnrichmentConfig', null, global);
66
+ goog.exportSymbol('proto.ondewo.nlu.LlmGenerateRequest', null, global);
67
+ goog.exportSymbol('proto.ondewo.nlu.LlmGenerateResponse', null, global);
68
+ goog.exportSymbol('proto.ondewo.nlu.LlmModel', null, global);
51
69
  goog.exportSymbol('proto.ondewo.nlu.Mode', null, global);
70
+ goog.exportSymbol('proto.ondewo.nlu.StreamingLlmGenerateResponse', null, global);
52
71
  goog.exportSymbol('proto.ondewo.nlu.Synonym', null, global);
53
72
  goog.exportSymbol('proto.ondewo.nlu.ThesaurusEnrichmentConfig', null, global);
54
73
  goog.exportSymbol('proto.ondewo.nlu.Word2VecEnrichmentConfig', null, global);
55
74
  goog.exportSymbol('proto.ondewo.nlu.WordNetAugEnrichmentConfig', null, global);
56
75
  goog.exportSymbol('proto.ondewo.nlu.XLNetAugEnrichmentConfig', null, global);
76
+ /**
77
+ * Generated by JsPbCodeGenerator.
78
+ * @param {Array=} opt_data Optional initial data array, typically from a
79
+ * server response, or constructed directly in Javascript. The array is used
80
+ * in place and becomes part of the constructed object. It is not cloned.
81
+ * If no data is provided, the constructed object will be empty, but still
82
+ * valid.
83
+ * @extends {jspb.Message}
84
+ * @constructor
85
+ */
86
+ proto.ondewo.nlu.ListLlmModelsRequest = function(opt_data) {
87
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
88
+ };
89
+ goog.inherits(proto.ondewo.nlu.ListLlmModelsRequest, jspb.Message);
90
+ if (goog.DEBUG && !COMPILED) {
91
+ /**
92
+ * @public
93
+ * @override
94
+ */
95
+ proto.ondewo.nlu.ListLlmModelsRequest.displayName = 'proto.ondewo.nlu.ListLlmModelsRequest';
96
+ }
97
+ /**
98
+ * Generated by JsPbCodeGenerator.
99
+ * @param {Array=} opt_data Optional initial data array, typically from a
100
+ * server response, or constructed directly in Javascript. The array is used
101
+ * in place and becomes part of the constructed object. It is not cloned.
102
+ * If no data is provided, the constructed object will be empty, but still
103
+ * valid.
104
+ * @extends {jspb.Message}
105
+ * @constructor
106
+ */
107
+ proto.ondewo.nlu.ListLlmModelsResponse = function(opt_data) {
108
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.ListLlmModelsResponse.repeatedFields_, null);
109
+ };
110
+ goog.inherits(proto.ondewo.nlu.ListLlmModelsResponse, jspb.Message);
111
+ if (goog.DEBUG && !COMPILED) {
112
+ /**
113
+ * @public
114
+ * @override
115
+ */
116
+ proto.ondewo.nlu.ListLlmModelsResponse.displayName = 'proto.ondewo.nlu.ListLlmModelsResponse';
117
+ }
118
+ /**
119
+ * Generated by JsPbCodeGenerator.
120
+ * @param {Array=} opt_data Optional initial data array, typically from a
121
+ * server response, or constructed directly in Javascript. The array is used
122
+ * in place and becomes part of the constructed object. It is not cloned.
123
+ * If no data is provided, the constructed object will be empty, but still
124
+ * valid.
125
+ * @extends {jspb.Message}
126
+ * @constructor
127
+ */
128
+ proto.ondewo.nlu.LlmModel = function(opt_data) {
129
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
130
+ };
131
+ goog.inherits(proto.ondewo.nlu.LlmModel, jspb.Message);
132
+ if (goog.DEBUG && !COMPILED) {
133
+ /**
134
+ * @public
135
+ * @override
136
+ */
137
+ proto.ondewo.nlu.LlmModel.displayName = 'proto.ondewo.nlu.LlmModel';
138
+ }
139
+ /**
140
+ * Generated by JsPbCodeGenerator.
141
+ * @param {Array=} opt_data Optional initial data array, typically from a
142
+ * server response, or constructed directly in Javascript. The array is used
143
+ * in place and becomes part of the constructed object. It is not cloned.
144
+ * If no data is provided, the constructed object will be empty, but still
145
+ * valid.
146
+ * @extends {jspb.Message}
147
+ * @constructor
148
+ */
149
+ proto.ondewo.nlu.LlmGenerateRequest = function(opt_data) {
150
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.LlmGenerateRequest.repeatedFields_, null);
151
+ };
152
+ goog.inherits(proto.ondewo.nlu.LlmGenerateRequest, jspb.Message);
153
+ if (goog.DEBUG && !COMPILED) {
154
+ /**
155
+ * @public
156
+ * @override
157
+ */
158
+ proto.ondewo.nlu.LlmGenerateRequest.displayName = 'proto.ondewo.nlu.LlmGenerateRequest';
159
+ }
160
+ /**
161
+ * Generated by JsPbCodeGenerator.
162
+ * @param {Array=} opt_data Optional initial data array, typically from a
163
+ * server response, or constructed directly in Javascript. The array is used
164
+ * in place and becomes part of the constructed object. It is not cloned.
165
+ * If no data is provided, the constructed object will be empty, but still
166
+ * valid.
167
+ * @extends {jspb.Message}
168
+ * @constructor
169
+ */
170
+ proto.ondewo.nlu.LlmGenerateResponse = function(opt_data) {
171
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.LlmGenerateResponse.repeatedFields_, null);
172
+ };
173
+ goog.inherits(proto.ondewo.nlu.LlmGenerateResponse, jspb.Message);
174
+ if (goog.DEBUG && !COMPILED) {
175
+ /**
176
+ * @public
177
+ * @override
178
+ */
179
+ proto.ondewo.nlu.LlmGenerateResponse.displayName = 'proto.ondewo.nlu.LlmGenerateResponse';
180
+ }
181
+ /**
182
+ * Generated by JsPbCodeGenerator.
183
+ * @param {Array=} opt_data Optional initial data array, typically from a
184
+ * server response, or constructed directly in Javascript. The array is used
185
+ * in place and becomes part of the constructed object. It is not cloned.
186
+ * If no data is provided, the constructed object will be empty, but still
187
+ * valid.
188
+ * @extends {jspb.Message}
189
+ * @constructor
190
+ */
191
+ proto.ondewo.nlu.StreamingLlmGenerateResponse = function(opt_data) {
192
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
193
+ };
194
+ goog.inherits(proto.ondewo.nlu.StreamingLlmGenerateResponse, jspb.Message);
195
+ if (goog.DEBUG && !COMPILED) {
196
+ /**
197
+ * @public
198
+ * @override
199
+ */
200
+ proto.ondewo.nlu.StreamingLlmGenerateResponse.displayName = 'proto.ondewo.nlu.StreamingLlmGenerateResponse';
201
+ }
57
202
  /**
58
203
  * Generated by JsPbCodeGenerator.
59
204
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -621,6 +766,27 @@ if (goog.DEBUG && !COMPILED) {
621
766
  */
622
767
  proto.ondewo.nlu.XLNetAugEnrichmentConfig.displayName = 'proto.ondewo.nlu.XLNetAugEnrichmentConfig';
623
768
  }
769
+ /**
770
+ * Generated by JsPbCodeGenerator.
771
+ * @param {Array=} opt_data Optional initial data array, typically from a
772
+ * server response, or constructed directly in Javascript. The array is used
773
+ * in place and becomes part of the constructed object. It is not cloned.
774
+ * If no data is provided, the constructed object will be empty, but still
775
+ * valid.
776
+ * @extends {jspb.Message}
777
+ * @constructor
778
+ */
779
+ proto.ondewo.nlu.LlmEnrichmentConfig = function(opt_data) {
780
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
781
+ };
782
+ goog.inherits(proto.ondewo.nlu.LlmEnrichmentConfig, jspb.Message);
783
+ if (goog.DEBUG && !COMPILED) {
784
+ /**
785
+ * @public
786
+ * @override
787
+ */
788
+ proto.ondewo.nlu.LlmEnrichmentConfig.displayName = 'proto.ondewo.nlu.LlmEnrichmentConfig';
789
+ }
624
790
  /**
625
791
  * Generated by JsPbCodeGenerator.
626
792
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -652,38 +818,1181 @@ if (goog.DEBUG && !COMPILED) {
652
818
  * @extends {jspb.Message}
653
819
  * @constructor
654
820
  */
655
- proto.ondewo.nlu.IntentClassified = function(opt_data) {
656
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
821
+ proto.ondewo.nlu.IntentClassified = function(opt_data) {
822
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
823
+ };
824
+ goog.inherits(proto.ondewo.nlu.IntentClassified, jspb.Message);
825
+ if (goog.DEBUG && !COMPILED) {
826
+ /**
827
+ * @public
828
+ * @override
829
+ */
830
+ proto.ondewo.nlu.IntentClassified.displayName = 'proto.ondewo.nlu.IntentClassified';
831
+ }
832
+ /**
833
+ * Generated by JsPbCodeGenerator.
834
+ * @param {Array=} opt_data Optional initial data array, typically from a
835
+ * server response, or constructed directly in Javascript. The array is used
836
+ * in place and becomes part of the constructed object. It is not cloned.
837
+ * If no data is provided, the constructed object will be empty, but still
838
+ * valid.
839
+ * @extends {jspb.Message}
840
+ * @constructor
841
+ */
842
+ proto.ondewo.nlu.ClassifyIntentsResponse = function(opt_data) {
843
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.ClassifyIntentsResponse.repeatedFields_, null);
844
+ };
845
+ goog.inherits(proto.ondewo.nlu.ClassifyIntentsResponse, jspb.Message);
846
+ if (goog.DEBUG && !COMPILED) {
847
+ /**
848
+ * @public
849
+ * @override
850
+ */
851
+ proto.ondewo.nlu.ClassifyIntentsResponse.displayName = 'proto.ondewo.nlu.ClassifyIntentsResponse';
852
+ }
853
+
854
+
855
+
856
+ if (jspb.Message.GENERATE_TO_OBJECT) {
857
+ /**
858
+ * Creates an object representation of this proto.
859
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
860
+ * Optional fields that are not set will be set to undefined.
861
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
862
+ * For the list of reserved names please see:
863
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
864
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
865
+ * JSPB instance for transitional soy proto support:
866
+ * http://goto/soy-param-migration
867
+ * @return {!Object}
868
+ */
869
+ proto.ondewo.nlu.ListLlmModelsRequest.prototype.toObject = function(opt_includeInstance) {
870
+ return proto.ondewo.nlu.ListLlmModelsRequest.toObject(opt_includeInstance, this);
871
+ };
872
+
873
+
874
+ /**
875
+ * Static version of the {@see toObject} method.
876
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
877
+ * the JSPB instance for transitional soy proto support:
878
+ * http://goto/soy-param-migration
879
+ * @param {!proto.ondewo.nlu.ListLlmModelsRequest} msg The msg instance to transform.
880
+ * @return {!Object}
881
+ * @suppress {unusedLocalVariables} f is only used for nested messages
882
+ */
883
+ proto.ondewo.nlu.ListLlmModelsRequest.toObject = function(includeInstance, msg) {
884
+ var f, obj = {
885
+ ccaiServiceName: jspb.Message.getFieldWithDefault(msg, 1, "")
886
+ };
887
+
888
+ if (includeInstance) {
889
+ obj.$jspbMessageInstance = msg;
890
+ }
891
+ return obj;
892
+ };
893
+ }
894
+
895
+
896
+ /**
897
+ * Deserializes binary data (in protobuf wire format).
898
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
899
+ * @return {!proto.ondewo.nlu.ListLlmModelsRequest}
900
+ */
901
+ proto.ondewo.nlu.ListLlmModelsRequest.deserializeBinary = function(bytes) {
902
+ var reader = new jspb.BinaryReader(bytes);
903
+ var msg = new proto.ondewo.nlu.ListLlmModelsRequest;
904
+ return proto.ondewo.nlu.ListLlmModelsRequest.deserializeBinaryFromReader(msg, reader);
905
+ };
906
+
907
+
908
+ /**
909
+ * Deserializes binary data (in protobuf wire format) from the
910
+ * given reader into the given message object.
911
+ * @param {!proto.ondewo.nlu.ListLlmModelsRequest} msg The message object to deserialize into.
912
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
913
+ * @return {!proto.ondewo.nlu.ListLlmModelsRequest}
914
+ */
915
+ proto.ondewo.nlu.ListLlmModelsRequest.deserializeBinaryFromReader = function(msg, reader) {
916
+ while (reader.nextField()) {
917
+ if (reader.isEndGroup()) {
918
+ break;
919
+ }
920
+ var field = reader.getFieldNumber();
921
+ switch (field) {
922
+ case 1:
923
+ var value = /** @type {string} */ (reader.readString());
924
+ msg.setCcaiServiceName(value);
925
+ break;
926
+ default:
927
+ reader.skipField();
928
+ break;
929
+ }
930
+ }
931
+ return msg;
932
+ };
933
+
934
+
935
+ /**
936
+ * Serializes the message to binary data (in protobuf wire format).
937
+ * @return {!Uint8Array}
938
+ */
939
+ proto.ondewo.nlu.ListLlmModelsRequest.prototype.serializeBinary = function() {
940
+ var writer = new jspb.BinaryWriter();
941
+ proto.ondewo.nlu.ListLlmModelsRequest.serializeBinaryToWriter(this, writer);
942
+ return writer.getResultBuffer();
943
+ };
944
+
945
+
946
+ /**
947
+ * Serializes the given message to binary data (in protobuf wire
948
+ * format), writing to the given BinaryWriter.
949
+ * @param {!proto.ondewo.nlu.ListLlmModelsRequest} message
950
+ * @param {!jspb.BinaryWriter} writer
951
+ * @suppress {unusedLocalVariables} f is only used for nested messages
952
+ */
953
+ proto.ondewo.nlu.ListLlmModelsRequest.serializeBinaryToWriter = function(message, writer) {
954
+ var f = undefined;
955
+ f = message.getCcaiServiceName();
956
+ if (f.length > 0) {
957
+ writer.writeString(
958
+ 1,
959
+ f
960
+ );
961
+ }
962
+ };
963
+
964
+
965
+ /**
966
+ * optional string ccai_service_name = 1;
967
+ * @return {string}
968
+ */
969
+ proto.ondewo.nlu.ListLlmModelsRequest.prototype.getCcaiServiceName = function() {
970
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
971
+ };
972
+
973
+
974
+ /**
975
+ * @param {string} value
976
+ * @return {!proto.ondewo.nlu.ListLlmModelsRequest} returns this
977
+ */
978
+ proto.ondewo.nlu.ListLlmModelsRequest.prototype.setCcaiServiceName = function(value) {
979
+ return jspb.Message.setProto3StringField(this, 1, value);
980
+ };
981
+
982
+
983
+
984
+ /**
985
+ * List of repeated fields within this message type.
986
+ * @private {!Array<number>}
987
+ * @const
988
+ */
989
+ proto.ondewo.nlu.ListLlmModelsResponse.repeatedFields_ = [1];
990
+
991
+
992
+
993
+ if (jspb.Message.GENERATE_TO_OBJECT) {
994
+ /**
995
+ * Creates an object representation of this proto.
996
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
997
+ * Optional fields that are not set will be set to undefined.
998
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
999
+ * For the list of reserved names please see:
1000
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1001
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1002
+ * JSPB instance for transitional soy proto support:
1003
+ * http://goto/soy-param-migration
1004
+ * @return {!Object}
1005
+ */
1006
+ proto.ondewo.nlu.ListLlmModelsResponse.prototype.toObject = function(opt_includeInstance) {
1007
+ return proto.ondewo.nlu.ListLlmModelsResponse.toObject(opt_includeInstance, this);
1008
+ };
1009
+
1010
+
1011
+ /**
1012
+ * Static version of the {@see toObject} method.
1013
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1014
+ * the JSPB instance for transitional soy proto support:
1015
+ * http://goto/soy-param-migration
1016
+ * @param {!proto.ondewo.nlu.ListLlmModelsResponse} msg The msg instance to transform.
1017
+ * @return {!Object}
1018
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1019
+ */
1020
+ proto.ondewo.nlu.ListLlmModelsResponse.toObject = function(includeInstance, msg) {
1021
+ var f, obj = {
1022
+ llmModelsList: jspb.Message.toObjectList(msg.getLlmModelsList(),
1023
+ proto.ondewo.nlu.LlmModel.toObject, includeInstance)
1024
+ };
1025
+
1026
+ if (includeInstance) {
1027
+ obj.$jspbMessageInstance = msg;
1028
+ }
1029
+ return obj;
1030
+ };
1031
+ }
1032
+
1033
+
1034
+ /**
1035
+ * Deserializes binary data (in protobuf wire format).
1036
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1037
+ * @return {!proto.ondewo.nlu.ListLlmModelsResponse}
1038
+ */
1039
+ proto.ondewo.nlu.ListLlmModelsResponse.deserializeBinary = function(bytes) {
1040
+ var reader = new jspb.BinaryReader(bytes);
1041
+ var msg = new proto.ondewo.nlu.ListLlmModelsResponse;
1042
+ return proto.ondewo.nlu.ListLlmModelsResponse.deserializeBinaryFromReader(msg, reader);
1043
+ };
1044
+
1045
+
1046
+ /**
1047
+ * Deserializes binary data (in protobuf wire format) from the
1048
+ * given reader into the given message object.
1049
+ * @param {!proto.ondewo.nlu.ListLlmModelsResponse} msg The message object to deserialize into.
1050
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1051
+ * @return {!proto.ondewo.nlu.ListLlmModelsResponse}
1052
+ */
1053
+ proto.ondewo.nlu.ListLlmModelsResponse.deserializeBinaryFromReader = function(msg, reader) {
1054
+ while (reader.nextField()) {
1055
+ if (reader.isEndGroup()) {
1056
+ break;
1057
+ }
1058
+ var field = reader.getFieldNumber();
1059
+ switch (field) {
1060
+ case 1:
1061
+ var value = new proto.ondewo.nlu.LlmModel;
1062
+ reader.readMessage(value,proto.ondewo.nlu.LlmModel.deserializeBinaryFromReader);
1063
+ msg.addLlmModels(value);
1064
+ break;
1065
+ default:
1066
+ reader.skipField();
1067
+ break;
1068
+ }
1069
+ }
1070
+ return msg;
1071
+ };
1072
+
1073
+
1074
+ /**
1075
+ * Serializes the message to binary data (in protobuf wire format).
1076
+ * @return {!Uint8Array}
1077
+ */
1078
+ proto.ondewo.nlu.ListLlmModelsResponse.prototype.serializeBinary = function() {
1079
+ var writer = new jspb.BinaryWriter();
1080
+ proto.ondewo.nlu.ListLlmModelsResponse.serializeBinaryToWriter(this, writer);
1081
+ return writer.getResultBuffer();
1082
+ };
1083
+
1084
+
1085
+ /**
1086
+ * Serializes the given message to binary data (in protobuf wire
1087
+ * format), writing to the given BinaryWriter.
1088
+ * @param {!proto.ondewo.nlu.ListLlmModelsResponse} message
1089
+ * @param {!jspb.BinaryWriter} writer
1090
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1091
+ */
1092
+ proto.ondewo.nlu.ListLlmModelsResponse.serializeBinaryToWriter = function(message, writer) {
1093
+ var f = undefined;
1094
+ f = message.getLlmModelsList();
1095
+ if (f.length > 0) {
1096
+ writer.writeRepeatedMessage(
1097
+ 1,
1098
+ f,
1099
+ proto.ondewo.nlu.LlmModel.serializeBinaryToWriter
1100
+ );
1101
+ }
1102
+ };
1103
+
1104
+
1105
+ /**
1106
+ * repeated LlmModel llm_models = 1;
1107
+ * @return {!Array<!proto.ondewo.nlu.LlmModel>}
1108
+ */
1109
+ proto.ondewo.nlu.ListLlmModelsResponse.prototype.getLlmModelsList = function() {
1110
+ return /** @type{!Array<!proto.ondewo.nlu.LlmModel>} */ (
1111
+ jspb.Message.getRepeatedWrapperField(this, proto.ondewo.nlu.LlmModel, 1));
1112
+ };
1113
+
1114
+
1115
+ /**
1116
+ * @param {!Array<!proto.ondewo.nlu.LlmModel>} value
1117
+ * @return {!proto.ondewo.nlu.ListLlmModelsResponse} returns this
1118
+ */
1119
+ proto.ondewo.nlu.ListLlmModelsResponse.prototype.setLlmModelsList = function(value) {
1120
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1121
+ };
1122
+
1123
+
1124
+ /**
1125
+ * @param {!proto.ondewo.nlu.LlmModel=} opt_value
1126
+ * @param {number=} opt_index
1127
+ * @return {!proto.ondewo.nlu.LlmModel}
1128
+ */
1129
+ proto.ondewo.nlu.ListLlmModelsResponse.prototype.addLlmModels = function(opt_value, opt_index) {
1130
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ondewo.nlu.LlmModel, opt_index);
1131
+ };
1132
+
1133
+
1134
+ /**
1135
+ * Clears the list making it empty but non-null.
1136
+ * @return {!proto.ondewo.nlu.ListLlmModelsResponse} returns this
1137
+ */
1138
+ proto.ondewo.nlu.ListLlmModelsResponse.prototype.clearLlmModelsList = function() {
1139
+ return this.setLlmModelsList([]);
1140
+ };
1141
+
1142
+
1143
+
1144
+
1145
+
1146
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1147
+ /**
1148
+ * Creates an object representation of this proto.
1149
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1150
+ * Optional fields that are not set will be set to undefined.
1151
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1152
+ * For the list of reserved names please see:
1153
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1154
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1155
+ * JSPB instance for transitional soy proto support:
1156
+ * http://goto/soy-param-migration
1157
+ * @return {!Object}
1158
+ */
1159
+ proto.ondewo.nlu.LlmModel.prototype.toObject = function(opt_includeInstance) {
1160
+ return proto.ondewo.nlu.LlmModel.toObject(opt_includeInstance, this);
1161
+ };
1162
+
1163
+
1164
+ /**
1165
+ * Static version of the {@see toObject} method.
1166
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1167
+ * the JSPB instance for transitional soy proto support:
1168
+ * http://goto/soy-param-migration
1169
+ * @param {!proto.ondewo.nlu.LlmModel} msg The msg instance to transform.
1170
+ * @return {!Object}
1171
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1172
+ */
1173
+ proto.ondewo.nlu.LlmModel.toObject = function(includeInstance, msg) {
1174
+ var f, obj = {
1175
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1176
+ displayName: jspb.Message.getFieldWithDefault(msg, 2, ""),
1177
+ description: jspb.Message.getFieldWithDefault(msg, 3, ""),
1178
+ ccaiServiceName: jspb.Message.getFieldWithDefault(msg, 4, ""),
1179
+ ccaiServiceProvider: jspb.Message.getFieldWithDefault(msg, 5, 0)
1180
+ };
1181
+
1182
+ if (includeInstance) {
1183
+ obj.$jspbMessageInstance = msg;
1184
+ }
1185
+ return obj;
1186
+ };
1187
+ }
1188
+
1189
+
1190
+ /**
1191
+ * Deserializes binary data (in protobuf wire format).
1192
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1193
+ * @return {!proto.ondewo.nlu.LlmModel}
1194
+ */
1195
+ proto.ondewo.nlu.LlmModel.deserializeBinary = function(bytes) {
1196
+ var reader = new jspb.BinaryReader(bytes);
1197
+ var msg = new proto.ondewo.nlu.LlmModel;
1198
+ return proto.ondewo.nlu.LlmModel.deserializeBinaryFromReader(msg, reader);
1199
+ };
1200
+
1201
+
1202
+ /**
1203
+ * Deserializes binary data (in protobuf wire format) from the
1204
+ * given reader into the given message object.
1205
+ * @param {!proto.ondewo.nlu.LlmModel} msg The message object to deserialize into.
1206
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1207
+ * @return {!proto.ondewo.nlu.LlmModel}
1208
+ */
1209
+ proto.ondewo.nlu.LlmModel.deserializeBinaryFromReader = function(msg, reader) {
1210
+ while (reader.nextField()) {
1211
+ if (reader.isEndGroup()) {
1212
+ break;
1213
+ }
1214
+ var field = reader.getFieldNumber();
1215
+ switch (field) {
1216
+ case 1:
1217
+ var value = /** @type {string} */ (reader.readString());
1218
+ msg.setName(value);
1219
+ break;
1220
+ case 2:
1221
+ var value = /** @type {string} */ (reader.readString());
1222
+ msg.setDisplayName(value);
1223
+ break;
1224
+ case 3:
1225
+ var value = /** @type {string} */ (reader.readString());
1226
+ msg.setDescription(value);
1227
+ break;
1228
+ case 4:
1229
+ var value = /** @type {string} */ (reader.readString());
1230
+ msg.setCcaiServiceName(value);
1231
+ break;
1232
+ case 5:
1233
+ var value = /** @type {!proto.ondewo.nlu.CcaiServiceProvider} */ (reader.readEnum());
1234
+ msg.setCcaiServiceProvider(value);
1235
+ break;
1236
+ default:
1237
+ reader.skipField();
1238
+ break;
1239
+ }
1240
+ }
1241
+ return msg;
1242
+ };
1243
+
1244
+
1245
+ /**
1246
+ * Serializes the message to binary data (in protobuf wire format).
1247
+ * @return {!Uint8Array}
1248
+ */
1249
+ proto.ondewo.nlu.LlmModel.prototype.serializeBinary = function() {
1250
+ var writer = new jspb.BinaryWriter();
1251
+ proto.ondewo.nlu.LlmModel.serializeBinaryToWriter(this, writer);
1252
+ return writer.getResultBuffer();
1253
+ };
1254
+
1255
+
1256
+ /**
1257
+ * Serializes the given message to binary data (in protobuf wire
1258
+ * format), writing to the given BinaryWriter.
1259
+ * @param {!proto.ondewo.nlu.LlmModel} message
1260
+ * @param {!jspb.BinaryWriter} writer
1261
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1262
+ */
1263
+ proto.ondewo.nlu.LlmModel.serializeBinaryToWriter = function(message, writer) {
1264
+ var f = undefined;
1265
+ f = message.getName();
1266
+ if (f.length > 0) {
1267
+ writer.writeString(
1268
+ 1,
1269
+ f
1270
+ );
1271
+ }
1272
+ f = message.getDisplayName();
1273
+ if (f.length > 0) {
1274
+ writer.writeString(
1275
+ 2,
1276
+ f
1277
+ );
1278
+ }
1279
+ f = message.getDescription();
1280
+ if (f.length > 0) {
1281
+ writer.writeString(
1282
+ 3,
1283
+ f
1284
+ );
1285
+ }
1286
+ f = message.getCcaiServiceName();
1287
+ if (f.length > 0) {
1288
+ writer.writeString(
1289
+ 4,
1290
+ f
1291
+ );
1292
+ }
1293
+ f = message.getCcaiServiceProvider();
1294
+ if (f !== 0.0) {
1295
+ writer.writeEnum(
1296
+ 5,
1297
+ f
1298
+ );
1299
+ }
1300
+ };
1301
+
1302
+
1303
+ /**
1304
+ * optional string name = 1;
1305
+ * @return {string}
1306
+ */
1307
+ proto.ondewo.nlu.LlmModel.prototype.getName = function() {
1308
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1309
+ };
1310
+
1311
+
1312
+ /**
1313
+ * @param {string} value
1314
+ * @return {!proto.ondewo.nlu.LlmModel} returns this
1315
+ */
1316
+ proto.ondewo.nlu.LlmModel.prototype.setName = function(value) {
1317
+ return jspb.Message.setProto3StringField(this, 1, value);
1318
+ };
1319
+
1320
+
1321
+ /**
1322
+ * optional string display_name = 2;
1323
+ * @return {string}
1324
+ */
1325
+ proto.ondewo.nlu.LlmModel.prototype.getDisplayName = function() {
1326
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1327
+ };
1328
+
1329
+
1330
+ /**
1331
+ * @param {string} value
1332
+ * @return {!proto.ondewo.nlu.LlmModel} returns this
1333
+ */
1334
+ proto.ondewo.nlu.LlmModel.prototype.setDisplayName = function(value) {
1335
+ return jspb.Message.setProto3StringField(this, 2, value);
1336
+ };
1337
+
1338
+
1339
+ /**
1340
+ * optional string description = 3;
1341
+ * @return {string}
1342
+ */
1343
+ proto.ondewo.nlu.LlmModel.prototype.getDescription = function() {
1344
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1345
+ };
1346
+
1347
+
1348
+ /**
1349
+ * @param {string} value
1350
+ * @return {!proto.ondewo.nlu.LlmModel} returns this
1351
+ */
1352
+ proto.ondewo.nlu.LlmModel.prototype.setDescription = function(value) {
1353
+ return jspb.Message.setProto3StringField(this, 3, value);
1354
+ };
1355
+
1356
+
1357
+ /**
1358
+ * optional string ccai_service_name = 4;
1359
+ * @return {string}
1360
+ */
1361
+ proto.ondewo.nlu.LlmModel.prototype.getCcaiServiceName = function() {
1362
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1363
+ };
1364
+
1365
+
1366
+ /**
1367
+ * @param {string} value
1368
+ * @return {!proto.ondewo.nlu.LlmModel} returns this
1369
+ */
1370
+ proto.ondewo.nlu.LlmModel.prototype.setCcaiServiceName = function(value) {
1371
+ return jspb.Message.setProto3StringField(this, 4, value);
1372
+ };
1373
+
1374
+
1375
+ /**
1376
+ * optional CcaiServiceProvider ccai_service_provider = 5;
1377
+ * @return {!proto.ondewo.nlu.CcaiServiceProvider}
1378
+ */
1379
+ proto.ondewo.nlu.LlmModel.prototype.getCcaiServiceProvider = function() {
1380
+ return /** @type {!proto.ondewo.nlu.CcaiServiceProvider} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
1381
+ };
1382
+
1383
+
1384
+ /**
1385
+ * @param {!proto.ondewo.nlu.CcaiServiceProvider} value
1386
+ * @return {!proto.ondewo.nlu.LlmModel} returns this
1387
+ */
1388
+ proto.ondewo.nlu.LlmModel.prototype.setCcaiServiceProvider = function(value) {
1389
+ return jspb.Message.setProto3EnumField(this, 5, value);
1390
+ };
1391
+
1392
+
1393
+
1394
+ /**
1395
+ * List of repeated fields within this message type.
1396
+ * @private {!Array<number>}
1397
+ * @const
1398
+ */
1399
+ proto.ondewo.nlu.LlmGenerateRequest.repeatedFields_ = [3];
1400
+
1401
+
1402
+
1403
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1404
+ /**
1405
+ * Creates an object representation of this proto.
1406
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1407
+ * Optional fields that are not set will be set to undefined.
1408
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1409
+ * For the list of reserved names please see:
1410
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1411
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1412
+ * JSPB instance for transitional soy proto support:
1413
+ * http://goto/soy-param-migration
1414
+ * @return {!Object}
1415
+ */
1416
+ proto.ondewo.nlu.LlmGenerateRequest.prototype.toObject = function(opt_includeInstance) {
1417
+ return proto.ondewo.nlu.LlmGenerateRequest.toObject(opt_includeInstance, this);
1418
+ };
1419
+
1420
+
1421
+ /**
1422
+ * Static version of the {@see toObject} method.
1423
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1424
+ * the JSPB instance for transitional soy proto support:
1425
+ * http://goto/soy-param-migration
1426
+ * @param {!proto.ondewo.nlu.LlmGenerateRequest} msg The msg instance to transform.
1427
+ * @return {!Object}
1428
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1429
+ */
1430
+ proto.ondewo.nlu.LlmGenerateRequest.toObject = function(includeInstance, msg) {
1431
+ var f, obj = {
1432
+ llmGenerationRequest: (f = msg.getLlmGenerationRequest()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
1433
+ ccaiServiceName: jspb.Message.getFieldWithDefault(msg, 2, ""),
1434
+ fileResourcesList: jspb.Message.toObjectList(msg.getFileResourcesList(),
1435
+ ondewo_nlu_session_pb.FileResource.toObject, includeInstance)
1436
+ };
1437
+
1438
+ if (includeInstance) {
1439
+ obj.$jspbMessageInstance = msg;
1440
+ }
1441
+ return obj;
1442
+ };
1443
+ }
1444
+
1445
+
1446
+ /**
1447
+ * Deserializes binary data (in protobuf wire format).
1448
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1449
+ * @return {!proto.ondewo.nlu.LlmGenerateRequest}
1450
+ */
1451
+ proto.ondewo.nlu.LlmGenerateRequest.deserializeBinary = function(bytes) {
1452
+ var reader = new jspb.BinaryReader(bytes);
1453
+ var msg = new proto.ondewo.nlu.LlmGenerateRequest;
1454
+ return proto.ondewo.nlu.LlmGenerateRequest.deserializeBinaryFromReader(msg, reader);
1455
+ };
1456
+
1457
+
1458
+ /**
1459
+ * Deserializes binary data (in protobuf wire format) from the
1460
+ * given reader into the given message object.
1461
+ * @param {!proto.ondewo.nlu.LlmGenerateRequest} msg The message object to deserialize into.
1462
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1463
+ * @return {!proto.ondewo.nlu.LlmGenerateRequest}
1464
+ */
1465
+ proto.ondewo.nlu.LlmGenerateRequest.deserializeBinaryFromReader = function(msg, reader) {
1466
+ while (reader.nextField()) {
1467
+ if (reader.isEndGroup()) {
1468
+ break;
1469
+ }
1470
+ var field = reader.getFieldNumber();
1471
+ switch (field) {
1472
+ case 1:
1473
+ var value = new google_protobuf_struct_pb.Struct;
1474
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
1475
+ msg.setLlmGenerationRequest(value);
1476
+ break;
1477
+ case 2:
1478
+ var value = /** @type {string} */ (reader.readString());
1479
+ msg.setCcaiServiceName(value);
1480
+ break;
1481
+ case 3:
1482
+ var value = new ondewo_nlu_session_pb.FileResource;
1483
+ reader.readMessage(value,ondewo_nlu_session_pb.FileResource.deserializeBinaryFromReader);
1484
+ msg.addFileResources(value);
1485
+ break;
1486
+ default:
1487
+ reader.skipField();
1488
+ break;
1489
+ }
1490
+ }
1491
+ return msg;
1492
+ };
1493
+
1494
+
1495
+ /**
1496
+ * Serializes the message to binary data (in protobuf wire format).
1497
+ * @return {!Uint8Array}
1498
+ */
1499
+ proto.ondewo.nlu.LlmGenerateRequest.prototype.serializeBinary = function() {
1500
+ var writer = new jspb.BinaryWriter();
1501
+ proto.ondewo.nlu.LlmGenerateRequest.serializeBinaryToWriter(this, writer);
1502
+ return writer.getResultBuffer();
1503
+ };
1504
+
1505
+
1506
+ /**
1507
+ * Serializes the given message to binary data (in protobuf wire
1508
+ * format), writing to the given BinaryWriter.
1509
+ * @param {!proto.ondewo.nlu.LlmGenerateRequest} message
1510
+ * @param {!jspb.BinaryWriter} writer
1511
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1512
+ */
1513
+ proto.ondewo.nlu.LlmGenerateRequest.serializeBinaryToWriter = function(message, writer) {
1514
+ var f = undefined;
1515
+ f = message.getLlmGenerationRequest();
1516
+ if (f != null) {
1517
+ writer.writeMessage(
1518
+ 1,
1519
+ f,
1520
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
1521
+ );
1522
+ }
1523
+ f = message.getCcaiServiceName();
1524
+ if (f.length > 0) {
1525
+ writer.writeString(
1526
+ 2,
1527
+ f
1528
+ );
1529
+ }
1530
+ f = message.getFileResourcesList();
1531
+ if (f.length > 0) {
1532
+ writer.writeRepeatedMessage(
1533
+ 3,
1534
+ f,
1535
+ ondewo_nlu_session_pb.FileResource.serializeBinaryToWriter
1536
+ );
1537
+ }
1538
+ };
1539
+
1540
+
1541
+ /**
1542
+ * optional google.protobuf.Struct llm_generation_request = 1;
1543
+ * @return {?proto.google.protobuf.Struct}
1544
+ */
1545
+ proto.ondewo.nlu.LlmGenerateRequest.prototype.getLlmGenerationRequest = function() {
1546
+ return /** @type{?proto.google.protobuf.Struct} */ (
1547
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1));
1548
+ };
1549
+
1550
+
1551
+ /**
1552
+ * @param {?proto.google.protobuf.Struct|undefined} value
1553
+ * @return {!proto.ondewo.nlu.LlmGenerateRequest} returns this
1554
+ */
1555
+ proto.ondewo.nlu.LlmGenerateRequest.prototype.setLlmGenerationRequest = function(value) {
1556
+ return jspb.Message.setWrapperField(this, 1, value);
1557
+ };
1558
+
1559
+
1560
+ /**
1561
+ * Clears the message field making it undefined.
1562
+ * @return {!proto.ondewo.nlu.LlmGenerateRequest} returns this
1563
+ */
1564
+ proto.ondewo.nlu.LlmGenerateRequest.prototype.clearLlmGenerationRequest = function() {
1565
+ return this.setLlmGenerationRequest(undefined);
1566
+ };
1567
+
1568
+
1569
+ /**
1570
+ * Returns whether this field is set.
1571
+ * @return {boolean}
1572
+ */
1573
+ proto.ondewo.nlu.LlmGenerateRequest.prototype.hasLlmGenerationRequest = function() {
1574
+ return jspb.Message.getField(this, 1) != null;
1575
+ };
1576
+
1577
+
1578
+ /**
1579
+ * optional string ccai_service_name = 2;
1580
+ * @return {string}
1581
+ */
1582
+ proto.ondewo.nlu.LlmGenerateRequest.prototype.getCcaiServiceName = function() {
1583
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1584
+ };
1585
+
1586
+
1587
+ /**
1588
+ * @param {string} value
1589
+ * @return {!proto.ondewo.nlu.LlmGenerateRequest} returns this
1590
+ */
1591
+ proto.ondewo.nlu.LlmGenerateRequest.prototype.setCcaiServiceName = function(value) {
1592
+ return jspb.Message.setProto3StringField(this, 2, value);
1593
+ };
1594
+
1595
+
1596
+ /**
1597
+ * repeated FileResource file_resources = 3;
1598
+ * @return {!Array<!proto.ondewo.nlu.FileResource>}
1599
+ */
1600
+ proto.ondewo.nlu.LlmGenerateRequest.prototype.getFileResourcesList = function() {
1601
+ return /** @type{!Array<!proto.ondewo.nlu.FileResource>} */ (
1602
+ jspb.Message.getRepeatedWrapperField(this, ondewo_nlu_session_pb.FileResource, 3));
1603
+ };
1604
+
1605
+
1606
+ /**
1607
+ * @param {!Array<!proto.ondewo.nlu.FileResource>} value
1608
+ * @return {!proto.ondewo.nlu.LlmGenerateRequest} returns this
1609
+ */
1610
+ proto.ondewo.nlu.LlmGenerateRequest.prototype.setFileResourcesList = function(value) {
1611
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
1612
+ };
1613
+
1614
+
1615
+ /**
1616
+ * @param {!proto.ondewo.nlu.FileResource=} opt_value
1617
+ * @param {number=} opt_index
1618
+ * @return {!proto.ondewo.nlu.FileResource}
1619
+ */
1620
+ proto.ondewo.nlu.LlmGenerateRequest.prototype.addFileResources = function(opt_value, opt_index) {
1621
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.ondewo.nlu.FileResource, opt_index);
1622
+ };
1623
+
1624
+
1625
+ /**
1626
+ * Clears the list making it empty but non-null.
1627
+ * @return {!proto.ondewo.nlu.LlmGenerateRequest} returns this
1628
+ */
1629
+ proto.ondewo.nlu.LlmGenerateRequest.prototype.clearFileResourcesList = function() {
1630
+ return this.setFileResourcesList([]);
1631
+ };
1632
+
1633
+
1634
+
1635
+ /**
1636
+ * List of repeated fields within this message type.
1637
+ * @private {!Array<number>}
1638
+ * @const
1639
+ */
1640
+ proto.ondewo.nlu.LlmGenerateResponse.repeatedFields_ = [2];
1641
+
1642
+
1643
+
1644
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1645
+ /**
1646
+ * Creates an object representation of this proto.
1647
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1648
+ * Optional fields that are not set will be set to undefined.
1649
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1650
+ * For the list of reserved names please see:
1651
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1652
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1653
+ * JSPB instance for transitional soy proto support:
1654
+ * http://goto/soy-param-migration
1655
+ * @return {!Object}
1656
+ */
1657
+ proto.ondewo.nlu.LlmGenerateResponse.prototype.toObject = function(opt_includeInstance) {
1658
+ return proto.ondewo.nlu.LlmGenerateResponse.toObject(opt_includeInstance, this);
1659
+ };
1660
+
1661
+
1662
+ /**
1663
+ * Static version of the {@see toObject} method.
1664
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1665
+ * the JSPB instance for transitional soy proto support:
1666
+ * http://goto/soy-param-migration
1667
+ * @param {!proto.ondewo.nlu.LlmGenerateResponse} msg The msg instance to transform.
1668
+ * @return {!Object}
1669
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1670
+ */
1671
+ proto.ondewo.nlu.LlmGenerateResponse.toObject = function(includeInstance, msg) {
1672
+ var f, obj = {
1673
+ llmGenerationResponse: (f = msg.getLlmGenerationResponse()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
1674
+ fileResourcesList: jspb.Message.toObjectList(msg.getFileResourcesList(),
1675
+ ondewo_nlu_session_pb.FileResource.toObject, includeInstance)
1676
+ };
1677
+
1678
+ if (includeInstance) {
1679
+ obj.$jspbMessageInstance = msg;
1680
+ }
1681
+ return obj;
1682
+ };
1683
+ }
1684
+
1685
+
1686
+ /**
1687
+ * Deserializes binary data (in protobuf wire format).
1688
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1689
+ * @return {!proto.ondewo.nlu.LlmGenerateResponse}
1690
+ */
1691
+ proto.ondewo.nlu.LlmGenerateResponse.deserializeBinary = function(bytes) {
1692
+ var reader = new jspb.BinaryReader(bytes);
1693
+ var msg = new proto.ondewo.nlu.LlmGenerateResponse;
1694
+ return proto.ondewo.nlu.LlmGenerateResponse.deserializeBinaryFromReader(msg, reader);
1695
+ };
1696
+
1697
+
1698
+ /**
1699
+ * Deserializes binary data (in protobuf wire format) from the
1700
+ * given reader into the given message object.
1701
+ * @param {!proto.ondewo.nlu.LlmGenerateResponse} msg The message object to deserialize into.
1702
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1703
+ * @return {!proto.ondewo.nlu.LlmGenerateResponse}
1704
+ */
1705
+ proto.ondewo.nlu.LlmGenerateResponse.deserializeBinaryFromReader = function(msg, reader) {
1706
+ while (reader.nextField()) {
1707
+ if (reader.isEndGroup()) {
1708
+ break;
1709
+ }
1710
+ var field = reader.getFieldNumber();
1711
+ switch (field) {
1712
+ case 1:
1713
+ var value = new google_protobuf_struct_pb.Struct;
1714
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
1715
+ msg.setLlmGenerationResponse(value);
1716
+ break;
1717
+ case 2:
1718
+ var value = new ondewo_nlu_session_pb.FileResource;
1719
+ reader.readMessage(value,ondewo_nlu_session_pb.FileResource.deserializeBinaryFromReader);
1720
+ msg.addFileResources(value);
1721
+ break;
1722
+ default:
1723
+ reader.skipField();
1724
+ break;
1725
+ }
1726
+ }
1727
+ return msg;
1728
+ };
1729
+
1730
+
1731
+ /**
1732
+ * Serializes the message to binary data (in protobuf wire format).
1733
+ * @return {!Uint8Array}
1734
+ */
1735
+ proto.ondewo.nlu.LlmGenerateResponse.prototype.serializeBinary = function() {
1736
+ var writer = new jspb.BinaryWriter();
1737
+ proto.ondewo.nlu.LlmGenerateResponse.serializeBinaryToWriter(this, writer);
1738
+ return writer.getResultBuffer();
1739
+ };
1740
+
1741
+
1742
+ /**
1743
+ * Serializes the given message to binary data (in protobuf wire
1744
+ * format), writing to the given BinaryWriter.
1745
+ * @param {!proto.ondewo.nlu.LlmGenerateResponse} message
1746
+ * @param {!jspb.BinaryWriter} writer
1747
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1748
+ */
1749
+ proto.ondewo.nlu.LlmGenerateResponse.serializeBinaryToWriter = function(message, writer) {
1750
+ var f = undefined;
1751
+ f = message.getLlmGenerationResponse();
1752
+ if (f != null) {
1753
+ writer.writeMessage(
1754
+ 1,
1755
+ f,
1756
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
1757
+ );
1758
+ }
1759
+ f = message.getFileResourcesList();
1760
+ if (f.length > 0) {
1761
+ writer.writeRepeatedMessage(
1762
+ 2,
1763
+ f,
1764
+ ondewo_nlu_session_pb.FileResource.serializeBinaryToWriter
1765
+ );
1766
+ }
1767
+ };
1768
+
1769
+
1770
+ /**
1771
+ * optional google.protobuf.Struct llm_generation_response = 1;
1772
+ * @return {?proto.google.protobuf.Struct}
1773
+ */
1774
+ proto.ondewo.nlu.LlmGenerateResponse.prototype.getLlmGenerationResponse = function() {
1775
+ return /** @type{?proto.google.protobuf.Struct} */ (
1776
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1));
1777
+ };
1778
+
1779
+
1780
+ /**
1781
+ * @param {?proto.google.protobuf.Struct|undefined} value
1782
+ * @return {!proto.ondewo.nlu.LlmGenerateResponse} returns this
1783
+ */
1784
+ proto.ondewo.nlu.LlmGenerateResponse.prototype.setLlmGenerationResponse = function(value) {
1785
+ return jspb.Message.setWrapperField(this, 1, value);
1786
+ };
1787
+
1788
+
1789
+ /**
1790
+ * Clears the message field making it undefined.
1791
+ * @return {!proto.ondewo.nlu.LlmGenerateResponse} returns this
1792
+ */
1793
+ proto.ondewo.nlu.LlmGenerateResponse.prototype.clearLlmGenerationResponse = function() {
1794
+ return this.setLlmGenerationResponse(undefined);
1795
+ };
1796
+
1797
+
1798
+ /**
1799
+ * Returns whether this field is set.
1800
+ * @return {boolean}
1801
+ */
1802
+ proto.ondewo.nlu.LlmGenerateResponse.prototype.hasLlmGenerationResponse = function() {
1803
+ return jspb.Message.getField(this, 1) != null;
1804
+ };
1805
+
1806
+
1807
+ /**
1808
+ * repeated FileResource file_resources = 2;
1809
+ * @return {!Array<!proto.ondewo.nlu.FileResource>}
1810
+ */
1811
+ proto.ondewo.nlu.LlmGenerateResponse.prototype.getFileResourcesList = function() {
1812
+ return /** @type{!Array<!proto.ondewo.nlu.FileResource>} */ (
1813
+ jspb.Message.getRepeatedWrapperField(this, ondewo_nlu_session_pb.FileResource, 2));
1814
+ };
1815
+
1816
+
1817
+ /**
1818
+ * @param {!Array<!proto.ondewo.nlu.FileResource>} value
1819
+ * @return {!proto.ondewo.nlu.LlmGenerateResponse} returns this
1820
+ */
1821
+ proto.ondewo.nlu.LlmGenerateResponse.prototype.setFileResourcesList = function(value) {
1822
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
1823
+ };
1824
+
1825
+
1826
+ /**
1827
+ * @param {!proto.ondewo.nlu.FileResource=} opt_value
1828
+ * @param {number=} opt_index
1829
+ * @return {!proto.ondewo.nlu.FileResource}
1830
+ */
1831
+ proto.ondewo.nlu.LlmGenerateResponse.prototype.addFileResources = function(opt_value, opt_index) {
1832
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.ondewo.nlu.FileResource, opt_index);
1833
+ };
1834
+
1835
+
1836
+ /**
1837
+ * Clears the list making it empty but non-null.
1838
+ * @return {!proto.ondewo.nlu.LlmGenerateResponse} returns this
1839
+ */
1840
+ proto.ondewo.nlu.LlmGenerateResponse.prototype.clearFileResourcesList = function() {
1841
+ return this.setFileResourcesList([]);
1842
+ };
1843
+
1844
+
1845
+
1846
+
1847
+
1848
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1849
+ /**
1850
+ * Creates an object representation of this proto.
1851
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1852
+ * Optional fields that are not set will be set to undefined.
1853
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1854
+ * For the list of reserved names please see:
1855
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1856
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1857
+ * JSPB instance for transitional soy proto support:
1858
+ * http://goto/soy-param-migration
1859
+ * @return {!Object}
1860
+ */
1861
+ proto.ondewo.nlu.StreamingLlmGenerateResponse.prototype.toObject = function(opt_includeInstance) {
1862
+ return proto.ondewo.nlu.StreamingLlmGenerateResponse.toObject(opt_includeInstance, this);
1863
+ };
1864
+
1865
+
1866
+ /**
1867
+ * Static version of the {@see toObject} method.
1868
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1869
+ * the JSPB instance for transitional soy proto support:
1870
+ * http://goto/soy-param-migration
1871
+ * @param {!proto.ondewo.nlu.StreamingLlmGenerateResponse} msg The msg instance to transform.
1872
+ * @return {!Object}
1873
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1874
+ */
1875
+ proto.ondewo.nlu.StreamingLlmGenerateResponse.toObject = function(includeInstance, msg) {
1876
+ var f, obj = {
1877
+ llmGenerationStreamResponse: (f = msg.getLlmGenerationStreamResponse()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
1878
+ };
1879
+
1880
+ if (includeInstance) {
1881
+ obj.$jspbMessageInstance = msg;
1882
+ }
1883
+ return obj;
1884
+ };
1885
+ }
1886
+
1887
+
1888
+ /**
1889
+ * Deserializes binary data (in protobuf wire format).
1890
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1891
+ * @return {!proto.ondewo.nlu.StreamingLlmGenerateResponse}
1892
+ */
1893
+ proto.ondewo.nlu.StreamingLlmGenerateResponse.deserializeBinary = function(bytes) {
1894
+ var reader = new jspb.BinaryReader(bytes);
1895
+ var msg = new proto.ondewo.nlu.StreamingLlmGenerateResponse;
1896
+ return proto.ondewo.nlu.StreamingLlmGenerateResponse.deserializeBinaryFromReader(msg, reader);
1897
+ };
1898
+
1899
+
1900
+ /**
1901
+ * Deserializes binary data (in protobuf wire format) from the
1902
+ * given reader into the given message object.
1903
+ * @param {!proto.ondewo.nlu.StreamingLlmGenerateResponse} msg The message object to deserialize into.
1904
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1905
+ * @return {!proto.ondewo.nlu.StreamingLlmGenerateResponse}
1906
+ */
1907
+ proto.ondewo.nlu.StreamingLlmGenerateResponse.deserializeBinaryFromReader = function(msg, reader) {
1908
+ while (reader.nextField()) {
1909
+ if (reader.isEndGroup()) {
1910
+ break;
1911
+ }
1912
+ var field = reader.getFieldNumber();
1913
+ switch (field) {
1914
+ case 1:
1915
+ var value = new google_protobuf_struct_pb.Struct;
1916
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
1917
+ msg.setLlmGenerationStreamResponse(value);
1918
+ break;
1919
+ default:
1920
+ reader.skipField();
1921
+ break;
1922
+ }
1923
+ }
1924
+ return msg;
1925
+ };
1926
+
1927
+
1928
+ /**
1929
+ * Serializes the message to binary data (in protobuf wire format).
1930
+ * @return {!Uint8Array}
1931
+ */
1932
+ proto.ondewo.nlu.StreamingLlmGenerateResponse.prototype.serializeBinary = function() {
1933
+ var writer = new jspb.BinaryWriter();
1934
+ proto.ondewo.nlu.StreamingLlmGenerateResponse.serializeBinaryToWriter(this, writer);
1935
+ return writer.getResultBuffer();
1936
+ };
1937
+
1938
+
1939
+ /**
1940
+ * Serializes the given message to binary data (in protobuf wire
1941
+ * format), writing to the given BinaryWriter.
1942
+ * @param {!proto.ondewo.nlu.StreamingLlmGenerateResponse} message
1943
+ * @param {!jspb.BinaryWriter} writer
1944
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1945
+ */
1946
+ proto.ondewo.nlu.StreamingLlmGenerateResponse.serializeBinaryToWriter = function(message, writer) {
1947
+ var f = undefined;
1948
+ f = message.getLlmGenerationStreamResponse();
1949
+ if (f != null) {
1950
+ writer.writeMessage(
1951
+ 1,
1952
+ f,
1953
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
1954
+ );
1955
+ }
1956
+ };
1957
+
1958
+
1959
+ /**
1960
+ * optional google.protobuf.Struct llm_generation_stream_response = 1;
1961
+ * @return {?proto.google.protobuf.Struct}
1962
+ */
1963
+ proto.ondewo.nlu.StreamingLlmGenerateResponse.prototype.getLlmGenerationStreamResponse = function() {
1964
+ return /** @type{?proto.google.protobuf.Struct} */ (
1965
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 1));
1966
+ };
1967
+
1968
+
1969
+ /**
1970
+ * @param {?proto.google.protobuf.Struct|undefined} value
1971
+ * @return {!proto.ondewo.nlu.StreamingLlmGenerateResponse} returns this
1972
+ */
1973
+ proto.ondewo.nlu.StreamingLlmGenerateResponse.prototype.setLlmGenerationStreamResponse = function(value) {
1974
+ return jspb.Message.setWrapperField(this, 1, value);
1975
+ };
1976
+
1977
+
1978
+ /**
1979
+ * Clears the message field making it undefined.
1980
+ * @return {!proto.ondewo.nlu.StreamingLlmGenerateResponse} returns this
1981
+ */
1982
+ proto.ondewo.nlu.StreamingLlmGenerateResponse.prototype.clearLlmGenerationStreamResponse = function() {
1983
+ return this.setLlmGenerationStreamResponse(undefined);
657
1984
  };
658
- goog.inherits(proto.ondewo.nlu.IntentClassified, jspb.Message);
659
- if (goog.DEBUG && !COMPILED) {
660
- /**
661
- * @public
662
- * @override
663
- */
664
- proto.ondewo.nlu.IntentClassified.displayName = 'proto.ondewo.nlu.IntentClassified';
665
- }
1985
+
1986
+
666
1987
  /**
667
- * Generated by JsPbCodeGenerator.
668
- * @param {Array=} opt_data Optional initial data array, typically from a
669
- * server response, or constructed directly in Javascript. The array is used
670
- * in place and becomes part of the constructed object. It is not cloned.
671
- * If no data is provided, the constructed object will be empty, but still
672
- * valid.
673
- * @extends {jspb.Message}
674
- * @constructor
1988
+ * Returns whether this field is set.
1989
+ * @return {boolean}
675
1990
  */
676
- proto.ondewo.nlu.ClassifyIntentsResponse = function(opt_data) {
677
- jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.ClassifyIntentsResponse.repeatedFields_, null);
1991
+ proto.ondewo.nlu.StreamingLlmGenerateResponse.prototype.hasLlmGenerationStreamResponse = function() {
1992
+ return jspb.Message.getField(this, 1) != null;
678
1993
  };
679
- goog.inherits(proto.ondewo.nlu.ClassifyIntentsResponse, jspb.Message);
680
- if (goog.DEBUG && !COMPILED) {
681
- /**
682
- * @public
683
- * @override
684
- */
685
- proto.ondewo.nlu.ClassifyIntentsResponse.displayName = 'proto.ondewo.nlu.ClassifyIntentsResponse';
686
- }
1994
+
1995
+
687
1996
 
688
1997
 
689
1998
 
@@ -716,10 +2025,10 @@ proto.ondewo.nlu.ExtractEntitiesRequest.prototype.toObject = function(opt_includ
716
2025
  */
717
2026
  proto.ondewo.nlu.ExtractEntitiesRequest.toObject = function(includeInstance, msg) {
718
2027
  var f, obj = {
719
- parent: jspb.Message.getFieldWithDefault(msg, 1, ""),
720
- text: jspb.Message.getFieldWithDefault(msg, 2, ""),
721
- languageCode: jspb.Message.getFieldWithDefault(msg, 3, ""),
722
- intentName: jspb.Message.getFieldWithDefault(msg, 4, "")
2028
+ parent: jspb.Message.getFieldWithDefault(msg, 1, ""),
2029
+ text: jspb.Message.getFieldWithDefault(msg, 2, ""),
2030
+ languageCode: jspb.Message.getFieldWithDefault(msg, 3, ""),
2031
+ intentName: jspb.Message.getFieldWithDefault(msg, 4, "")
723
2032
  };
724
2033
 
725
2034
  if (includeInstance) {
@@ -943,12 +2252,12 @@ proto.ondewo.nlu.ExtractEntitiesFuzzyRequest.prototype.toObject = function(opt_i
943
2252
  */
944
2253
  proto.ondewo.nlu.ExtractEntitiesFuzzyRequest.toObject = function(includeInstance, msg) {
945
2254
  var f, obj = {
946
- parent: jspb.Message.getFieldWithDefault(msg, 1, ""),
947
- text: jspb.Message.getFieldWithDefault(msg, 2, ""),
948
- potentialEntitiesList: jspb.Message.toObjectList(msg.getPotentialEntitiesList(),
2255
+ parent: jspb.Message.getFieldWithDefault(msg, 1, ""),
2256
+ text: jspb.Message.getFieldWithDefault(msg, 2, ""),
2257
+ potentialEntitiesList: jspb.Message.toObjectList(msg.getPotentialEntitiesList(),
949
2258
  proto.ondewo.nlu.EntityTypeFuzzyNerConfig.toObject, includeInstance),
950
- minimalScore: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
951
- allowOverlaps: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
2259
+ minimalScore: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
2260
+ allowOverlaps: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
952
2261
  };
953
2262
 
954
2263
  if (includeInstance) {
@@ -1223,11 +2532,11 @@ proto.ondewo.nlu.EntityTypeFuzzyNerConfig.prototype.toObject = function(opt_incl
1223
2532
  */
1224
2533
  proto.ondewo.nlu.EntityTypeFuzzyNerConfig.toObject = function(includeInstance, msg) {
1225
2534
  var f, obj = {
1226
- entityType: (f = msg.getEntityType()) && ondewo_nlu_entity_type_pb.EntityType.toObject(includeInstance, f),
1227
- minimalScore: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
1228
- entityValuesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
1229
- algorithm: jspb.Message.getFieldWithDefault(msg, 4, 0),
1230
- allowOverlaps: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
2535
+ entityType: (f = msg.getEntityType()) && ondewo_nlu_entity_type_pb.EntityType.toObject(includeInstance, f),
2536
+ minimalScore: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
2537
+ entityValuesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
2538
+ algorithm: jspb.Message.getFieldWithDefault(msg, 4, 0),
2539
+ allowOverlaps: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
1231
2540
  };
1232
2541
 
1233
2542
  if (includeInstance) {
@@ -1521,9 +2830,9 @@ proto.ondewo.nlu.EntityDetected.prototype.toObject = function(opt_includeInstanc
1521
2830
  */
1522
2831
  proto.ondewo.nlu.EntityDetected.toObject = function(includeInstance, msg) {
1523
2832
  var f, obj = {
1524
- entity: (f = msg.getEntity()) && ondewo_nlu_intent_pb.Intent.TrainingPhrase.Entity.toObject(includeInstance, f),
1525
- extractionMethod: jspb.Message.getFieldWithDefault(msg, 2, ""),
1526
- score: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0)
2833
+ entity: (f = msg.getEntity()) && ondewo_nlu_intent_pb.Intent.TrainingPhrase.Entity.toObject(includeInstance, f),
2834
+ extractionMethod: jspb.Message.getFieldWithDefault(msg, 2, ""),
2835
+ score: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0)
1527
2836
  };
1528
2837
 
1529
2838
  if (includeInstance) {
@@ -1739,9 +3048,9 @@ proto.ondewo.nlu.ExtractEntitiesResponse.prototype.toObject = function(opt_inclu
1739
3048
  */
1740
3049
  proto.ondewo.nlu.ExtractEntitiesResponse.toObject = function(includeInstance, msg) {
1741
3050
  var f, obj = {
1742
- entitiesDetectedList: jspb.Message.toObjectList(msg.getEntitiesDetectedList(),
3051
+ entitiesDetectedList: jspb.Message.toObjectList(msg.getEntitiesDetectedList(),
1743
3052
  proto.ondewo.nlu.EntityDetected.toObject, includeInstance),
1744
- text: jspb.Message.getFieldWithDefault(msg, 2, "")
3053
+ text: jspb.Message.getFieldWithDefault(msg, 2, "")
1745
3054
  };
1746
3055
 
1747
3056
  if (includeInstance) {
@@ -1929,12 +3238,12 @@ proto.ondewo.nlu.GetAlternativeSentencesRequest.prototype.toObject = function(op
1929
3238
  */
1930
3239
  proto.ondewo.nlu.GetAlternativeSentencesRequest.toObject = function(includeInstance, msg) {
1931
3240
  var f, obj = {
1932
- config: (f = msg.getConfig()) && proto.ondewo.nlu.DataEnrichmentConfig.toObject(includeInstance, f),
1933
- sentence: jspb.Message.getFieldWithDefault(msg, 2, ""),
1934
- languageCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
1935
- parent: jspb.Message.getFieldWithDefault(msg, 5, ""),
1936
- protectedWordsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
1937
- wordsToChangeList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
3241
+ config: (f = msg.getConfig()) && proto.ondewo.nlu.DataEnrichmentConfig.toObject(includeInstance, f),
3242
+ sentence: jspb.Message.getFieldWithDefault(msg, 2, ""),
3243
+ languageCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
3244
+ parent: jspb.Message.getFieldWithDefault(msg, 5, ""),
3245
+ protectedWordsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
3246
+ wordsToChangeList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
1938
3247
  };
1939
3248
 
1940
3249
  if (includeInstance) {
@@ -2268,10 +3577,10 @@ proto.ondewo.nlu.GenerateUserSaysRequest.prototype.toObject = function(opt_inclu
2268
3577
  */
2269
3578
  proto.ondewo.nlu.GenerateUserSaysRequest.toObject = function(includeInstance, msg) {
2270
3579
  var f, obj = {
2271
- languageCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
2272
- parent: jspb.Message.getFieldWithDefault(msg, 5, ""),
2273
- nRepeatSynonym: jspb.Message.getFieldWithDefault(msg, 6, 0),
2274
- branch: jspb.Message.getFieldWithDefault(msg, 8, "")
3580
+ languageCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
3581
+ parent: jspb.Message.getFieldWithDefault(msg, 5, ""),
3582
+ nRepeatSynonym: jspb.Message.getFieldWithDefault(msg, 6, 0),
3583
+ branch: jspb.Message.getFieldWithDefault(msg, 8, "")
2275
3584
  };
2276
3585
 
2277
3586
  if (includeInstance) {
@@ -2488,11 +3797,11 @@ proto.ondewo.nlu.GenerateResponsesRequest.prototype.toObject = function(opt_incl
2488
3797
  */
2489
3798
  proto.ondewo.nlu.GenerateResponsesRequest.toObject = function(includeInstance, msg) {
2490
3799
  var f, obj = {
2491
- languageCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
2492
- parent: jspb.Message.getFieldWithDefault(msg, 5, ""),
2493
- nRepeatSynonym: jspb.Message.getFieldWithDefault(msg, 7, 0),
2494
- branch: jspb.Message.getFieldWithDefault(msg, 8, ""),
2495
- dropUnknownParameters: jspb.Message.getBooleanFieldWithDefault(msg, 9, false)
3800
+ languageCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
3801
+ parent: jspb.Message.getFieldWithDefault(msg, 5, ""),
3802
+ nRepeatSynonym: jspb.Message.getFieldWithDefault(msg, 7, 0),
3803
+ branch: jspb.Message.getFieldWithDefault(msg, 8, ""),
3804
+ dropUnknownParameters: jspb.Message.getBooleanFieldWithDefault(msg, 9, false)
2496
3805
  };
2497
3806
 
2498
3807
  if (includeInstance) {
@@ -2745,16 +4054,16 @@ proto.ondewo.nlu.GetAlternativeTrainingPhrasesRequest.prototype.toObject = funct
2745
4054
  */
2746
4055
  proto.ondewo.nlu.GetAlternativeTrainingPhrasesRequest.toObject = function(includeInstance, msg) {
2747
4056
  var f, obj = {
2748
- config: (f = msg.getConfig()) && proto.ondewo.nlu.DataEnrichmentConfig.toObject(includeInstance, f),
2749
- trainingPhrase: (f = msg.getTrainingPhrase()) && ondewo_nlu_intent_pb.Intent.TrainingPhrase.toObject(includeInstance, f),
2750
- intentName: jspb.Message.getFieldWithDefault(msg, 3, ""),
2751
- languageCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
2752
- parent: jspb.Message.getFieldWithDefault(msg, 5, ""),
2753
- detectEntities: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
2754
- similarityThreshold: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
2755
- protectedWordsList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f,
2756
- wordsToChangeList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f,
2757
- branch: jspb.Message.getFieldWithDefault(msg, 10, "")
4057
+ config: (f = msg.getConfig()) && proto.ondewo.nlu.DataEnrichmentConfig.toObject(includeInstance, f),
4058
+ trainingPhrase: (f = msg.getTrainingPhrase()) && ondewo_nlu_intent_pb.Intent.TrainingPhrase.toObject(includeInstance, f),
4059
+ intentName: jspb.Message.getFieldWithDefault(msg, 3, ""),
4060
+ languageCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
4061
+ parent: jspb.Message.getFieldWithDefault(msg, 5, ""),
4062
+ detectEntities: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
4063
+ similarityThreshold: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
4064
+ protectedWordsList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f,
4065
+ wordsToChangeList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f,
4066
+ branch: jspb.Message.getFieldWithDefault(msg, 10, "")
2758
4067
  };
2759
4068
 
2760
4069
  if (includeInstance) {
@@ -3225,10 +4534,10 @@ proto.ondewo.nlu.GetSynonymsRequest.prototype.toObject = function(opt_includeIns
3225
4534
  */
3226
4535
  proto.ondewo.nlu.GetSynonymsRequest.toObject = function(includeInstance, msg) {
3227
4536
  var f, obj = {
3228
- config: (f = msg.getConfig()) && proto.ondewo.nlu.DataEnrichmentConfig.toObject(includeInstance, f),
3229
- word: jspb.Message.getFieldWithDefault(msg, 2, ""),
3230
- languageCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
3231
- parent: jspb.Message.getFieldWithDefault(msg, 5, "")
4537
+ config: (f = msg.getConfig()) && proto.ondewo.nlu.DataEnrichmentConfig.toObject(includeInstance, f),
4538
+ word: jspb.Message.getFieldWithDefault(msg, 2, ""),
4539
+ languageCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
4540
+ parent: jspb.Message.getFieldWithDefault(msg, 5, "")
3232
4541
  };
3233
4542
 
3234
4543
  if (includeInstance) {
@@ -3473,7 +4782,7 @@ proto.ondewo.nlu.GetSynonymsResponse.prototype.toObject = function(opt_includeIn
3473
4782
  */
3474
4783
  proto.ondewo.nlu.GetSynonymsResponse.toObject = function(includeInstance, msg) {
3475
4784
  var f, obj = {
3476
- synonymsList: jspb.Message.toObjectList(msg.getSynonymsList(),
4785
+ synonymsList: jspb.Message.toObjectList(msg.getSynonymsList(),
3477
4786
  proto.ondewo.nlu.Synonym.toObject, includeInstance)
3478
4787
  };
3479
4788
 
@@ -3626,8 +4935,8 @@ proto.ondewo.nlu.Synonym.prototype.toObject = function(opt_includeInstance) {
3626
4935
  */
3627
4936
  proto.ondewo.nlu.Synonym.toObject = function(includeInstance, msg) {
3628
4937
  var f, obj = {
3629
- synonym: jspb.Message.getFieldWithDefault(msg, 1, ""),
3630
- score: jspb.Message.getFieldWithDefault(msg, 2, 0)
4938
+ synonym: jspb.Message.getFieldWithDefault(msg, 1, ""),
4939
+ score: jspb.Message.getFieldWithDefault(msg, 2, 0)
3631
4940
  };
3632
4941
 
3633
4942
  if (includeInstance) {
@@ -3793,7 +5102,7 @@ proto.ondewo.nlu.GetAlternativeSentencesResponse.prototype.toObject = function(o
3793
5102
  */
3794
5103
  proto.ondewo.nlu.GetAlternativeSentencesResponse.toObject = function(includeInstance, msg) {
3795
5104
  var f, obj = {
3796
- alternativeSentencesList: jspb.Message.toObjectList(msg.getAlternativeSentencesList(),
5105
+ alternativeSentencesList: jspb.Message.toObjectList(msg.getAlternativeSentencesList(),
3797
5106
  proto.ondewo.nlu.AltSentence.toObject, includeInstance)
3798
5107
  };
3799
5108
 
@@ -3953,7 +5262,7 @@ proto.ondewo.nlu.GenerateResponsesResponse.prototype.toObject = function(opt_inc
3953
5262
  */
3954
5263
  proto.ondewo.nlu.GenerateResponsesResponse.toObject = function(includeInstance, msg) {
3955
5264
  var f, obj = {
3956
- responsesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
5265
+ responsesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
3957
5266
  };
3958
5267
 
3959
5268
  if (includeInstance) {
@@ -4109,7 +5418,7 @@ proto.ondewo.nlu.GenerateUserSaysResponse.prototype.toObject = function(opt_incl
4109
5418
  */
4110
5419
  proto.ondewo.nlu.GenerateUserSaysResponse.toObject = function(includeInstance, msg) {
4111
5420
  var f, obj = {
4112
- userSaysList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
5421
+ userSaysList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
4113
5422
  };
4114
5423
 
4115
5424
  if (includeInstance) {
@@ -4265,7 +5574,7 @@ proto.ondewo.nlu.GetAlternativeTrainingPhrasesResponse.prototype.toObject = func
4265
5574
  */
4266
5575
  proto.ondewo.nlu.GetAlternativeTrainingPhrasesResponse.toObject = function(includeInstance, msg) {
4267
5576
  var f, obj = {
4268
- alternativeTrainingPhrasesList: jspb.Message.toObjectList(msg.getAlternativeTrainingPhrasesList(),
5577
+ alternativeTrainingPhrasesList: jspb.Message.toObjectList(msg.getAlternativeTrainingPhrasesList(),
4269
5578
  proto.ondewo.nlu.AltTrainingPhrase.toObject, includeInstance)
4270
5579
  };
4271
5580
 
@@ -4418,8 +5727,8 @@ proto.ondewo.nlu.AltSentence.prototype.toObject = function(opt_includeInstance)
4418
5727
  */
4419
5728
  proto.ondewo.nlu.AltSentence.toObject = function(includeInstance, msg) {
4420
5729
  var f, obj = {
4421
- sentence: jspb.Message.getFieldWithDefault(msg, 1, ""),
4422
- score: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
5730
+ sentence: jspb.Message.getFieldWithDefault(msg, 1, ""),
5731
+ score: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
4423
5732
  };
4424
5733
 
4425
5734
  if (includeInstance) {
@@ -4578,8 +5887,8 @@ proto.ondewo.nlu.AltTrainingPhrase.prototype.toObject = function(opt_includeInst
4578
5887
  */
4579
5888
  proto.ondewo.nlu.AltTrainingPhrase.toObject = function(includeInstance, msg) {
4580
5889
  var f, obj = {
4581
- trainingPhrase: (f = msg.getTrainingPhrase()) && ondewo_nlu_intent_pb.Intent.TrainingPhrase.toObject(includeInstance, f),
4582
- score: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
5890
+ trainingPhrase: (f = msg.getTrainingPhrase()) && ondewo_nlu_intent_pb.Intent.TrainingPhrase.toObject(includeInstance, f),
5891
+ score: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
4583
5892
  };
4584
5893
 
4585
5894
  if (includeInstance) {
@@ -4759,14 +6068,15 @@ proto.ondewo.nlu.DataEnrichmentConfig.prototype.toObject = function(opt_includeI
4759
6068
  */
4760
6069
  proto.ondewo.nlu.DataEnrichmentConfig.toObject = function(includeInstance, msg) {
4761
6070
  var f, obj = {
4762
- entityEnrichment: (f = msg.getEntityEnrichment()) && proto.ondewo.nlu.EntityEnrichmentConfig.toObject(includeInstance, f),
4763
- thesaurusEnrichment: (f = msg.getThesaurusEnrichment()) && proto.ondewo.nlu.ThesaurusEnrichmentConfig.toObject(includeInstance, f),
4764
- word2vecEnrichment: (f = msg.getWord2vecEnrichment()) && proto.ondewo.nlu.Word2VecEnrichmentConfig.toObject(includeInstance, f),
4765
- wordNetEnrichment: (f = msg.getWordNetEnrichment()) && proto.ondewo.nlu.WordNetAugEnrichmentConfig.toObject(includeInstance, f),
4766
- gpt2Enrichment: (f = msg.getGpt2Enrichment()) && proto.ondewo.nlu.GPT2EnrichmentConfig.toObject(includeInstance, f),
4767
- gloveEnrichment: (f = msg.getGloveEnrichment()) && proto.ondewo.nlu.GloVeEnrichmentConfig.toObject(includeInstance, f),
4768
- bertEnrichment: (f = msg.getBertEnrichment()) && proto.ondewo.nlu.BertAugEnrichmentConfig.toObject(includeInstance, f),
4769
- xlnetEnrichment: (f = msg.getXlnetEnrichment()) && proto.ondewo.nlu.XLNetAugEnrichmentConfig.toObject(includeInstance, f)
6071
+ entityEnrichment: (f = msg.getEntityEnrichment()) && proto.ondewo.nlu.EntityEnrichmentConfig.toObject(includeInstance, f),
6072
+ thesaurusEnrichment: (f = msg.getThesaurusEnrichment()) && proto.ondewo.nlu.ThesaurusEnrichmentConfig.toObject(includeInstance, f),
6073
+ word2vecEnrichment: (f = msg.getWord2vecEnrichment()) && proto.ondewo.nlu.Word2VecEnrichmentConfig.toObject(includeInstance, f),
6074
+ wordNetEnrichment: (f = msg.getWordNetEnrichment()) && proto.ondewo.nlu.WordNetAugEnrichmentConfig.toObject(includeInstance, f),
6075
+ gpt2Enrichment: (f = msg.getGpt2Enrichment()) && proto.ondewo.nlu.GPT2EnrichmentConfig.toObject(includeInstance, f),
6076
+ gloveEnrichment: (f = msg.getGloveEnrichment()) && proto.ondewo.nlu.GloVeEnrichmentConfig.toObject(includeInstance, f),
6077
+ bertEnrichment: (f = msg.getBertEnrichment()) && proto.ondewo.nlu.BertAugEnrichmentConfig.toObject(includeInstance, f),
6078
+ xlnetEnrichment: (f = msg.getXlnetEnrichment()) && proto.ondewo.nlu.XLNetAugEnrichmentConfig.toObject(includeInstance, f),
6079
+ llmEnrichment: (f = msg.getLlmEnrichment()) && proto.ondewo.nlu.LlmEnrichmentConfig.toObject(includeInstance, f)
4770
6080
  };
4771
6081
 
4772
6082
  if (includeInstance) {
@@ -4843,6 +6153,11 @@ proto.ondewo.nlu.DataEnrichmentConfig.deserializeBinaryFromReader = function(msg
4843
6153
  reader.readMessage(value,proto.ondewo.nlu.XLNetAugEnrichmentConfig.deserializeBinaryFromReader);
4844
6154
  msg.setXlnetEnrichment(value);
4845
6155
  break;
6156
+ case 10:
6157
+ var value = new proto.ondewo.nlu.LlmEnrichmentConfig;
6158
+ reader.readMessage(value,proto.ondewo.nlu.LlmEnrichmentConfig.deserializeBinaryFromReader);
6159
+ msg.setLlmEnrichment(value);
6160
+ break;
4846
6161
  default:
4847
6162
  reader.skipField();
4848
6163
  break;
@@ -4936,6 +6251,14 @@ proto.ondewo.nlu.DataEnrichmentConfig.serializeBinaryToWriter = function(message
4936
6251
  proto.ondewo.nlu.XLNetAugEnrichmentConfig.serializeBinaryToWriter
4937
6252
  );
4938
6253
  }
6254
+ f = message.getLlmEnrichment();
6255
+ if (f != null) {
6256
+ writer.writeMessage(
6257
+ 10,
6258
+ f,
6259
+ proto.ondewo.nlu.LlmEnrichmentConfig.serializeBinaryToWriter
6260
+ );
6261
+ }
4939
6262
  };
4940
6263
 
4941
6264
 
@@ -5235,6 +6558,43 @@ proto.ondewo.nlu.DataEnrichmentConfig.prototype.hasXlnetEnrichment = function()
5235
6558
  };
5236
6559
 
5237
6560
 
6561
+ /**
6562
+ * optional LlmEnrichmentConfig llm_enrichment = 10;
6563
+ * @return {?proto.ondewo.nlu.LlmEnrichmentConfig}
6564
+ */
6565
+ proto.ondewo.nlu.DataEnrichmentConfig.prototype.getLlmEnrichment = function() {
6566
+ return /** @type{?proto.ondewo.nlu.LlmEnrichmentConfig} */ (
6567
+ jspb.Message.getWrapperField(this, proto.ondewo.nlu.LlmEnrichmentConfig, 10));
6568
+ };
6569
+
6570
+
6571
+ /**
6572
+ * @param {?proto.ondewo.nlu.LlmEnrichmentConfig|undefined} value
6573
+ * @return {!proto.ondewo.nlu.DataEnrichmentConfig} returns this
6574
+ */
6575
+ proto.ondewo.nlu.DataEnrichmentConfig.prototype.setLlmEnrichment = function(value) {
6576
+ return jspb.Message.setWrapperField(this, 10, value);
6577
+ };
6578
+
6579
+
6580
+ /**
6581
+ * Clears the message field making it undefined.
6582
+ * @return {!proto.ondewo.nlu.DataEnrichmentConfig} returns this
6583
+ */
6584
+ proto.ondewo.nlu.DataEnrichmentConfig.prototype.clearLlmEnrichment = function() {
6585
+ return this.setLlmEnrichment(undefined);
6586
+ };
6587
+
6588
+
6589
+ /**
6590
+ * Returns whether this field is set.
6591
+ * @return {boolean}
6592
+ */
6593
+ proto.ondewo.nlu.DataEnrichmentConfig.prototype.hasLlmEnrichment = function() {
6594
+ return jspb.Message.getField(this, 10) != null;
6595
+ };
6596
+
6597
+
5238
6598
 
5239
6599
 
5240
6600
 
@@ -5267,9 +6627,9 @@ proto.ondewo.nlu.EntityEnrichmentConfig.prototype.toObject = function(opt_includ
5267
6627
  */
5268
6628
  proto.ondewo.nlu.EntityEnrichmentConfig.toObject = function(includeInstance, msg) {
5269
6629
  var f, obj = {
5270
- isActive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
5271
- enrichmentFactor: jspb.Message.getFieldWithDefault(msg, 2, 0),
5272
- executionOrder: jspb.Message.getFieldWithDefault(msg, 3, 0)
6630
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
6631
+ enrichmentFactor: jspb.Message.getFieldWithDefault(msg, 2, 0),
6632
+ executionOrder: jspb.Message.getFieldWithDefault(msg, 3, 0)
5273
6633
  };
5274
6634
 
5275
6635
  if (includeInstance) {
@@ -5457,9 +6817,9 @@ proto.ondewo.nlu.ThesaurusEnrichmentConfig.prototype.toObject = function(opt_inc
5457
6817
  */
5458
6818
  proto.ondewo.nlu.ThesaurusEnrichmentConfig.toObject = function(includeInstance, msg) {
5459
6819
  var f, obj = {
5460
- isActive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
5461
- enrichmentFactor: jspb.Message.getFieldWithDefault(msg, 2, 0),
5462
- executionOrder: jspb.Message.getFieldWithDefault(msg, 3, 0)
6820
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
6821
+ enrichmentFactor: jspb.Message.getFieldWithDefault(msg, 2, 0),
6822
+ executionOrder: jspb.Message.getFieldWithDefault(msg, 3, 0)
5463
6823
  };
5464
6824
 
5465
6825
  if (includeInstance) {
@@ -5647,9 +7007,9 @@ proto.ondewo.nlu.BertAugEnrichmentConfig.prototype.toObject = function(opt_inclu
5647
7007
  */
5648
7008
  proto.ondewo.nlu.BertAugEnrichmentConfig.toObject = function(includeInstance, msg) {
5649
7009
  var f, obj = {
5650
- isActive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
5651
- enrichmentFactor: jspb.Message.getFieldWithDefault(msg, 2, 0),
5652
- executionOrder: jspb.Message.getFieldWithDefault(msg, 3, 0)
7010
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
7011
+ enrichmentFactor: jspb.Message.getFieldWithDefault(msg, 2, 0),
7012
+ executionOrder: jspb.Message.getFieldWithDefault(msg, 3, 0)
5653
7013
  };
5654
7014
 
5655
7015
  if (includeInstance) {
@@ -5837,9 +7197,9 @@ proto.ondewo.nlu.GloVeEnrichmentConfig.prototype.toObject = function(opt_include
5837
7197
  */
5838
7198
  proto.ondewo.nlu.GloVeEnrichmentConfig.toObject = function(includeInstance, msg) {
5839
7199
  var f, obj = {
5840
- isActive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
5841
- enrichmentFactor: jspb.Message.getFieldWithDefault(msg, 2, 0),
5842
- executionOrder: jspb.Message.getFieldWithDefault(msg, 3, 0)
7200
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
7201
+ enrichmentFactor: jspb.Message.getFieldWithDefault(msg, 2, 0),
7202
+ executionOrder: jspb.Message.getFieldWithDefault(msg, 3, 0)
5843
7203
  };
5844
7204
 
5845
7205
  if (includeInstance) {
@@ -6027,9 +7387,9 @@ proto.ondewo.nlu.GPT2EnrichmentConfig.prototype.toObject = function(opt_includeI
6027
7387
  */
6028
7388
  proto.ondewo.nlu.GPT2EnrichmentConfig.toObject = function(includeInstance, msg) {
6029
7389
  var f, obj = {
6030
- isActive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
6031
- enrichmentFactor: jspb.Message.getFieldWithDefault(msg, 2, 0),
6032
- executionOrder: jspb.Message.getFieldWithDefault(msg, 3, 0)
7390
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
7391
+ enrichmentFactor: jspb.Message.getFieldWithDefault(msg, 2, 0),
7392
+ executionOrder: jspb.Message.getFieldWithDefault(msg, 3, 0)
6033
7393
  };
6034
7394
 
6035
7395
  if (includeInstance) {
@@ -6217,9 +7577,9 @@ proto.ondewo.nlu.Word2VecEnrichmentConfig.prototype.toObject = function(opt_incl
6217
7577
  */
6218
7578
  proto.ondewo.nlu.Word2VecEnrichmentConfig.toObject = function(includeInstance, msg) {
6219
7579
  var f, obj = {
6220
- isActive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
6221
- enrichmentFactor: jspb.Message.getFieldWithDefault(msg, 2, 0),
6222
- executionOrder: jspb.Message.getFieldWithDefault(msg, 3, 0)
7580
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
7581
+ enrichmentFactor: jspb.Message.getFieldWithDefault(msg, 2, 0),
7582
+ executionOrder: jspb.Message.getFieldWithDefault(msg, 3, 0)
6223
7583
  };
6224
7584
 
6225
7585
  if (includeInstance) {
@@ -6407,9 +7767,9 @@ proto.ondewo.nlu.WordNetAugEnrichmentConfig.prototype.toObject = function(opt_in
6407
7767
  */
6408
7768
  proto.ondewo.nlu.WordNetAugEnrichmentConfig.toObject = function(includeInstance, msg) {
6409
7769
  var f, obj = {
6410
- isActive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
6411
- enrichmentFactor: jspb.Message.getFieldWithDefault(msg, 2, 0),
6412
- executionOrder: jspb.Message.getFieldWithDefault(msg, 3, 0)
7770
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
7771
+ enrichmentFactor: jspb.Message.getFieldWithDefault(msg, 2, 0),
7772
+ executionOrder: jspb.Message.getFieldWithDefault(msg, 3, 0)
6413
7773
  };
6414
7774
 
6415
7775
  if (includeInstance) {
@@ -6597,9 +7957,9 @@ proto.ondewo.nlu.XLNetAugEnrichmentConfig.prototype.toObject = function(opt_incl
6597
7957
  */
6598
7958
  proto.ondewo.nlu.XLNetAugEnrichmentConfig.toObject = function(includeInstance, msg) {
6599
7959
  var f, obj = {
6600
- isActive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
6601
- enrichmentFactor: jspb.Message.getFieldWithDefault(msg, 2, 0),
6602
- executionOrder: jspb.Message.getFieldWithDefault(msg, 3, 0)
7960
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
7961
+ enrichmentFactor: jspb.Message.getFieldWithDefault(msg, 2, 0),
7962
+ executionOrder: jspb.Message.getFieldWithDefault(msg, 3, 0)
6603
7963
  };
6604
7964
 
6605
7965
  if (includeInstance) {
@@ -6756,6 +8116,226 @@ proto.ondewo.nlu.XLNetAugEnrichmentConfig.prototype.setExecutionOrder = function
6756
8116
 
6757
8117
 
6758
8118
 
8119
+
8120
+
8121
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8122
+ /**
8123
+ * Creates an object representation of this proto.
8124
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8125
+ * Optional fields that are not set will be set to undefined.
8126
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8127
+ * For the list of reserved names please see:
8128
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8129
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8130
+ * JSPB instance for transitional soy proto support:
8131
+ * http://goto/soy-param-migration
8132
+ * @return {!Object}
8133
+ */
8134
+ proto.ondewo.nlu.LlmEnrichmentConfig.prototype.toObject = function(opt_includeInstance) {
8135
+ return proto.ondewo.nlu.LlmEnrichmentConfig.toObject(opt_includeInstance, this);
8136
+ };
8137
+
8138
+
8139
+ /**
8140
+ * Static version of the {@see toObject} method.
8141
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8142
+ * the JSPB instance for transitional soy proto support:
8143
+ * http://goto/soy-param-migration
8144
+ * @param {!proto.ondewo.nlu.LlmEnrichmentConfig} msg The msg instance to transform.
8145
+ * @return {!Object}
8146
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8147
+ */
8148
+ proto.ondewo.nlu.LlmEnrichmentConfig.toObject = function(includeInstance, msg) {
8149
+ var f, obj = {
8150
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
8151
+ enrichmentFactor: jspb.Message.getFieldWithDefault(msg, 2, 0),
8152
+ executionOrder: jspb.Message.getFieldWithDefault(msg, 3, 0),
8153
+ ccaiServiceName: jspb.Message.getFieldWithDefault(msg, 4, "")
8154
+ };
8155
+
8156
+ if (includeInstance) {
8157
+ obj.$jspbMessageInstance = msg;
8158
+ }
8159
+ return obj;
8160
+ };
8161
+ }
8162
+
8163
+
8164
+ /**
8165
+ * Deserializes binary data (in protobuf wire format).
8166
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8167
+ * @return {!proto.ondewo.nlu.LlmEnrichmentConfig}
8168
+ */
8169
+ proto.ondewo.nlu.LlmEnrichmentConfig.deserializeBinary = function(bytes) {
8170
+ var reader = new jspb.BinaryReader(bytes);
8171
+ var msg = new proto.ondewo.nlu.LlmEnrichmentConfig;
8172
+ return proto.ondewo.nlu.LlmEnrichmentConfig.deserializeBinaryFromReader(msg, reader);
8173
+ };
8174
+
8175
+
8176
+ /**
8177
+ * Deserializes binary data (in protobuf wire format) from the
8178
+ * given reader into the given message object.
8179
+ * @param {!proto.ondewo.nlu.LlmEnrichmentConfig} msg The message object to deserialize into.
8180
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8181
+ * @return {!proto.ondewo.nlu.LlmEnrichmentConfig}
8182
+ */
8183
+ proto.ondewo.nlu.LlmEnrichmentConfig.deserializeBinaryFromReader = function(msg, reader) {
8184
+ while (reader.nextField()) {
8185
+ if (reader.isEndGroup()) {
8186
+ break;
8187
+ }
8188
+ var field = reader.getFieldNumber();
8189
+ switch (field) {
8190
+ case 1:
8191
+ var value = /** @type {boolean} */ (reader.readBool());
8192
+ msg.setIsActive(value);
8193
+ break;
8194
+ case 2:
8195
+ var value = /** @type {number} */ (reader.readInt32());
8196
+ msg.setEnrichmentFactor(value);
8197
+ break;
8198
+ case 3:
8199
+ var value = /** @type {number} */ (reader.readInt32());
8200
+ msg.setExecutionOrder(value);
8201
+ break;
8202
+ case 4:
8203
+ var value = /** @type {string} */ (reader.readString());
8204
+ msg.setCcaiServiceName(value);
8205
+ break;
8206
+ default:
8207
+ reader.skipField();
8208
+ break;
8209
+ }
8210
+ }
8211
+ return msg;
8212
+ };
8213
+
8214
+
8215
+ /**
8216
+ * Serializes the message to binary data (in protobuf wire format).
8217
+ * @return {!Uint8Array}
8218
+ */
8219
+ proto.ondewo.nlu.LlmEnrichmentConfig.prototype.serializeBinary = function() {
8220
+ var writer = new jspb.BinaryWriter();
8221
+ proto.ondewo.nlu.LlmEnrichmentConfig.serializeBinaryToWriter(this, writer);
8222
+ return writer.getResultBuffer();
8223
+ };
8224
+
8225
+
8226
+ /**
8227
+ * Serializes the given message to binary data (in protobuf wire
8228
+ * format), writing to the given BinaryWriter.
8229
+ * @param {!proto.ondewo.nlu.LlmEnrichmentConfig} message
8230
+ * @param {!jspb.BinaryWriter} writer
8231
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8232
+ */
8233
+ proto.ondewo.nlu.LlmEnrichmentConfig.serializeBinaryToWriter = function(message, writer) {
8234
+ var f = undefined;
8235
+ f = message.getIsActive();
8236
+ if (f) {
8237
+ writer.writeBool(
8238
+ 1,
8239
+ f
8240
+ );
8241
+ }
8242
+ f = message.getEnrichmentFactor();
8243
+ if (f !== 0) {
8244
+ writer.writeInt32(
8245
+ 2,
8246
+ f
8247
+ );
8248
+ }
8249
+ f = message.getExecutionOrder();
8250
+ if (f !== 0) {
8251
+ writer.writeInt32(
8252
+ 3,
8253
+ f
8254
+ );
8255
+ }
8256
+ f = message.getCcaiServiceName();
8257
+ if (f.length > 0) {
8258
+ writer.writeString(
8259
+ 4,
8260
+ f
8261
+ );
8262
+ }
8263
+ };
8264
+
8265
+
8266
+ /**
8267
+ * optional bool is_active = 1;
8268
+ * @return {boolean}
8269
+ */
8270
+ proto.ondewo.nlu.LlmEnrichmentConfig.prototype.getIsActive = function() {
8271
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
8272
+ };
8273
+
8274
+
8275
+ /**
8276
+ * @param {boolean} value
8277
+ * @return {!proto.ondewo.nlu.LlmEnrichmentConfig} returns this
8278
+ */
8279
+ proto.ondewo.nlu.LlmEnrichmentConfig.prototype.setIsActive = function(value) {
8280
+ return jspb.Message.setProto3BooleanField(this, 1, value);
8281
+ };
8282
+
8283
+
8284
+ /**
8285
+ * optional int32 enrichment_factor = 2;
8286
+ * @return {number}
8287
+ */
8288
+ proto.ondewo.nlu.LlmEnrichmentConfig.prototype.getEnrichmentFactor = function() {
8289
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
8290
+ };
8291
+
8292
+
8293
+ /**
8294
+ * @param {number} value
8295
+ * @return {!proto.ondewo.nlu.LlmEnrichmentConfig} returns this
8296
+ */
8297
+ proto.ondewo.nlu.LlmEnrichmentConfig.prototype.setEnrichmentFactor = function(value) {
8298
+ return jspb.Message.setProto3IntField(this, 2, value);
8299
+ };
8300
+
8301
+
8302
+ /**
8303
+ * optional int32 execution_order = 3;
8304
+ * @return {number}
8305
+ */
8306
+ proto.ondewo.nlu.LlmEnrichmentConfig.prototype.getExecutionOrder = function() {
8307
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
8308
+ };
8309
+
8310
+
8311
+ /**
8312
+ * @param {number} value
8313
+ * @return {!proto.ondewo.nlu.LlmEnrichmentConfig} returns this
8314
+ */
8315
+ proto.ondewo.nlu.LlmEnrichmentConfig.prototype.setExecutionOrder = function(value) {
8316
+ return jspb.Message.setProto3IntField(this, 3, value);
8317
+ };
8318
+
8319
+
8320
+ /**
8321
+ * optional string ccai_service_name = 4;
8322
+ * @return {string}
8323
+ */
8324
+ proto.ondewo.nlu.LlmEnrichmentConfig.prototype.getCcaiServiceName = function() {
8325
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
8326
+ };
8327
+
8328
+
8329
+ /**
8330
+ * @param {string} value
8331
+ * @return {!proto.ondewo.nlu.LlmEnrichmentConfig} returns this
8332
+ */
8333
+ proto.ondewo.nlu.LlmEnrichmentConfig.prototype.setCcaiServiceName = function(value) {
8334
+ return jspb.Message.setProto3StringField(this, 4, value);
8335
+ };
8336
+
8337
+
8338
+
6759
8339
  /**
6760
8340
  * List of repeated fields within this message type.
6761
8341
  * @private {!Array<number>}
@@ -6794,13 +8374,13 @@ proto.ondewo.nlu.ClassifyIntentsRequest.prototype.toObject = function(opt_includ
6794
8374
  */
6795
8375
  proto.ondewo.nlu.ClassifyIntentsRequest.toObject = function(includeInstance, msg) {
6796
8376
  var f, obj = {
6797
- parent: jspb.Message.getFieldWithDefault(msg, 1, ""),
6798
- text: jspb.Message.getFieldWithDefault(msg, 2, ""),
6799
- languageCode: jspb.Message.getFieldWithDefault(msg, 3, ""),
6800
- activeContexts: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
6801
- contextNamesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
6802
- mode: jspb.Message.getFieldWithDefault(msg, 6, 0),
6803
- algorithmsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
8377
+ parent: jspb.Message.getFieldWithDefault(msg, 1, ""),
8378
+ text: jspb.Message.getFieldWithDefault(msg, 2, ""),
8379
+ languageCode: jspb.Message.getFieldWithDefault(msg, 3, ""),
8380
+ activeContexts: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
8381
+ contextNamesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
8382
+ mode: jspb.Message.getFieldWithDefault(msg, 6, 0),
8383
+ algorithmsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
6804
8384
  };
6805
8385
 
6806
8386
  if (includeInstance) {
@@ -7144,10 +8724,10 @@ proto.ondewo.nlu.IntentClassified.prototype.toObject = function(opt_includeInsta
7144
8724
  */
7145
8725
  proto.ondewo.nlu.IntentClassified.toObject = function(includeInstance, msg) {
7146
8726
  var f, obj = {
7147
- intentName: jspb.Message.getFieldWithDefault(msg, 1, ""),
7148
- intentDisplayName: jspb.Message.getFieldWithDefault(msg, 2, ""),
7149
- classifier: jspb.Message.getFieldWithDefault(msg, 3, ""),
7150
- score: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0)
8727
+ intentName: jspb.Message.getFieldWithDefault(msg, 1, ""),
8728
+ intentDisplayName: jspb.Message.getFieldWithDefault(msg, 2, ""),
8729
+ classifier: jspb.Message.getFieldWithDefault(msg, 3, ""),
8730
+ score: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0)
7151
8731
  };
7152
8732
 
7153
8733
  if (includeInstance) {
@@ -7371,11 +8951,11 @@ proto.ondewo.nlu.ClassifyIntentsResponse.prototype.toObject = function(opt_inclu
7371
8951
  */
7372
8952
  proto.ondewo.nlu.ClassifyIntentsResponse.toObject = function(includeInstance, msg) {
7373
8953
  var f, obj = {
7374
- intentsClassifiedList: jspb.Message.toObjectList(msg.getIntentsClassifiedList(),
8954
+ intentsClassifiedList: jspb.Message.toObjectList(msg.getIntentsClassifiedList(),
7375
8955
  proto.ondewo.nlu.IntentClassified.toObject, includeInstance),
7376
- text: jspb.Message.getFieldWithDefault(msg, 2, ""),
7377
- activeContexts: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
7378
- contextNamesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
8956
+ text: jspb.Message.getFieldWithDefault(msg, 2, ""),
8957
+ activeContexts: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
8958
+ contextNamesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
7379
8959
  };
7380
8960
 
7381
8961
  if (includeInstance) {