@ondewo/nlu-client-typescript 6.11.0 → 6.12.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.
@@ -130,6 +130,13 @@ goog.exportSymbol('proto.ondewo.nlu.LlmLatencyStats', null, global);
130
130
  goog.exportSymbol('proto.ondewo.nlu.LlmModelUsage', null, global);
131
131
  goog.exportSymbol('proto.ondewo.nlu.LlmProviderUsage', null, global);
132
132
  goog.exportSymbol('proto.ondewo.nlu.LlmReasoningEffortStat', null, global);
133
+ goog.exportSymbol('proto.ondewo.nlu.LlmRetrievalMetadata', null, global);
134
+ goog.exportSymbol('proto.ondewo.nlu.LlmRetrievedChunk', null, global);
135
+ goog.exportSymbol('proto.ondewo.nlu.LlmSafetyAssessment', null, global);
136
+ goog.exportSymbol('proto.ondewo.nlu.LlmSafetyCategoryStat', null, global);
137
+ goog.exportSymbol('proto.ondewo.nlu.LlmSafetyFinding', null, global);
138
+ goog.exportSymbol('proto.ondewo.nlu.LlmSafetyLocation', null, global);
139
+ goog.exportSymbol('proto.ondewo.nlu.LlmSafetyStats', null, global);
133
140
  goog.exportSymbol('proto.ondewo.nlu.LlmTelemetry', null, global);
134
141
  goog.exportSymbol('proto.ondewo.nlu.LlmTelemetryReport', null, global);
135
142
  goog.exportSymbol('proto.ondewo.nlu.LlmThinkingDeltaEvent', null, global);
@@ -355,6 +362,90 @@ if (goog.DEBUG && !COMPILED) {
355
362
  */
356
363
  proto.ondewo.nlu.LlmTelemetry.displayName = 'proto.ondewo.nlu.LlmTelemetry';
357
364
  }
365
+ /**
366
+ * Generated by JsPbCodeGenerator.
367
+ * @param {Array=} opt_data Optional initial data array, typically from a
368
+ * server response, or constructed directly in Javascript. The array is used
369
+ * in place and becomes part of the constructed object. It is not cloned.
370
+ * If no data is provided, the constructed object will be empty, but still
371
+ * valid.
372
+ * @extends {jspb.Message}
373
+ * @constructor
374
+ */
375
+ proto.ondewo.nlu.LlmSafetyFinding = function(opt_data) {
376
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
377
+ };
378
+ goog.inherits(proto.ondewo.nlu.LlmSafetyFinding, jspb.Message);
379
+ if (goog.DEBUG && !COMPILED) {
380
+ /**
381
+ * @public
382
+ * @override
383
+ */
384
+ proto.ondewo.nlu.LlmSafetyFinding.displayName = 'proto.ondewo.nlu.LlmSafetyFinding';
385
+ }
386
+ /**
387
+ * Generated by JsPbCodeGenerator.
388
+ * @param {Array=} opt_data Optional initial data array, typically from a
389
+ * server response, or constructed directly in Javascript. The array is used
390
+ * in place and becomes part of the constructed object. It is not cloned.
391
+ * If no data is provided, the constructed object will be empty, but still
392
+ * valid.
393
+ * @extends {jspb.Message}
394
+ * @constructor
395
+ */
396
+ proto.ondewo.nlu.LlmSafetyAssessment = function(opt_data) {
397
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.LlmSafetyAssessment.repeatedFields_, null);
398
+ };
399
+ goog.inherits(proto.ondewo.nlu.LlmSafetyAssessment, jspb.Message);
400
+ if (goog.DEBUG && !COMPILED) {
401
+ /**
402
+ * @public
403
+ * @override
404
+ */
405
+ proto.ondewo.nlu.LlmSafetyAssessment.displayName = 'proto.ondewo.nlu.LlmSafetyAssessment';
406
+ }
407
+ /**
408
+ * Generated by JsPbCodeGenerator.
409
+ * @param {Array=} opt_data Optional initial data array, typically from a
410
+ * server response, or constructed directly in Javascript. The array is used
411
+ * in place and becomes part of the constructed object. It is not cloned.
412
+ * If no data is provided, the constructed object will be empty, but still
413
+ * valid.
414
+ * @extends {jspb.Message}
415
+ * @constructor
416
+ */
417
+ proto.ondewo.nlu.LlmRetrievedChunk = function(opt_data) {
418
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
419
+ };
420
+ goog.inherits(proto.ondewo.nlu.LlmRetrievedChunk, jspb.Message);
421
+ if (goog.DEBUG && !COMPILED) {
422
+ /**
423
+ * @public
424
+ * @override
425
+ */
426
+ proto.ondewo.nlu.LlmRetrievedChunk.displayName = 'proto.ondewo.nlu.LlmRetrievedChunk';
427
+ }
428
+ /**
429
+ * Generated by JsPbCodeGenerator.
430
+ * @param {Array=} opt_data Optional initial data array, typically from a
431
+ * server response, or constructed directly in Javascript. The array is used
432
+ * in place and becomes part of the constructed object. It is not cloned.
433
+ * If no data is provided, the constructed object will be empty, but still
434
+ * valid.
435
+ * @extends {jspb.Message}
436
+ * @constructor
437
+ */
438
+ proto.ondewo.nlu.LlmRetrievalMetadata = function(opt_data) {
439
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.LlmRetrievalMetadata.repeatedFields_, null);
440
+ };
441
+ goog.inherits(proto.ondewo.nlu.LlmRetrievalMetadata, jspb.Message);
442
+ if (goog.DEBUG && !COMPILED) {
443
+ /**
444
+ * @public
445
+ * @override
446
+ */
447
+ proto.ondewo.nlu.LlmRetrievalMetadata.displayName = 'proto.ondewo.nlu.LlmRetrievalMetadata';
448
+ }
358
449
  /**
359
450
  * Generated by JsPbCodeGenerator.
360
451
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -607,6 +698,48 @@ if (goog.DEBUG && !COMPILED) {
607
698
  */
608
699
  proto.ondewo.nlu.LlmTelemetryReport.displayName = 'proto.ondewo.nlu.LlmTelemetryReport';
609
700
  }
701
+ /**
702
+ * Generated by JsPbCodeGenerator.
703
+ * @param {Array=} opt_data Optional initial data array, typically from a
704
+ * server response, or constructed directly in Javascript. The array is used
705
+ * in place and becomes part of the constructed object. It is not cloned.
706
+ * If no data is provided, the constructed object will be empty, but still
707
+ * valid.
708
+ * @extends {jspb.Message}
709
+ * @constructor
710
+ */
711
+ proto.ondewo.nlu.LlmSafetyCategoryStat = function(opt_data) {
712
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
713
+ };
714
+ goog.inherits(proto.ondewo.nlu.LlmSafetyCategoryStat, jspb.Message);
715
+ if (goog.DEBUG && !COMPILED) {
716
+ /**
717
+ * @public
718
+ * @override
719
+ */
720
+ proto.ondewo.nlu.LlmSafetyCategoryStat.displayName = 'proto.ondewo.nlu.LlmSafetyCategoryStat';
721
+ }
722
+ /**
723
+ * Generated by JsPbCodeGenerator.
724
+ * @param {Array=} opt_data Optional initial data array, typically from a
725
+ * server response, or constructed directly in Javascript. The array is used
726
+ * in place and becomes part of the constructed object. It is not cloned.
727
+ * If no data is provided, the constructed object will be empty, but still
728
+ * valid.
729
+ * @extends {jspb.Message}
730
+ * @constructor
731
+ */
732
+ proto.ondewo.nlu.LlmSafetyStats = function(opt_data) {
733
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.LlmSafetyStats.repeatedFields_, null);
734
+ };
735
+ goog.inherits(proto.ondewo.nlu.LlmSafetyStats, jspb.Message);
736
+ if (goog.DEBUG && !COMPILED) {
737
+ /**
738
+ * @public
739
+ * @override
740
+ */
741
+ proto.ondewo.nlu.LlmSafetyStats.displayName = 'proto.ondewo.nlu.LlmSafetyStats';
742
+ }
610
743
  /**
611
744
  * Generated by JsPbCodeGenerator.
612
745
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -5527,7 +5660,9 @@ strictResponseValidation: (f = jspb.Message.getBooleanField(msg, 56)) == null ?
5527
5660
  extraHeaders: (f = msg.getExtraHeaders()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
5528
5661
  extraQuery: (f = msg.getExtraQuery()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
5529
5662
  extraBody: (f = msg.getExtraBody()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
5530
- ccaiServiceProvider: jspb.Message.getFieldWithDefault(msg, 60, 0)
5663
+ ccaiServiceProvider: jspb.Message.getFieldWithDefault(msg, 60, 0),
5664
+ llmSafetyAssessment: (f = msg.getLlmSafetyAssessment()) && proto.ondewo.nlu.LlmSafetyAssessment.toObject(includeInstance, f),
5665
+ llmRetrievalMetadata: (f = msg.getLlmRetrievalMetadata()) && proto.ondewo.nlu.LlmRetrievalMetadata.toObject(includeInstance, f)
5531
5666
  };
5532
5667
 
5533
5668
  if (includeInstance) {
@@ -5819,6 +5954,16 @@ proto.ondewo.nlu.LlmTelemetry.deserializeBinaryFromReader = function(msg, reader
5819
5954
  var value = /** @type {!proto.ondewo.nlu.CcaiServiceProvider} */ (reader.readEnum());
5820
5955
  msg.setCcaiServiceProvider(value);
5821
5956
  break;
5957
+ case 61:
5958
+ var value = new proto.ondewo.nlu.LlmSafetyAssessment;
5959
+ reader.readMessage(value,proto.ondewo.nlu.LlmSafetyAssessment.deserializeBinaryFromReader);
5960
+ msg.setLlmSafetyAssessment(value);
5961
+ break;
5962
+ case 62:
5963
+ var value = new proto.ondewo.nlu.LlmRetrievalMetadata;
5964
+ reader.readMessage(value,proto.ondewo.nlu.LlmRetrievalMetadata.deserializeBinaryFromReader);
5965
+ msg.setLlmRetrievalMetadata(value);
5966
+ break;
5822
5967
  default:
5823
5968
  reader.skipField();
5824
5969
  break;
@@ -6283,6 +6428,22 @@ proto.ondewo.nlu.LlmTelemetry.serializeBinaryToWriter = function(message, writer
6283
6428
  f
6284
6429
  );
6285
6430
  }
6431
+ f = message.getLlmSafetyAssessment();
6432
+ if (f != null) {
6433
+ writer.writeMessage(
6434
+ 61,
6435
+ f,
6436
+ proto.ondewo.nlu.LlmSafetyAssessment.serializeBinaryToWriter
6437
+ );
6438
+ }
6439
+ f = message.getLlmRetrievalMetadata();
6440
+ if (f != null) {
6441
+ writer.writeMessage(
6442
+ 62,
6443
+ f,
6444
+ proto.ondewo.nlu.LlmRetrievalMetadata.serializeBinaryToWriter
6445
+ );
6446
+ }
6286
6447
  };
6287
6448
 
6288
6449
 
@@ -7799,6 +7960,1069 @@ proto.ondewo.nlu.LlmTelemetry.prototype.setCcaiServiceProvider = function(value)
7799
7960
  };
7800
7961
 
7801
7962
 
7963
+ /**
7964
+ * optional LlmSafetyAssessment llm_safety_assessment = 61;
7965
+ * @return {?proto.ondewo.nlu.LlmSafetyAssessment}
7966
+ */
7967
+ proto.ondewo.nlu.LlmTelemetry.prototype.getLlmSafetyAssessment = function() {
7968
+ return /** @type{?proto.ondewo.nlu.LlmSafetyAssessment} */ (
7969
+ jspb.Message.getWrapperField(this, proto.ondewo.nlu.LlmSafetyAssessment, 61));
7970
+ };
7971
+
7972
+
7973
+ /**
7974
+ * @param {?proto.ondewo.nlu.LlmSafetyAssessment|undefined} value
7975
+ * @return {!proto.ondewo.nlu.LlmTelemetry} returns this
7976
+ */
7977
+ proto.ondewo.nlu.LlmTelemetry.prototype.setLlmSafetyAssessment = function(value) {
7978
+ return jspb.Message.setWrapperField(this, 61, value);
7979
+ };
7980
+
7981
+
7982
+ /**
7983
+ * Clears the message field making it undefined.
7984
+ * @return {!proto.ondewo.nlu.LlmTelemetry} returns this
7985
+ */
7986
+ proto.ondewo.nlu.LlmTelemetry.prototype.clearLlmSafetyAssessment = function() {
7987
+ return this.setLlmSafetyAssessment(undefined);
7988
+ };
7989
+
7990
+
7991
+ /**
7992
+ * Returns whether this field is set.
7993
+ * @return {boolean}
7994
+ */
7995
+ proto.ondewo.nlu.LlmTelemetry.prototype.hasLlmSafetyAssessment = function() {
7996
+ return jspb.Message.getField(this, 61) != null;
7997
+ };
7998
+
7999
+
8000
+ /**
8001
+ * optional LlmRetrievalMetadata llm_retrieval_metadata = 62;
8002
+ * @return {?proto.ondewo.nlu.LlmRetrievalMetadata}
8003
+ */
8004
+ proto.ondewo.nlu.LlmTelemetry.prototype.getLlmRetrievalMetadata = function() {
8005
+ return /** @type{?proto.ondewo.nlu.LlmRetrievalMetadata} */ (
8006
+ jspb.Message.getWrapperField(this, proto.ondewo.nlu.LlmRetrievalMetadata, 62));
8007
+ };
8008
+
8009
+
8010
+ /**
8011
+ * @param {?proto.ondewo.nlu.LlmRetrievalMetadata|undefined} value
8012
+ * @return {!proto.ondewo.nlu.LlmTelemetry} returns this
8013
+ */
8014
+ proto.ondewo.nlu.LlmTelemetry.prototype.setLlmRetrievalMetadata = function(value) {
8015
+ return jspb.Message.setWrapperField(this, 62, value);
8016
+ };
8017
+
8018
+
8019
+ /**
8020
+ * Clears the message field making it undefined.
8021
+ * @return {!proto.ondewo.nlu.LlmTelemetry} returns this
8022
+ */
8023
+ proto.ondewo.nlu.LlmTelemetry.prototype.clearLlmRetrievalMetadata = function() {
8024
+ return this.setLlmRetrievalMetadata(undefined);
8025
+ };
8026
+
8027
+
8028
+ /**
8029
+ * Returns whether this field is set.
8030
+ * @return {boolean}
8031
+ */
8032
+ proto.ondewo.nlu.LlmTelemetry.prototype.hasLlmRetrievalMetadata = function() {
8033
+ return jspb.Message.getField(this, 62) != null;
8034
+ };
8035
+
8036
+
8037
+
8038
+
8039
+
8040
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8041
+ /**
8042
+ * Creates an object representation of this proto.
8043
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8044
+ * Optional fields that are not set will be set to undefined.
8045
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8046
+ * For the list of reserved names please see:
8047
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8048
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8049
+ * JSPB instance for transitional soy proto support:
8050
+ * http://goto/soy-param-migration
8051
+ * @return {!Object}
8052
+ */
8053
+ proto.ondewo.nlu.LlmSafetyFinding.prototype.toObject = function(opt_includeInstance) {
8054
+ return proto.ondewo.nlu.LlmSafetyFinding.toObject(opt_includeInstance, this);
8055
+ };
8056
+
8057
+
8058
+ /**
8059
+ * Static version of the {@see toObject} method.
8060
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8061
+ * the JSPB instance for transitional soy proto support:
8062
+ * http://goto/soy-param-migration
8063
+ * @param {!proto.ondewo.nlu.LlmSafetyFinding} msg The msg instance to transform.
8064
+ * @return {!Object}
8065
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8066
+ */
8067
+ proto.ondewo.nlu.LlmSafetyFinding.toObject = function(includeInstance, msg) {
8068
+ var f, obj = {
8069
+ category: jspb.Message.getFieldWithDefault(msg, 1, ""),
8070
+ severity: jspb.Message.getFieldWithDefault(msg, 2, ""),
8071
+ matchedPattern: jspb.Message.getFieldWithDefault(msg, 3, ""),
8072
+ location: jspb.Message.getFieldWithDefault(msg, 4, 0)
8073
+ };
8074
+
8075
+ if (includeInstance) {
8076
+ obj.$jspbMessageInstance = msg;
8077
+ }
8078
+ return obj;
8079
+ };
8080
+ }
8081
+
8082
+
8083
+ /**
8084
+ * Deserializes binary data (in protobuf wire format).
8085
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8086
+ * @return {!proto.ondewo.nlu.LlmSafetyFinding}
8087
+ */
8088
+ proto.ondewo.nlu.LlmSafetyFinding.deserializeBinary = function(bytes) {
8089
+ var reader = new jspb.BinaryReader(bytes);
8090
+ var msg = new proto.ondewo.nlu.LlmSafetyFinding;
8091
+ return proto.ondewo.nlu.LlmSafetyFinding.deserializeBinaryFromReader(msg, reader);
8092
+ };
8093
+
8094
+
8095
+ /**
8096
+ * Deserializes binary data (in protobuf wire format) from the
8097
+ * given reader into the given message object.
8098
+ * @param {!proto.ondewo.nlu.LlmSafetyFinding} msg The message object to deserialize into.
8099
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8100
+ * @return {!proto.ondewo.nlu.LlmSafetyFinding}
8101
+ */
8102
+ proto.ondewo.nlu.LlmSafetyFinding.deserializeBinaryFromReader = function(msg, reader) {
8103
+ while (reader.nextField()) {
8104
+ if (reader.isEndGroup()) {
8105
+ break;
8106
+ }
8107
+ var field = reader.getFieldNumber();
8108
+ switch (field) {
8109
+ case 1:
8110
+ var value = /** @type {string} */ (reader.readString());
8111
+ msg.setCategory(value);
8112
+ break;
8113
+ case 2:
8114
+ var value = /** @type {string} */ (reader.readString());
8115
+ msg.setSeverity(value);
8116
+ break;
8117
+ case 3:
8118
+ var value = /** @type {string} */ (reader.readString());
8119
+ msg.setMatchedPattern(value);
8120
+ break;
8121
+ case 4:
8122
+ var value = /** @type {!proto.ondewo.nlu.LlmSafetyLocation} */ (reader.readEnum());
8123
+ msg.setLocation(value);
8124
+ break;
8125
+ default:
8126
+ reader.skipField();
8127
+ break;
8128
+ }
8129
+ }
8130
+ return msg;
8131
+ };
8132
+
8133
+
8134
+ /**
8135
+ * Serializes the message to binary data (in protobuf wire format).
8136
+ * @return {!Uint8Array}
8137
+ */
8138
+ proto.ondewo.nlu.LlmSafetyFinding.prototype.serializeBinary = function() {
8139
+ var writer = new jspb.BinaryWriter();
8140
+ proto.ondewo.nlu.LlmSafetyFinding.serializeBinaryToWriter(this, writer);
8141
+ return writer.getResultBuffer();
8142
+ };
8143
+
8144
+
8145
+ /**
8146
+ * Serializes the given message to binary data (in protobuf wire
8147
+ * format), writing to the given BinaryWriter.
8148
+ * @param {!proto.ondewo.nlu.LlmSafetyFinding} message
8149
+ * @param {!jspb.BinaryWriter} writer
8150
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8151
+ */
8152
+ proto.ondewo.nlu.LlmSafetyFinding.serializeBinaryToWriter = function(message, writer) {
8153
+ var f = undefined;
8154
+ f = message.getCategory();
8155
+ if (f.length > 0) {
8156
+ writer.writeString(
8157
+ 1,
8158
+ f
8159
+ );
8160
+ }
8161
+ f = message.getSeverity();
8162
+ if (f.length > 0) {
8163
+ writer.writeString(
8164
+ 2,
8165
+ f
8166
+ );
8167
+ }
8168
+ f = message.getMatchedPattern();
8169
+ if (f.length > 0) {
8170
+ writer.writeString(
8171
+ 3,
8172
+ f
8173
+ );
8174
+ }
8175
+ f = message.getLocation();
8176
+ if (f !== 0.0) {
8177
+ writer.writeEnum(
8178
+ 4,
8179
+ f
8180
+ );
8181
+ }
8182
+ };
8183
+
8184
+
8185
+ /**
8186
+ * optional string category = 1;
8187
+ * @return {string}
8188
+ */
8189
+ proto.ondewo.nlu.LlmSafetyFinding.prototype.getCategory = function() {
8190
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8191
+ };
8192
+
8193
+
8194
+ /**
8195
+ * @param {string} value
8196
+ * @return {!proto.ondewo.nlu.LlmSafetyFinding} returns this
8197
+ */
8198
+ proto.ondewo.nlu.LlmSafetyFinding.prototype.setCategory = function(value) {
8199
+ return jspb.Message.setProto3StringField(this, 1, value);
8200
+ };
8201
+
8202
+
8203
+ /**
8204
+ * optional string severity = 2;
8205
+ * @return {string}
8206
+ */
8207
+ proto.ondewo.nlu.LlmSafetyFinding.prototype.getSeverity = function() {
8208
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
8209
+ };
8210
+
8211
+
8212
+ /**
8213
+ * @param {string} value
8214
+ * @return {!proto.ondewo.nlu.LlmSafetyFinding} returns this
8215
+ */
8216
+ proto.ondewo.nlu.LlmSafetyFinding.prototype.setSeverity = function(value) {
8217
+ return jspb.Message.setProto3StringField(this, 2, value);
8218
+ };
8219
+
8220
+
8221
+ /**
8222
+ * optional string matched_pattern = 3;
8223
+ * @return {string}
8224
+ */
8225
+ proto.ondewo.nlu.LlmSafetyFinding.prototype.getMatchedPattern = function() {
8226
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
8227
+ };
8228
+
8229
+
8230
+ /**
8231
+ * @param {string} value
8232
+ * @return {!proto.ondewo.nlu.LlmSafetyFinding} returns this
8233
+ */
8234
+ proto.ondewo.nlu.LlmSafetyFinding.prototype.setMatchedPattern = function(value) {
8235
+ return jspb.Message.setProto3StringField(this, 3, value);
8236
+ };
8237
+
8238
+
8239
+ /**
8240
+ * optional LlmSafetyLocation location = 4;
8241
+ * @return {!proto.ondewo.nlu.LlmSafetyLocation}
8242
+ */
8243
+ proto.ondewo.nlu.LlmSafetyFinding.prototype.getLocation = function() {
8244
+ return /** @type {!proto.ondewo.nlu.LlmSafetyLocation} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
8245
+ };
8246
+
8247
+
8248
+ /**
8249
+ * @param {!proto.ondewo.nlu.LlmSafetyLocation} value
8250
+ * @return {!proto.ondewo.nlu.LlmSafetyFinding} returns this
8251
+ */
8252
+ proto.ondewo.nlu.LlmSafetyFinding.prototype.setLocation = function(value) {
8253
+ return jspb.Message.setProto3EnumField(this, 4, value);
8254
+ };
8255
+
8256
+
8257
+
8258
+ /**
8259
+ * List of repeated fields within this message type.
8260
+ * @private {!Array<number>}
8261
+ * @const
8262
+ */
8263
+ proto.ondewo.nlu.LlmSafetyAssessment.repeatedFields_ = [1,6];
8264
+
8265
+
8266
+
8267
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8268
+ /**
8269
+ * Creates an object representation of this proto.
8270
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8271
+ * Optional fields that are not set will be set to undefined.
8272
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8273
+ * For the list of reserved names please see:
8274
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8275
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8276
+ * JSPB instance for transitional soy proto support:
8277
+ * http://goto/soy-param-migration
8278
+ * @return {!Object}
8279
+ */
8280
+ proto.ondewo.nlu.LlmSafetyAssessment.prototype.toObject = function(opt_includeInstance) {
8281
+ return proto.ondewo.nlu.LlmSafetyAssessment.toObject(opt_includeInstance, this);
8282
+ };
8283
+
8284
+
8285
+ /**
8286
+ * Static version of the {@see toObject} method.
8287
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8288
+ * the JSPB instance for transitional soy proto support:
8289
+ * http://goto/soy-param-migration
8290
+ * @param {!proto.ondewo.nlu.LlmSafetyAssessment} msg The msg instance to transform.
8291
+ * @return {!Object}
8292
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8293
+ */
8294
+ proto.ondewo.nlu.LlmSafetyAssessment.toObject = function(includeInstance, msg) {
8295
+ var f, obj = {
8296
+ flaggedCategoriesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
8297
+ hasPii: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
8298
+ hasInjectionAttempt: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
8299
+ hasJailbreakAttempt: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
8300
+ safetyScore: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
8301
+ findingsList: jspb.Message.toObjectList(msg.getFindingsList(),
8302
+ proto.ondewo.nlu.LlmSafetyFinding.toObject, includeInstance)
8303
+ };
8304
+
8305
+ if (includeInstance) {
8306
+ obj.$jspbMessageInstance = msg;
8307
+ }
8308
+ return obj;
8309
+ };
8310
+ }
8311
+
8312
+
8313
+ /**
8314
+ * Deserializes binary data (in protobuf wire format).
8315
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8316
+ * @return {!proto.ondewo.nlu.LlmSafetyAssessment}
8317
+ */
8318
+ proto.ondewo.nlu.LlmSafetyAssessment.deserializeBinary = function(bytes) {
8319
+ var reader = new jspb.BinaryReader(bytes);
8320
+ var msg = new proto.ondewo.nlu.LlmSafetyAssessment;
8321
+ return proto.ondewo.nlu.LlmSafetyAssessment.deserializeBinaryFromReader(msg, reader);
8322
+ };
8323
+
8324
+
8325
+ /**
8326
+ * Deserializes binary data (in protobuf wire format) from the
8327
+ * given reader into the given message object.
8328
+ * @param {!proto.ondewo.nlu.LlmSafetyAssessment} msg The message object to deserialize into.
8329
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8330
+ * @return {!proto.ondewo.nlu.LlmSafetyAssessment}
8331
+ */
8332
+ proto.ondewo.nlu.LlmSafetyAssessment.deserializeBinaryFromReader = function(msg, reader) {
8333
+ while (reader.nextField()) {
8334
+ if (reader.isEndGroup()) {
8335
+ break;
8336
+ }
8337
+ var field = reader.getFieldNumber();
8338
+ switch (field) {
8339
+ case 1:
8340
+ var value = /** @type {string} */ (reader.readString());
8341
+ msg.addFlaggedCategories(value);
8342
+ break;
8343
+ case 2:
8344
+ var value = /** @type {boolean} */ (reader.readBool());
8345
+ msg.setHasPii(value);
8346
+ break;
8347
+ case 3:
8348
+ var value = /** @type {boolean} */ (reader.readBool());
8349
+ msg.setHasInjectionAttempt(value);
8350
+ break;
8351
+ case 4:
8352
+ var value = /** @type {boolean} */ (reader.readBool());
8353
+ msg.setHasJailbreakAttempt(value);
8354
+ break;
8355
+ case 5:
8356
+ var value = /** @type {number} */ (reader.readDouble());
8357
+ msg.setSafetyScore(value);
8358
+ break;
8359
+ case 6:
8360
+ var value = new proto.ondewo.nlu.LlmSafetyFinding;
8361
+ reader.readMessage(value,proto.ondewo.nlu.LlmSafetyFinding.deserializeBinaryFromReader);
8362
+ msg.addFindings(value);
8363
+ break;
8364
+ default:
8365
+ reader.skipField();
8366
+ break;
8367
+ }
8368
+ }
8369
+ return msg;
8370
+ };
8371
+
8372
+
8373
+ /**
8374
+ * Serializes the message to binary data (in protobuf wire format).
8375
+ * @return {!Uint8Array}
8376
+ */
8377
+ proto.ondewo.nlu.LlmSafetyAssessment.prototype.serializeBinary = function() {
8378
+ var writer = new jspb.BinaryWriter();
8379
+ proto.ondewo.nlu.LlmSafetyAssessment.serializeBinaryToWriter(this, writer);
8380
+ return writer.getResultBuffer();
8381
+ };
8382
+
8383
+
8384
+ /**
8385
+ * Serializes the given message to binary data (in protobuf wire
8386
+ * format), writing to the given BinaryWriter.
8387
+ * @param {!proto.ondewo.nlu.LlmSafetyAssessment} message
8388
+ * @param {!jspb.BinaryWriter} writer
8389
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8390
+ */
8391
+ proto.ondewo.nlu.LlmSafetyAssessment.serializeBinaryToWriter = function(message, writer) {
8392
+ var f = undefined;
8393
+ f = message.getFlaggedCategoriesList();
8394
+ if (f.length > 0) {
8395
+ writer.writeRepeatedString(
8396
+ 1,
8397
+ f
8398
+ );
8399
+ }
8400
+ f = message.getHasPii();
8401
+ if (f) {
8402
+ writer.writeBool(
8403
+ 2,
8404
+ f
8405
+ );
8406
+ }
8407
+ f = message.getHasInjectionAttempt();
8408
+ if (f) {
8409
+ writer.writeBool(
8410
+ 3,
8411
+ f
8412
+ );
8413
+ }
8414
+ f = message.getHasJailbreakAttempt();
8415
+ if (f) {
8416
+ writer.writeBool(
8417
+ 4,
8418
+ f
8419
+ );
8420
+ }
8421
+ f = message.getSafetyScore();
8422
+ if (f !== 0.0) {
8423
+ writer.writeDouble(
8424
+ 5,
8425
+ f
8426
+ );
8427
+ }
8428
+ f = message.getFindingsList();
8429
+ if (f.length > 0) {
8430
+ writer.writeRepeatedMessage(
8431
+ 6,
8432
+ f,
8433
+ proto.ondewo.nlu.LlmSafetyFinding.serializeBinaryToWriter
8434
+ );
8435
+ }
8436
+ };
8437
+
8438
+
8439
+ /**
8440
+ * repeated string flagged_categories = 1;
8441
+ * @return {!Array<string>}
8442
+ */
8443
+ proto.ondewo.nlu.LlmSafetyAssessment.prototype.getFlaggedCategoriesList = function() {
8444
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
8445
+ };
8446
+
8447
+
8448
+ /**
8449
+ * @param {!Array<string>} value
8450
+ * @return {!proto.ondewo.nlu.LlmSafetyAssessment} returns this
8451
+ */
8452
+ proto.ondewo.nlu.LlmSafetyAssessment.prototype.setFlaggedCategoriesList = function(value) {
8453
+ return jspb.Message.setField(this, 1, value || []);
8454
+ };
8455
+
8456
+
8457
+ /**
8458
+ * @param {string} value
8459
+ * @param {number=} opt_index
8460
+ * @return {!proto.ondewo.nlu.LlmSafetyAssessment} returns this
8461
+ */
8462
+ proto.ondewo.nlu.LlmSafetyAssessment.prototype.addFlaggedCategories = function(value, opt_index) {
8463
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
8464
+ };
8465
+
8466
+
8467
+ /**
8468
+ * Clears the list making it empty but non-null.
8469
+ * @return {!proto.ondewo.nlu.LlmSafetyAssessment} returns this
8470
+ */
8471
+ proto.ondewo.nlu.LlmSafetyAssessment.prototype.clearFlaggedCategoriesList = function() {
8472
+ return this.setFlaggedCategoriesList([]);
8473
+ };
8474
+
8475
+
8476
+ /**
8477
+ * optional bool has_pii = 2;
8478
+ * @return {boolean}
8479
+ */
8480
+ proto.ondewo.nlu.LlmSafetyAssessment.prototype.getHasPii = function() {
8481
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
8482
+ };
8483
+
8484
+
8485
+ /**
8486
+ * @param {boolean} value
8487
+ * @return {!proto.ondewo.nlu.LlmSafetyAssessment} returns this
8488
+ */
8489
+ proto.ondewo.nlu.LlmSafetyAssessment.prototype.setHasPii = function(value) {
8490
+ return jspb.Message.setProto3BooleanField(this, 2, value);
8491
+ };
8492
+
8493
+
8494
+ /**
8495
+ * optional bool has_injection_attempt = 3;
8496
+ * @return {boolean}
8497
+ */
8498
+ proto.ondewo.nlu.LlmSafetyAssessment.prototype.getHasInjectionAttempt = function() {
8499
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
8500
+ };
8501
+
8502
+
8503
+ /**
8504
+ * @param {boolean} value
8505
+ * @return {!proto.ondewo.nlu.LlmSafetyAssessment} returns this
8506
+ */
8507
+ proto.ondewo.nlu.LlmSafetyAssessment.prototype.setHasInjectionAttempt = function(value) {
8508
+ return jspb.Message.setProto3BooleanField(this, 3, value);
8509
+ };
8510
+
8511
+
8512
+ /**
8513
+ * optional bool has_jailbreak_attempt = 4;
8514
+ * @return {boolean}
8515
+ */
8516
+ proto.ondewo.nlu.LlmSafetyAssessment.prototype.getHasJailbreakAttempt = function() {
8517
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
8518
+ };
8519
+
8520
+
8521
+ /**
8522
+ * @param {boolean} value
8523
+ * @return {!proto.ondewo.nlu.LlmSafetyAssessment} returns this
8524
+ */
8525
+ proto.ondewo.nlu.LlmSafetyAssessment.prototype.setHasJailbreakAttempt = function(value) {
8526
+ return jspb.Message.setProto3BooleanField(this, 4, value);
8527
+ };
8528
+
8529
+
8530
+ /**
8531
+ * optional double safety_score = 5;
8532
+ * @return {number}
8533
+ */
8534
+ proto.ondewo.nlu.LlmSafetyAssessment.prototype.getSafetyScore = function() {
8535
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
8536
+ };
8537
+
8538
+
8539
+ /**
8540
+ * @param {number} value
8541
+ * @return {!proto.ondewo.nlu.LlmSafetyAssessment} returns this
8542
+ */
8543
+ proto.ondewo.nlu.LlmSafetyAssessment.prototype.setSafetyScore = function(value) {
8544
+ return jspb.Message.setProto3FloatField(this, 5, value);
8545
+ };
8546
+
8547
+
8548
+ /**
8549
+ * repeated LlmSafetyFinding findings = 6;
8550
+ * @return {!Array<!proto.ondewo.nlu.LlmSafetyFinding>}
8551
+ */
8552
+ proto.ondewo.nlu.LlmSafetyAssessment.prototype.getFindingsList = function() {
8553
+ return /** @type{!Array<!proto.ondewo.nlu.LlmSafetyFinding>} */ (
8554
+ jspb.Message.getRepeatedWrapperField(this, proto.ondewo.nlu.LlmSafetyFinding, 6));
8555
+ };
8556
+
8557
+
8558
+ /**
8559
+ * @param {!Array<!proto.ondewo.nlu.LlmSafetyFinding>} value
8560
+ * @return {!proto.ondewo.nlu.LlmSafetyAssessment} returns this
8561
+ */
8562
+ proto.ondewo.nlu.LlmSafetyAssessment.prototype.setFindingsList = function(value) {
8563
+ return jspb.Message.setRepeatedWrapperField(this, 6, value);
8564
+ };
8565
+
8566
+
8567
+ /**
8568
+ * @param {!proto.ondewo.nlu.LlmSafetyFinding=} opt_value
8569
+ * @param {number=} opt_index
8570
+ * @return {!proto.ondewo.nlu.LlmSafetyFinding}
8571
+ */
8572
+ proto.ondewo.nlu.LlmSafetyAssessment.prototype.addFindings = function(opt_value, opt_index) {
8573
+ return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.ondewo.nlu.LlmSafetyFinding, opt_index);
8574
+ };
8575
+
8576
+
8577
+ /**
8578
+ * Clears the list making it empty but non-null.
8579
+ * @return {!proto.ondewo.nlu.LlmSafetyAssessment} returns this
8580
+ */
8581
+ proto.ondewo.nlu.LlmSafetyAssessment.prototype.clearFindingsList = function() {
8582
+ return this.setFindingsList([]);
8583
+ };
8584
+
8585
+
8586
+
8587
+
8588
+
8589
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8590
+ /**
8591
+ * Creates an object representation of this proto.
8592
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8593
+ * Optional fields that are not set will be set to undefined.
8594
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8595
+ * For the list of reserved names please see:
8596
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8597
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8598
+ * JSPB instance for transitional soy proto support:
8599
+ * http://goto/soy-param-migration
8600
+ * @return {!Object}
8601
+ */
8602
+ proto.ondewo.nlu.LlmRetrievedChunk.prototype.toObject = function(opt_includeInstance) {
8603
+ return proto.ondewo.nlu.LlmRetrievedChunk.toObject(opt_includeInstance, this);
8604
+ };
8605
+
8606
+
8607
+ /**
8608
+ * Static version of the {@see toObject} method.
8609
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8610
+ * the JSPB instance for transitional soy proto support:
8611
+ * http://goto/soy-param-migration
8612
+ * @param {!proto.ondewo.nlu.LlmRetrievedChunk} msg The msg instance to transform.
8613
+ * @return {!Object}
8614
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8615
+ */
8616
+ proto.ondewo.nlu.LlmRetrievedChunk.toObject = function(includeInstance, msg) {
8617
+ var f, obj = {
8618
+ documentId: jspb.Message.getFieldWithDefault(msg, 1, ""),
8619
+ chunkId: jspb.Message.getFieldWithDefault(msg, 2, ""),
8620
+ score: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
8621
+ text: jspb.Message.getFieldWithDefault(msg, 4, ""),
8622
+ sourceUri: jspb.Message.getFieldWithDefault(msg, 5, ""),
8623
+ rank: jspb.Message.getFieldWithDefault(msg, 6, 0)
8624
+ };
8625
+
8626
+ if (includeInstance) {
8627
+ obj.$jspbMessageInstance = msg;
8628
+ }
8629
+ return obj;
8630
+ };
8631
+ }
8632
+
8633
+
8634
+ /**
8635
+ * Deserializes binary data (in protobuf wire format).
8636
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8637
+ * @return {!proto.ondewo.nlu.LlmRetrievedChunk}
8638
+ */
8639
+ proto.ondewo.nlu.LlmRetrievedChunk.deserializeBinary = function(bytes) {
8640
+ var reader = new jspb.BinaryReader(bytes);
8641
+ var msg = new proto.ondewo.nlu.LlmRetrievedChunk;
8642
+ return proto.ondewo.nlu.LlmRetrievedChunk.deserializeBinaryFromReader(msg, reader);
8643
+ };
8644
+
8645
+
8646
+ /**
8647
+ * Deserializes binary data (in protobuf wire format) from the
8648
+ * given reader into the given message object.
8649
+ * @param {!proto.ondewo.nlu.LlmRetrievedChunk} msg The message object to deserialize into.
8650
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8651
+ * @return {!proto.ondewo.nlu.LlmRetrievedChunk}
8652
+ */
8653
+ proto.ondewo.nlu.LlmRetrievedChunk.deserializeBinaryFromReader = function(msg, reader) {
8654
+ while (reader.nextField()) {
8655
+ if (reader.isEndGroup()) {
8656
+ break;
8657
+ }
8658
+ var field = reader.getFieldNumber();
8659
+ switch (field) {
8660
+ case 1:
8661
+ var value = /** @type {string} */ (reader.readString());
8662
+ msg.setDocumentId(value);
8663
+ break;
8664
+ case 2:
8665
+ var value = /** @type {string} */ (reader.readString());
8666
+ msg.setChunkId(value);
8667
+ break;
8668
+ case 3:
8669
+ var value = /** @type {number} */ (reader.readDouble());
8670
+ msg.setScore(value);
8671
+ break;
8672
+ case 4:
8673
+ var value = /** @type {string} */ (reader.readString());
8674
+ msg.setText(value);
8675
+ break;
8676
+ case 5:
8677
+ var value = /** @type {string} */ (reader.readString());
8678
+ msg.setSourceUri(value);
8679
+ break;
8680
+ case 6:
8681
+ var value = /** @type {number} */ (reader.readInt32());
8682
+ msg.setRank(value);
8683
+ break;
8684
+ default:
8685
+ reader.skipField();
8686
+ break;
8687
+ }
8688
+ }
8689
+ return msg;
8690
+ };
8691
+
8692
+
8693
+ /**
8694
+ * Serializes the message to binary data (in protobuf wire format).
8695
+ * @return {!Uint8Array}
8696
+ */
8697
+ proto.ondewo.nlu.LlmRetrievedChunk.prototype.serializeBinary = function() {
8698
+ var writer = new jspb.BinaryWriter();
8699
+ proto.ondewo.nlu.LlmRetrievedChunk.serializeBinaryToWriter(this, writer);
8700
+ return writer.getResultBuffer();
8701
+ };
8702
+
8703
+
8704
+ /**
8705
+ * Serializes the given message to binary data (in protobuf wire
8706
+ * format), writing to the given BinaryWriter.
8707
+ * @param {!proto.ondewo.nlu.LlmRetrievedChunk} message
8708
+ * @param {!jspb.BinaryWriter} writer
8709
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8710
+ */
8711
+ proto.ondewo.nlu.LlmRetrievedChunk.serializeBinaryToWriter = function(message, writer) {
8712
+ var f = undefined;
8713
+ f = message.getDocumentId();
8714
+ if (f.length > 0) {
8715
+ writer.writeString(
8716
+ 1,
8717
+ f
8718
+ );
8719
+ }
8720
+ f = message.getChunkId();
8721
+ if (f.length > 0) {
8722
+ writer.writeString(
8723
+ 2,
8724
+ f
8725
+ );
8726
+ }
8727
+ f = message.getScore();
8728
+ if (f !== 0.0) {
8729
+ writer.writeDouble(
8730
+ 3,
8731
+ f
8732
+ );
8733
+ }
8734
+ f = message.getText();
8735
+ if (f.length > 0) {
8736
+ writer.writeString(
8737
+ 4,
8738
+ f
8739
+ );
8740
+ }
8741
+ f = message.getSourceUri();
8742
+ if (f.length > 0) {
8743
+ writer.writeString(
8744
+ 5,
8745
+ f
8746
+ );
8747
+ }
8748
+ f = message.getRank();
8749
+ if (f !== 0) {
8750
+ writer.writeInt32(
8751
+ 6,
8752
+ f
8753
+ );
8754
+ }
8755
+ };
8756
+
8757
+
8758
+ /**
8759
+ * optional string document_id = 1;
8760
+ * @return {string}
8761
+ */
8762
+ proto.ondewo.nlu.LlmRetrievedChunk.prototype.getDocumentId = function() {
8763
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8764
+ };
8765
+
8766
+
8767
+ /**
8768
+ * @param {string} value
8769
+ * @return {!proto.ondewo.nlu.LlmRetrievedChunk} returns this
8770
+ */
8771
+ proto.ondewo.nlu.LlmRetrievedChunk.prototype.setDocumentId = function(value) {
8772
+ return jspb.Message.setProto3StringField(this, 1, value);
8773
+ };
8774
+
8775
+
8776
+ /**
8777
+ * optional string chunk_id = 2;
8778
+ * @return {string}
8779
+ */
8780
+ proto.ondewo.nlu.LlmRetrievedChunk.prototype.getChunkId = function() {
8781
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
8782
+ };
8783
+
8784
+
8785
+ /**
8786
+ * @param {string} value
8787
+ * @return {!proto.ondewo.nlu.LlmRetrievedChunk} returns this
8788
+ */
8789
+ proto.ondewo.nlu.LlmRetrievedChunk.prototype.setChunkId = function(value) {
8790
+ return jspb.Message.setProto3StringField(this, 2, value);
8791
+ };
8792
+
8793
+
8794
+ /**
8795
+ * optional double score = 3;
8796
+ * @return {number}
8797
+ */
8798
+ proto.ondewo.nlu.LlmRetrievedChunk.prototype.getScore = function() {
8799
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
8800
+ };
8801
+
8802
+
8803
+ /**
8804
+ * @param {number} value
8805
+ * @return {!proto.ondewo.nlu.LlmRetrievedChunk} returns this
8806
+ */
8807
+ proto.ondewo.nlu.LlmRetrievedChunk.prototype.setScore = function(value) {
8808
+ return jspb.Message.setProto3FloatField(this, 3, value);
8809
+ };
8810
+
8811
+
8812
+ /**
8813
+ * optional string text = 4;
8814
+ * @return {string}
8815
+ */
8816
+ proto.ondewo.nlu.LlmRetrievedChunk.prototype.getText = function() {
8817
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
8818
+ };
8819
+
8820
+
8821
+ /**
8822
+ * @param {string} value
8823
+ * @return {!proto.ondewo.nlu.LlmRetrievedChunk} returns this
8824
+ */
8825
+ proto.ondewo.nlu.LlmRetrievedChunk.prototype.setText = function(value) {
8826
+ return jspb.Message.setProto3StringField(this, 4, value);
8827
+ };
8828
+
8829
+
8830
+ /**
8831
+ * optional string source_uri = 5;
8832
+ * @return {string}
8833
+ */
8834
+ proto.ondewo.nlu.LlmRetrievedChunk.prototype.getSourceUri = function() {
8835
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
8836
+ };
8837
+
8838
+
8839
+ /**
8840
+ * @param {string} value
8841
+ * @return {!proto.ondewo.nlu.LlmRetrievedChunk} returns this
8842
+ */
8843
+ proto.ondewo.nlu.LlmRetrievedChunk.prototype.setSourceUri = function(value) {
8844
+ return jspb.Message.setProto3StringField(this, 5, value);
8845
+ };
8846
+
8847
+
8848
+ /**
8849
+ * optional int32 rank = 6;
8850
+ * @return {number}
8851
+ */
8852
+ proto.ondewo.nlu.LlmRetrievedChunk.prototype.getRank = function() {
8853
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
8854
+ };
8855
+
8856
+
8857
+ /**
8858
+ * @param {number} value
8859
+ * @return {!proto.ondewo.nlu.LlmRetrievedChunk} returns this
8860
+ */
8861
+ proto.ondewo.nlu.LlmRetrievedChunk.prototype.setRank = function(value) {
8862
+ return jspb.Message.setProto3IntField(this, 6, value);
8863
+ };
8864
+
8865
+
8866
+
8867
+ /**
8868
+ * List of repeated fields within this message type.
8869
+ * @private {!Array<number>}
8870
+ * @const
8871
+ */
8872
+ proto.ondewo.nlu.LlmRetrievalMetadata.repeatedFields_ = [1];
8873
+
8874
+
8875
+
8876
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8877
+ /**
8878
+ * Creates an object representation of this proto.
8879
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8880
+ * Optional fields that are not set will be set to undefined.
8881
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8882
+ * For the list of reserved names please see:
8883
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8884
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8885
+ * JSPB instance for transitional soy proto support:
8886
+ * http://goto/soy-param-migration
8887
+ * @return {!Object}
8888
+ */
8889
+ proto.ondewo.nlu.LlmRetrievalMetadata.prototype.toObject = function(opt_includeInstance) {
8890
+ return proto.ondewo.nlu.LlmRetrievalMetadata.toObject(opt_includeInstance, this);
8891
+ };
8892
+
8893
+
8894
+ /**
8895
+ * Static version of the {@see toObject} method.
8896
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8897
+ * the JSPB instance for transitional soy proto support:
8898
+ * http://goto/soy-param-migration
8899
+ * @param {!proto.ondewo.nlu.LlmRetrievalMetadata} msg The msg instance to transform.
8900
+ * @return {!Object}
8901
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8902
+ */
8903
+ proto.ondewo.nlu.LlmRetrievalMetadata.toObject = function(includeInstance, msg) {
8904
+ var f, obj = {
8905
+ chunksList: jspb.Message.toObjectList(msg.getChunksList(),
8906
+ proto.ondewo.nlu.LlmRetrievedChunk.toObject, includeInstance)
8907
+ };
8908
+
8909
+ if (includeInstance) {
8910
+ obj.$jspbMessageInstance = msg;
8911
+ }
8912
+ return obj;
8913
+ };
8914
+ }
8915
+
8916
+
8917
+ /**
8918
+ * Deserializes binary data (in protobuf wire format).
8919
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8920
+ * @return {!proto.ondewo.nlu.LlmRetrievalMetadata}
8921
+ */
8922
+ proto.ondewo.nlu.LlmRetrievalMetadata.deserializeBinary = function(bytes) {
8923
+ var reader = new jspb.BinaryReader(bytes);
8924
+ var msg = new proto.ondewo.nlu.LlmRetrievalMetadata;
8925
+ return proto.ondewo.nlu.LlmRetrievalMetadata.deserializeBinaryFromReader(msg, reader);
8926
+ };
8927
+
8928
+
8929
+ /**
8930
+ * Deserializes binary data (in protobuf wire format) from the
8931
+ * given reader into the given message object.
8932
+ * @param {!proto.ondewo.nlu.LlmRetrievalMetadata} msg The message object to deserialize into.
8933
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8934
+ * @return {!proto.ondewo.nlu.LlmRetrievalMetadata}
8935
+ */
8936
+ proto.ondewo.nlu.LlmRetrievalMetadata.deserializeBinaryFromReader = function(msg, reader) {
8937
+ while (reader.nextField()) {
8938
+ if (reader.isEndGroup()) {
8939
+ break;
8940
+ }
8941
+ var field = reader.getFieldNumber();
8942
+ switch (field) {
8943
+ case 1:
8944
+ var value = new proto.ondewo.nlu.LlmRetrievedChunk;
8945
+ reader.readMessage(value,proto.ondewo.nlu.LlmRetrievedChunk.deserializeBinaryFromReader);
8946
+ msg.addChunks(value);
8947
+ break;
8948
+ default:
8949
+ reader.skipField();
8950
+ break;
8951
+ }
8952
+ }
8953
+ return msg;
8954
+ };
8955
+
8956
+
8957
+ /**
8958
+ * Serializes the message to binary data (in protobuf wire format).
8959
+ * @return {!Uint8Array}
8960
+ */
8961
+ proto.ondewo.nlu.LlmRetrievalMetadata.prototype.serializeBinary = function() {
8962
+ var writer = new jspb.BinaryWriter();
8963
+ proto.ondewo.nlu.LlmRetrievalMetadata.serializeBinaryToWriter(this, writer);
8964
+ return writer.getResultBuffer();
8965
+ };
8966
+
8967
+
8968
+ /**
8969
+ * Serializes the given message to binary data (in protobuf wire
8970
+ * format), writing to the given BinaryWriter.
8971
+ * @param {!proto.ondewo.nlu.LlmRetrievalMetadata} message
8972
+ * @param {!jspb.BinaryWriter} writer
8973
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8974
+ */
8975
+ proto.ondewo.nlu.LlmRetrievalMetadata.serializeBinaryToWriter = function(message, writer) {
8976
+ var f = undefined;
8977
+ f = message.getChunksList();
8978
+ if (f.length > 0) {
8979
+ writer.writeRepeatedMessage(
8980
+ 1,
8981
+ f,
8982
+ proto.ondewo.nlu.LlmRetrievedChunk.serializeBinaryToWriter
8983
+ );
8984
+ }
8985
+ };
8986
+
8987
+
8988
+ /**
8989
+ * repeated LlmRetrievedChunk chunks = 1;
8990
+ * @return {!Array<!proto.ondewo.nlu.LlmRetrievedChunk>}
8991
+ */
8992
+ proto.ondewo.nlu.LlmRetrievalMetadata.prototype.getChunksList = function() {
8993
+ return /** @type{!Array<!proto.ondewo.nlu.LlmRetrievedChunk>} */ (
8994
+ jspb.Message.getRepeatedWrapperField(this, proto.ondewo.nlu.LlmRetrievedChunk, 1));
8995
+ };
8996
+
8997
+
8998
+ /**
8999
+ * @param {!Array<!proto.ondewo.nlu.LlmRetrievedChunk>} value
9000
+ * @return {!proto.ondewo.nlu.LlmRetrievalMetadata} returns this
9001
+ */
9002
+ proto.ondewo.nlu.LlmRetrievalMetadata.prototype.setChunksList = function(value) {
9003
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
9004
+ };
9005
+
9006
+
9007
+ /**
9008
+ * @param {!proto.ondewo.nlu.LlmRetrievedChunk=} opt_value
9009
+ * @param {number=} opt_index
9010
+ * @return {!proto.ondewo.nlu.LlmRetrievedChunk}
9011
+ */
9012
+ proto.ondewo.nlu.LlmRetrievalMetadata.prototype.addChunks = function(opt_value, opt_index) {
9013
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ondewo.nlu.LlmRetrievedChunk, opt_index);
9014
+ };
9015
+
9016
+
9017
+ /**
9018
+ * Clears the list making it empty but non-null.
9019
+ * @return {!proto.ondewo.nlu.LlmRetrievalMetadata} returns this
9020
+ */
9021
+ proto.ondewo.nlu.LlmRetrievalMetadata.prototype.clearChunksList = function() {
9022
+ return this.setChunksList([]);
9023
+ };
9024
+
9025
+
7802
9026
 
7803
9027
 
7804
9028
 
@@ -11263,7 +12487,8 @@ reasoningEffortDistributionList: jspb.Message.toObjectList(msg.getReasoningEffor
11263
12487
  thinkingTokensTotal: jspb.Message.getFieldWithDefault(msg, 16, 0),
11264
12488
  thinkingDurationSecondsTotal: jspb.Message.getFloatingPointFieldWithDefault(msg, 17, 0.0),
11265
12489
  toolCallTokensTotal: jspb.Message.getFieldWithDefault(msg, 18, 0),
11266
- toolCallDurationSecondsTotal: jspb.Message.getFloatingPointFieldWithDefault(msg, 19, 0.0)
12490
+ toolCallDurationSecondsTotal: jspb.Message.getFloatingPointFieldWithDefault(msg, 19, 0.0),
12491
+ safetyStats: (f = msg.getSafetyStats()) && proto.ondewo.nlu.LlmSafetyStats.toObject(includeInstance, f)
11267
12492
  };
11268
12493
 
11269
12494
  if (includeInstance) {
@@ -11388,6 +12613,11 @@ proto.ondewo.nlu.LlmTelemetryReport.deserializeBinaryFromReader = function(msg,
11388
12613
  var value = /** @type {number} */ (reader.readDouble());
11389
12614
  msg.setToolCallDurationSecondsTotal(value);
11390
12615
  break;
12616
+ case 20:
12617
+ var value = new proto.ondewo.nlu.LlmSafetyStats;
12618
+ reader.readMessage(value,proto.ondewo.nlu.LlmSafetyStats.deserializeBinaryFromReader);
12619
+ msg.setSafetyStats(value);
12620
+ break;
11391
12621
  default:
11392
12622
  reader.skipField();
11393
12623
  break;
@@ -11562,6 +12792,14 @@ proto.ondewo.nlu.LlmTelemetryReport.serializeBinaryToWriter = function(message,
11562
12792
  f
11563
12793
  );
11564
12794
  }
12795
+ f = message.getSafetyStats();
12796
+ if (f != null) {
12797
+ writer.writeMessage(
12798
+ 20,
12799
+ f,
12800
+ proto.ondewo.nlu.LlmSafetyStats.serializeBinaryToWriter
12801
+ );
12802
+ }
11565
12803
  };
11566
12804
 
11567
12805
 
@@ -12143,6 +13381,483 @@ proto.ondewo.nlu.LlmTelemetryReport.prototype.setToolCallDurationSecondsTotal =
12143
13381
  };
12144
13382
 
12145
13383
 
13384
+ /**
13385
+ * optional LlmSafetyStats safety_stats = 20;
13386
+ * @return {?proto.ondewo.nlu.LlmSafetyStats}
13387
+ */
13388
+ proto.ondewo.nlu.LlmTelemetryReport.prototype.getSafetyStats = function() {
13389
+ return /** @type{?proto.ondewo.nlu.LlmSafetyStats} */ (
13390
+ jspb.Message.getWrapperField(this, proto.ondewo.nlu.LlmSafetyStats, 20));
13391
+ };
13392
+
13393
+
13394
+ /**
13395
+ * @param {?proto.ondewo.nlu.LlmSafetyStats|undefined} value
13396
+ * @return {!proto.ondewo.nlu.LlmTelemetryReport} returns this
13397
+ */
13398
+ proto.ondewo.nlu.LlmTelemetryReport.prototype.setSafetyStats = function(value) {
13399
+ return jspb.Message.setWrapperField(this, 20, value);
13400
+ };
13401
+
13402
+
13403
+ /**
13404
+ * Clears the message field making it undefined.
13405
+ * @return {!proto.ondewo.nlu.LlmTelemetryReport} returns this
13406
+ */
13407
+ proto.ondewo.nlu.LlmTelemetryReport.prototype.clearSafetyStats = function() {
13408
+ return this.setSafetyStats(undefined);
13409
+ };
13410
+
13411
+
13412
+ /**
13413
+ * Returns whether this field is set.
13414
+ * @return {boolean}
13415
+ */
13416
+ proto.ondewo.nlu.LlmTelemetryReport.prototype.hasSafetyStats = function() {
13417
+ return jspb.Message.getField(this, 20) != null;
13418
+ };
13419
+
13420
+
13421
+
13422
+
13423
+
13424
+ if (jspb.Message.GENERATE_TO_OBJECT) {
13425
+ /**
13426
+ * Creates an object representation of this proto.
13427
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
13428
+ * Optional fields that are not set will be set to undefined.
13429
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
13430
+ * For the list of reserved names please see:
13431
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
13432
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
13433
+ * JSPB instance for transitional soy proto support:
13434
+ * http://goto/soy-param-migration
13435
+ * @return {!Object}
13436
+ */
13437
+ proto.ondewo.nlu.LlmSafetyCategoryStat.prototype.toObject = function(opt_includeInstance) {
13438
+ return proto.ondewo.nlu.LlmSafetyCategoryStat.toObject(opt_includeInstance, this);
13439
+ };
13440
+
13441
+
13442
+ /**
13443
+ * Static version of the {@see toObject} method.
13444
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
13445
+ * the JSPB instance for transitional soy proto support:
13446
+ * http://goto/soy-param-migration
13447
+ * @param {!proto.ondewo.nlu.LlmSafetyCategoryStat} msg The msg instance to transform.
13448
+ * @return {!Object}
13449
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13450
+ */
13451
+ proto.ondewo.nlu.LlmSafetyCategoryStat.toObject = function(includeInstance, msg) {
13452
+ var f, obj = {
13453
+ category: jspb.Message.getFieldWithDefault(msg, 1, ""),
13454
+ count: jspb.Message.getFieldWithDefault(msg, 2, 0),
13455
+ rate: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0)
13456
+ };
13457
+
13458
+ if (includeInstance) {
13459
+ obj.$jspbMessageInstance = msg;
13460
+ }
13461
+ return obj;
13462
+ };
13463
+ }
13464
+
13465
+
13466
+ /**
13467
+ * Deserializes binary data (in protobuf wire format).
13468
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
13469
+ * @return {!proto.ondewo.nlu.LlmSafetyCategoryStat}
13470
+ */
13471
+ proto.ondewo.nlu.LlmSafetyCategoryStat.deserializeBinary = function(bytes) {
13472
+ var reader = new jspb.BinaryReader(bytes);
13473
+ var msg = new proto.ondewo.nlu.LlmSafetyCategoryStat;
13474
+ return proto.ondewo.nlu.LlmSafetyCategoryStat.deserializeBinaryFromReader(msg, reader);
13475
+ };
13476
+
13477
+
13478
+ /**
13479
+ * Deserializes binary data (in protobuf wire format) from the
13480
+ * given reader into the given message object.
13481
+ * @param {!proto.ondewo.nlu.LlmSafetyCategoryStat} msg The message object to deserialize into.
13482
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
13483
+ * @return {!proto.ondewo.nlu.LlmSafetyCategoryStat}
13484
+ */
13485
+ proto.ondewo.nlu.LlmSafetyCategoryStat.deserializeBinaryFromReader = function(msg, reader) {
13486
+ while (reader.nextField()) {
13487
+ if (reader.isEndGroup()) {
13488
+ break;
13489
+ }
13490
+ var field = reader.getFieldNumber();
13491
+ switch (field) {
13492
+ case 1:
13493
+ var value = /** @type {string} */ (reader.readString());
13494
+ msg.setCategory(value);
13495
+ break;
13496
+ case 2:
13497
+ var value = /** @type {number} */ (reader.readInt64());
13498
+ msg.setCount(value);
13499
+ break;
13500
+ case 3:
13501
+ var value = /** @type {number} */ (reader.readDouble());
13502
+ msg.setRate(value);
13503
+ break;
13504
+ default:
13505
+ reader.skipField();
13506
+ break;
13507
+ }
13508
+ }
13509
+ return msg;
13510
+ };
13511
+
13512
+
13513
+ /**
13514
+ * Serializes the message to binary data (in protobuf wire format).
13515
+ * @return {!Uint8Array}
13516
+ */
13517
+ proto.ondewo.nlu.LlmSafetyCategoryStat.prototype.serializeBinary = function() {
13518
+ var writer = new jspb.BinaryWriter();
13519
+ proto.ondewo.nlu.LlmSafetyCategoryStat.serializeBinaryToWriter(this, writer);
13520
+ return writer.getResultBuffer();
13521
+ };
13522
+
13523
+
13524
+ /**
13525
+ * Serializes the given message to binary data (in protobuf wire
13526
+ * format), writing to the given BinaryWriter.
13527
+ * @param {!proto.ondewo.nlu.LlmSafetyCategoryStat} message
13528
+ * @param {!jspb.BinaryWriter} writer
13529
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13530
+ */
13531
+ proto.ondewo.nlu.LlmSafetyCategoryStat.serializeBinaryToWriter = function(message, writer) {
13532
+ var f = undefined;
13533
+ f = message.getCategory();
13534
+ if (f.length > 0) {
13535
+ writer.writeString(
13536
+ 1,
13537
+ f
13538
+ );
13539
+ }
13540
+ f = message.getCount();
13541
+ if (f !== 0) {
13542
+ writer.writeInt64(
13543
+ 2,
13544
+ f
13545
+ );
13546
+ }
13547
+ f = message.getRate();
13548
+ if (f !== 0.0) {
13549
+ writer.writeDouble(
13550
+ 3,
13551
+ f
13552
+ );
13553
+ }
13554
+ };
13555
+
13556
+
13557
+ /**
13558
+ * optional string category = 1;
13559
+ * @return {string}
13560
+ */
13561
+ proto.ondewo.nlu.LlmSafetyCategoryStat.prototype.getCategory = function() {
13562
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
13563
+ };
13564
+
13565
+
13566
+ /**
13567
+ * @param {string} value
13568
+ * @return {!proto.ondewo.nlu.LlmSafetyCategoryStat} returns this
13569
+ */
13570
+ proto.ondewo.nlu.LlmSafetyCategoryStat.prototype.setCategory = function(value) {
13571
+ return jspb.Message.setProto3StringField(this, 1, value);
13572
+ };
13573
+
13574
+
13575
+ /**
13576
+ * optional int64 count = 2;
13577
+ * @return {number}
13578
+ */
13579
+ proto.ondewo.nlu.LlmSafetyCategoryStat.prototype.getCount = function() {
13580
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
13581
+ };
13582
+
13583
+
13584
+ /**
13585
+ * @param {number} value
13586
+ * @return {!proto.ondewo.nlu.LlmSafetyCategoryStat} returns this
13587
+ */
13588
+ proto.ondewo.nlu.LlmSafetyCategoryStat.prototype.setCount = function(value) {
13589
+ return jspb.Message.setProto3IntField(this, 2, value);
13590
+ };
13591
+
13592
+
13593
+ /**
13594
+ * optional double rate = 3;
13595
+ * @return {number}
13596
+ */
13597
+ proto.ondewo.nlu.LlmSafetyCategoryStat.prototype.getRate = function() {
13598
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
13599
+ };
13600
+
13601
+
13602
+ /**
13603
+ * @param {number} value
13604
+ * @return {!proto.ondewo.nlu.LlmSafetyCategoryStat} returns this
13605
+ */
13606
+ proto.ondewo.nlu.LlmSafetyCategoryStat.prototype.setRate = function(value) {
13607
+ return jspb.Message.setProto3FloatField(this, 3, value);
13608
+ };
13609
+
13610
+
13611
+
13612
+ /**
13613
+ * List of repeated fields within this message type.
13614
+ * @private {!Array<number>}
13615
+ * @const
13616
+ */
13617
+ proto.ondewo.nlu.LlmSafetyStats.repeatedFields_ = [4];
13618
+
13619
+
13620
+
13621
+ if (jspb.Message.GENERATE_TO_OBJECT) {
13622
+ /**
13623
+ * Creates an object representation of this proto.
13624
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
13625
+ * Optional fields that are not set will be set to undefined.
13626
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
13627
+ * For the list of reserved names please see:
13628
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
13629
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
13630
+ * JSPB instance for transitional soy proto support:
13631
+ * http://goto/soy-param-migration
13632
+ * @return {!Object}
13633
+ */
13634
+ proto.ondewo.nlu.LlmSafetyStats.prototype.toObject = function(opt_includeInstance) {
13635
+ return proto.ondewo.nlu.LlmSafetyStats.toObject(opt_includeInstance, this);
13636
+ };
13637
+
13638
+
13639
+ /**
13640
+ * Static version of the {@see toObject} method.
13641
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
13642
+ * the JSPB instance for transitional soy proto support:
13643
+ * http://goto/soy-param-migration
13644
+ * @param {!proto.ondewo.nlu.LlmSafetyStats} msg The msg instance to transform.
13645
+ * @return {!Object}
13646
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13647
+ */
13648
+ proto.ondewo.nlu.LlmSafetyStats.toObject = function(includeInstance, msg) {
13649
+ var f, obj = {
13650
+ totalAssessed: jspb.Message.getFieldWithDefault(msg, 1, 0),
13651
+ flaggedCount: jspb.Message.getFieldWithDefault(msg, 2, 0),
13652
+ overallSafetyScore: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
13653
+ categoryStatsList: jspb.Message.toObjectList(msg.getCategoryStatsList(),
13654
+ proto.ondewo.nlu.LlmSafetyCategoryStat.toObject, includeInstance)
13655
+ };
13656
+
13657
+ if (includeInstance) {
13658
+ obj.$jspbMessageInstance = msg;
13659
+ }
13660
+ return obj;
13661
+ };
13662
+ }
13663
+
13664
+
13665
+ /**
13666
+ * Deserializes binary data (in protobuf wire format).
13667
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
13668
+ * @return {!proto.ondewo.nlu.LlmSafetyStats}
13669
+ */
13670
+ proto.ondewo.nlu.LlmSafetyStats.deserializeBinary = function(bytes) {
13671
+ var reader = new jspb.BinaryReader(bytes);
13672
+ var msg = new proto.ondewo.nlu.LlmSafetyStats;
13673
+ return proto.ondewo.nlu.LlmSafetyStats.deserializeBinaryFromReader(msg, reader);
13674
+ };
13675
+
13676
+
13677
+ /**
13678
+ * Deserializes binary data (in protobuf wire format) from the
13679
+ * given reader into the given message object.
13680
+ * @param {!proto.ondewo.nlu.LlmSafetyStats} msg The message object to deserialize into.
13681
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
13682
+ * @return {!proto.ondewo.nlu.LlmSafetyStats}
13683
+ */
13684
+ proto.ondewo.nlu.LlmSafetyStats.deserializeBinaryFromReader = function(msg, reader) {
13685
+ while (reader.nextField()) {
13686
+ if (reader.isEndGroup()) {
13687
+ break;
13688
+ }
13689
+ var field = reader.getFieldNumber();
13690
+ switch (field) {
13691
+ case 1:
13692
+ var value = /** @type {number} */ (reader.readInt64());
13693
+ msg.setTotalAssessed(value);
13694
+ break;
13695
+ case 2:
13696
+ var value = /** @type {number} */ (reader.readInt64());
13697
+ msg.setFlaggedCount(value);
13698
+ break;
13699
+ case 3:
13700
+ var value = /** @type {number} */ (reader.readDouble());
13701
+ msg.setOverallSafetyScore(value);
13702
+ break;
13703
+ case 4:
13704
+ var value = new proto.ondewo.nlu.LlmSafetyCategoryStat;
13705
+ reader.readMessage(value,proto.ondewo.nlu.LlmSafetyCategoryStat.deserializeBinaryFromReader);
13706
+ msg.addCategoryStats(value);
13707
+ break;
13708
+ default:
13709
+ reader.skipField();
13710
+ break;
13711
+ }
13712
+ }
13713
+ return msg;
13714
+ };
13715
+
13716
+
13717
+ /**
13718
+ * Serializes the message to binary data (in protobuf wire format).
13719
+ * @return {!Uint8Array}
13720
+ */
13721
+ proto.ondewo.nlu.LlmSafetyStats.prototype.serializeBinary = function() {
13722
+ var writer = new jspb.BinaryWriter();
13723
+ proto.ondewo.nlu.LlmSafetyStats.serializeBinaryToWriter(this, writer);
13724
+ return writer.getResultBuffer();
13725
+ };
13726
+
13727
+
13728
+ /**
13729
+ * Serializes the given message to binary data (in protobuf wire
13730
+ * format), writing to the given BinaryWriter.
13731
+ * @param {!proto.ondewo.nlu.LlmSafetyStats} message
13732
+ * @param {!jspb.BinaryWriter} writer
13733
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13734
+ */
13735
+ proto.ondewo.nlu.LlmSafetyStats.serializeBinaryToWriter = function(message, writer) {
13736
+ var f = undefined;
13737
+ f = message.getTotalAssessed();
13738
+ if (f !== 0) {
13739
+ writer.writeInt64(
13740
+ 1,
13741
+ f
13742
+ );
13743
+ }
13744
+ f = message.getFlaggedCount();
13745
+ if (f !== 0) {
13746
+ writer.writeInt64(
13747
+ 2,
13748
+ f
13749
+ );
13750
+ }
13751
+ f = message.getOverallSafetyScore();
13752
+ if (f !== 0.0) {
13753
+ writer.writeDouble(
13754
+ 3,
13755
+ f
13756
+ );
13757
+ }
13758
+ f = message.getCategoryStatsList();
13759
+ if (f.length > 0) {
13760
+ writer.writeRepeatedMessage(
13761
+ 4,
13762
+ f,
13763
+ proto.ondewo.nlu.LlmSafetyCategoryStat.serializeBinaryToWriter
13764
+ );
13765
+ }
13766
+ };
13767
+
13768
+
13769
+ /**
13770
+ * optional int64 total_assessed = 1;
13771
+ * @return {number}
13772
+ */
13773
+ proto.ondewo.nlu.LlmSafetyStats.prototype.getTotalAssessed = function() {
13774
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
13775
+ };
13776
+
13777
+
13778
+ /**
13779
+ * @param {number} value
13780
+ * @return {!proto.ondewo.nlu.LlmSafetyStats} returns this
13781
+ */
13782
+ proto.ondewo.nlu.LlmSafetyStats.prototype.setTotalAssessed = function(value) {
13783
+ return jspb.Message.setProto3IntField(this, 1, value);
13784
+ };
13785
+
13786
+
13787
+ /**
13788
+ * optional int64 flagged_count = 2;
13789
+ * @return {number}
13790
+ */
13791
+ proto.ondewo.nlu.LlmSafetyStats.prototype.getFlaggedCount = function() {
13792
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
13793
+ };
13794
+
13795
+
13796
+ /**
13797
+ * @param {number} value
13798
+ * @return {!proto.ondewo.nlu.LlmSafetyStats} returns this
13799
+ */
13800
+ proto.ondewo.nlu.LlmSafetyStats.prototype.setFlaggedCount = function(value) {
13801
+ return jspb.Message.setProto3IntField(this, 2, value);
13802
+ };
13803
+
13804
+
13805
+ /**
13806
+ * optional double overall_safety_score = 3;
13807
+ * @return {number}
13808
+ */
13809
+ proto.ondewo.nlu.LlmSafetyStats.prototype.getOverallSafetyScore = function() {
13810
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
13811
+ };
13812
+
13813
+
13814
+ /**
13815
+ * @param {number} value
13816
+ * @return {!proto.ondewo.nlu.LlmSafetyStats} returns this
13817
+ */
13818
+ proto.ondewo.nlu.LlmSafetyStats.prototype.setOverallSafetyScore = function(value) {
13819
+ return jspb.Message.setProto3FloatField(this, 3, value);
13820
+ };
13821
+
13822
+
13823
+ /**
13824
+ * repeated LlmSafetyCategoryStat category_stats = 4;
13825
+ * @return {!Array<!proto.ondewo.nlu.LlmSafetyCategoryStat>}
13826
+ */
13827
+ proto.ondewo.nlu.LlmSafetyStats.prototype.getCategoryStatsList = function() {
13828
+ return /** @type{!Array<!proto.ondewo.nlu.LlmSafetyCategoryStat>} */ (
13829
+ jspb.Message.getRepeatedWrapperField(this, proto.ondewo.nlu.LlmSafetyCategoryStat, 4));
13830
+ };
13831
+
13832
+
13833
+ /**
13834
+ * @param {!Array<!proto.ondewo.nlu.LlmSafetyCategoryStat>} value
13835
+ * @return {!proto.ondewo.nlu.LlmSafetyStats} returns this
13836
+ */
13837
+ proto.ondewo.nlu.LlmSafetyStats.prototype.setCategoryStatsList = function(value) {
13838
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
13839
+ };
13840
+
13841
+
13842
+ /**
13843
+ * @param {!proto.ondewo.nlu.LlmSafetyCategoryStat=} opt_value
13844
+ * @param {number=} opt_index
13845
+ * @return {!proto.ondewo.nlu.LlmSafetyCategoryStat}
13846
+ */
13847
+ proto.ondewo.nlu.LlmSafetyStats.prototype.addCategoryStats = function(opt_value, opt_index) {
13848
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.ondewo.nlu.LlmSafetyCategoryStat, opt_index);
13849
+ };
13850
+
13851
+
13852
+ /**
13853
+ * Clears the list making it empty but non-null.
13854
+ * @return {!proto.ondewo.nlu.LlmSafetyStats} returns this
13855
+ */
13856
+ proto.ondewo.nlu.LlmSafetyStats.prototype.clearCategoryStatsList = function() {
13857
+ return this.setCategoryStatsList([]);
13858
+ };
13859
+
13860
+
12146
13861
 
12147
13862
 
12148
13863
 
@@ -36335,6 +38050,15 @@ proto.ondewo.nlu.ReasoningEffort = {
36335
38050
  REASONING_EFFORT_HIGH: 4
36336
38051
  };
36337
38052
 
38053
+ /**
38054
+ * @enum {number}
38055
+ */
38056
+ proto.ondewo.nlu.LlmSafetyLocation = {
38057
+ LLM_SAFETY_LOCATION_UNSPECIFIED: 0,
38058
+ LLM_SAFETY_LOCATION_INPUT: 1,
38059
+ LLM_SAFETY_LOCATION_OUTPUT: 2
38060
+ };
38061
+
36338
38062
  /**
36339
38063
  * @enum {number}
36340
38064
  */