@fonoster/sdk 0.13.4 → 0.13.7

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.
@@ -29,6 +29,12 @@ goog.exportSymbol('proto.fonoster.applications.v1beta2.CreateApplicationRequest'
29
29
  goog.exportSymbol('proto.fonoster.applications.v1beta2.CreateApplicationResponse', null, global);
30
30
  goog.exportSymbol('proto.fonoster.applications.v1beta2.DeleteApplicationRequest', null, global);
31
31
  goog.exportSymbol('proto.fonoster.applications.v1beta2.DeleteApplicationResponse', null, global);
32
+ goog.exportSymbol('proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest', null, global);
33
+ goog.exportSymbol('proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse', null, global);
34
+ goog.exportSymbol('proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ExpectedTextType', null, global);
35
+ goog.exportSymbol('proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport', null, global);
36
+ goog.exportSymbol('proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport', null, global);
37
+ goog.exportSymbol('proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport', null, global);
32
38
  goog.exportSymbol('proto.fonoster.applications.v1beta2.GetApplicationRequest', null, global);
33
39
  goog.exportSymbol('proto.fonoster.applications.v1beta2.ListApplicationsRequest', null, global);
34
40
  goog.exportSymbol('proto.fonoster.applications.v1beta2.ListApplicationsResponse', null, global);
@@ -266,6 +272,111 @@ if (goog.DEBUG && !COMPILED) {
266
272
  */
267
273
  proto.fonoster.applications.v1beta2.DeleteApplicationResponse.displayName = 'proto.fonoster.applications.v1beta2.DeleteApplicationResponse';
268
274
  }
275
+ /**
276
+ * Generated by JsPbCodeGenerator.
277
+ * @param {Array=} opt_data Optional initial data array, typically from a
278
+ * server response, or constructed directly in Javascript. The array is used
279
+ * in place and becomes part of the constructed object. It is not cloned.
280
+ * If no data is provided, the constructed object will be empty, but still
281
+ * valid.
282
+ * @extends {jspb.Message}
283
+ * @constructor
284
+ */
285
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest = function(opt_data) {
286
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
287
+ };
288
+ goog.inherits(proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest, jspb.Message);
289
+ if (goog.DEBUG && !COMPILED) {
290
+ /**
291
+ * @public
292
+ * @override
293
+ */
294
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest.displayName = 'proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest';
295
+ }
296
+ /**
297
+ * Generated by JsPbCodeGenerator.
298
+ * @param {Array=} opt_data Optional initial data array, typically from a
299
+ * server response, or constructed directly in Javascript. The array is used
300
+ * in place and becomes part of the constructed object. It is not cloned.
301
+ * If no data is provided, the constructed object will be empty, but still
302
+ * valid.
303
+ * @extends {jspb.Message}
304
+ * @constructor
305
+ */
306
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse = function(opt_data) {
307
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.repeatedFields_, null);
308
+ };
309
+ goog.inherits(proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse, jspb.Message);
310
+ if (goog.DEBUG && !COMPILED) {
311
+ /**
312
+ * @public
313
+ * @override
314
+ */
315
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.displayName = 'proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse';
316
+ }
317
+ /**
318
+ * Generated by JsPbCodeGenerator.
319
+ * @param {Array=} opt_data Optional initial data array, typically from a
320
+ * server response, or constructed directly in Javascript. The array is used
321
+ * in place and becomes part of the constructed object. It is not cloned.
322
+ * If no data is provided, the constructed object will be empty, but still
323
+ * valid.
324
+ * @extends {jspb.Message}
325
+ * @constructor
326
+ */
327
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport = function(opt_data) {
328
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
329
+ };
330
+ goog.inherits(proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport, jspb.Message);
331
+ if (goog.DEBUG && !COMPILED) {
332
+ /**
333
+ * @public
334
+ * @override
335
+ */
336
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.displayName = 'proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport';
337
+ }
338
+ /**
339
+ * Generated by JsPbCodeGenerator.
340
+ * @param {Array=} opt_data Optional initial data array, typically from a
341
+ * server response, or constructed directly in Javascript. The array is used
342
+ * in place and becomes part of the constructed object. It is not cloned.
343
+ * If no data is provided, the constructed object will be empty, but still
344
+ * valid.
345
+ * @extends {jspb.Message}
346
+ * @constructor
347
+ */
348
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport = function(opt_data) {
349
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.repeatedFields_, null);
350
+ };
351
+ goog.inherits(proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport, jspb.Message);
352
+ if (goog.DEBUG && !COMPILED) {
353
+ /**
354
+ * @public
355
+ * @override
356
+ */
357
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.displayName = 'proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport';
358
+ }
359
+ /**
360
+ * Generated by JsPbCodeGenerator.
361
+ * @param {Array=} opt_data Optional initial data array, typically from a
362
+ * server response, or constructed directly in Javascript. The array is used
363
+ * in place and becomes part of the constructed object. It is not cloned.
364
+ * If no data is provided, the constructed object will be empty, but still
365
+ * valid.
366
+ * @extends {jspb.Message}
367
+ * @constructor
368
+ */
369
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport = function(opt_data) {
370
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport.repeatedFields_, null);
371
+ };
372
+ goog.inherits(proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport, jspb.Message);
373
+ if (goog.DEBUG && !COMPILED) {
374
+ /**
375
+ * @public
376
+ * @override
377
+ */
378
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport.displayName = 'proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport';
379
+ }
269
380
 
270
381
 
271
382
 
@@ -2647,6 +2758,1207 @@ proto.fonoster.applications.v1beta2.DeleteApplicationResponse.prototype.setRef =
2647
2758
  };
2648
2759
 
2649
2760
 
2761
+
2762
+
2763
+
2764
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2765
+ /**
2766
+ * Creates an object representation of this proto.
2767
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2768
+ * Optional fields that are not set will be set to undefined.
2769
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2770
+ * For the list of reserved names please see:
2771
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2772
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2773
+ * JSPB instance for transitional soy proto support:
2774
+ * http://goto/soy-param-migration
2775
+ * @return {!Object}
2776
+ */
2777
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest.prototype.toObject = function(opt_includeInstance) {
2778
+ return proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest.toObject(opt_includeInstance, this);
2779
+ };
2780
+
2781
+
2782
+ /**
2783
+ * Static version of the {@see toObject} method.
2784
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2785
+ * the JSPB instance for transitional soy proto support:
2786
+ * http://goto/soy-param-migration
2787
+ * @param {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest} msg The msg instance to transform.
2788
+ * @return {!Object}
2789
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2790
+ */
2791
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest.toObject = function(includeInstance, msg) {
2792
+ var f, obj = {
2793
+ intelligence: (f = msg.getIntelligence()) && proto.fonoster.applications.v1beta2.ProductContainer.toObject(includeInstance, f)
2794
+ };
2795
+
2796
+ if (includeInstance) {
2797
+ obj.$jspbMessageInstance = msg;
2798
+ }
2799
+ return obj;
2800
+ };
2801
+ }
2802
+
2803
+
2804
+ /**
2805
+ * Deserializes binary data (in protobuf wire format).
2806
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2807
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest}
2808
+ */
2809
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest.deserializeBinary = function(bytes) {
2810
+ var reader = new jspb.BinaryReader(bytes);
2811
+ var msg = new proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest;
2812
+ return proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest.deserializeBinaryFromReader(msg, reader);
2813
+ };
2814
+
2815
+
2816
+ /**
2817
+ * Deserializes binary data (in protobuf wire format) from the
2818
+ * given reader into the given message object.
2819
+ * @param {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest} msg The message object to deserialize into.
2820
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2821
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest}
2822
+ */
2823
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest.deserializeBinaryFromReader = function(msg, reader) {
2824
+ while (reader.nextField()) {
2825
+ if (reader.isEndGroup()) {
2826
+ break;
2827
+ }
2828
+ var field = reader.getFieldNumber();
2829
+ switch (field) {
2830
+ case 1:
2831
+ var value = new proto.fonoster.applications.v1beta2.ProductContainer;
2832
+ reader.readMessage(value,proto.fonoster.applications.v1beta2.ProductContainer.deserializeBinaryFromReader);
2833
+ msg.setIntelligence(value);
2834
+ break;
2835
+ default:
2836
+ reader.skipField();
2837
+ break;
2838
+ }
2839
+ }
2840
+ return msg;
2841
+ };
2842
+
2843
+
2844
+ /**
2845
+ * Serializes the message to binary data (in protobuf wire format).
2846
+ * @return {!Uint8Array}
2847
+ */
2848
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest.prototype.serializeBinary = function() {
2849
+ var writer = new jspb.BinaryWriter();
2850
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest.serializeBinaryToWriter(this, writer);
2851
+ return writer.getResultBuffer();
2852
+ };
2853
+
2854
+
2855
+ /**
2856
+ * Serializes the given message to binary data (in protobuf wire
2857
+ * format), writing to the given BinaryWriter.
2858
+ * @param {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest} message
2859
+ * @param {!jspb.BinaryWriter} writer
2860
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2861
+ */
2862
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest.serializeBinaryToWriter = function(message, writer) {
2863
+ var f = undefined;
2864
+ f = message.getIntelligence();
2865
+ if (f != null) {
2866
+ writer.writeMessage(
2867
+ 1,
2868
+ f,
2869
+ proto.fonoster.applications.v1beta2.ProductContainer.serializeBinaryToWriter
2870
+ );
2871
+ }
2872
+ };
2873
+
2874
+
2875
+ /**
2876
+ * optional ProductContainer intelligence = 1;
2877
+ * @return {?proto.fonoster.applications.v1beta2.ProductContainer}
2878
+ */
2879
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest.prototype.getIntelligence = function() {
2880
+ return /** @type{?proto.fonoster.applications.v1beta2.ProductContainer} */ (
2881
+ jspb.Message.getWrapperField(this, proto.fonoster.applications.v1beta2.ProductContainer, 1));
2882
+ };
2883
+
2884
+
2885
+ /**
2886
+ * @param {?proto.fonoster.applications.v1beta2.ProductContainer|undefined} value
2887
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest} returns this
2888
+ */
2889
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest.prototype.setIntelligence = function(value) {
2890
+ return jspb.Message.setWrapperField(this, 1, value);
2891
+ };
2892
+
2893
+
2894
+ /**
2895
+ * Clears the message field making it undefined.
2896
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest} returns this
2897
+ */
2898
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest.prototype.clearIntelligence = function() {
2899
+ return this.setIntelligence(undefined);
2900
+ };
2901
+
2902
+
2903
+ /**
2904
+ * Returns whether this field is set.
2905
+ * @return {boolean}
2906
+ */
2907
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceRequest.prototype.hasIntelligence = function() {
2908
+ return jspb.Message.getField(this, 1) != null;
2909
+ };
2910
+
2911
+
2912
+
2913
+ /**
2914
+ * List of repeated fields within this message type.
2915
+ * @private {!Array<number>}
2916
+ * @const
2917
+ */
2918
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.repeatedFields_ = [1];
2919
+
2920
+
2921
+
2922
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2923
+ /**
2924
+ * Creates an object representation of this proto.
2925
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2926
+ * Optional fields that are not set will be set to undefined.
2927
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2928
+ * For the list of reserved names please see:
2929
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2930
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2931
+ * JSPB instance for transitional soy proto support:
2932
+ * http://goto/soy-param-migration
2933
+ * @return {!Object}
2934
+ */
2935
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.prototype.toObject = function(opt_includeInstance) {
2936
+ return proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.toObject(opt_includeInstance, this);
2937
+ };
2938
+
2939
+
2940
+ /**
2941
+ * Static version of the {@see toObject} method.
2942
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2943
+ * the JSPB instance for transitional soy proto support:
2944
+ * http://goto/soy-param-migration
2945
+ * @param {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse} msg The msg instance to transform.
2946
+ * @return {!Object}
2947
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2948
+ */
2949
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.toObject = function(includeInstance, msg) {
2950
+ var f, obj = {
2951
+ resultsList: jspb.Message.toObjectList(msg.getResultsList(),
2952
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport.toObject, includeInstance)
2953
+ };
2954
+
2955
+ if (includeInstance) {
2956
+ obj.$jspbMessageInstance = msg;
2957
+ }
2958
+ return obj;
2959
+ };
2960
+ }
2961
+
2962
+
2963
+ /**
2964
+ * Deserializes binary data (in protobuf wire format).
2965
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2966
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse}
2967
+ */
2968
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.deserializeBinary = function(bytes) {
2969
+ var reader = new jspb.BinaryReader(bytes);
2970
+ var msg = new proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse;
2971
+ return proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.deserializeBinaryFromReader(msg, reader);
2972
+ };
2973
+
2974
+
2975
+ /**
2976
+ * Deserializes binary data (in protobuf wire format) from the
2977
+ * given reader into the given message object.
2978
+ * @param {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse} msg The message object to deserialize into.
2979
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2980
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse}
2981
+ */
2982
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.deserializeBinaryFromReader = function(msg, reader) {
2983
+ while (reader.nextField()) {
2984
+ if (reader.isEndGroup()) {
2985
+ break;
2986
+ }
2987
+ var field = reader.getFieldNumber();
2988
+ switch (field) {
2989
+ case 1:
2990
+ var value = new proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport;
2991
+ reader.readMessage(value,proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport.deserializeBinaryFromReader);
2992
+ msg.addResults(value);
2993
+ break;
2994
+ default:
2995
+ reader.skipField();
2996
+ break;
2997
+ }
2998
+ }
2999
+ return msg;
3000
+ };
3001
+
3002
+
3003
+ /**
3004
+ * Serializes the message to binary data (in protobuf wire format).
3005
+ * @return {!Uint8Array}
3006
+ */
3007
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.prototype.serializeBinary = function() {
3008
+ var writer = new jspb.BinaryWriter();
3009
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.serializeBinaryToWriter(this, writer);
3010
+ return writer.getResultBuffer();
3011
+ };
3012
+
3013
+
3014
+ /**
3015
+ * Serializes the given message to binary data (in protobuf wire
3016
+ * format), writing to the given BinaryWriter.
3017
+ * @param {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse} message
3018
+ * @param {!jspb.BinaryWriter} writer
3019
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3020
+ */
3021
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.serializeBinaryToWriter = function(message, writer) {
3022
+ var f = undefined;
3023
+ f = message.getResultsList();
3024
+ if (f.length > 0) {
3025
+ writer.writeRepeatedMessage(
3026
+ 1,
3027
+ f,
3028
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport.serializeBinaryToWriter
3029
+ );
3030
+ }
3031
+ };
3032
+
3033
+
3034
+ /**
3035
+ * @enum {number}
3036
+ */
3037
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ExpectedTextType = {
3038
+ EXACT: 0,
3039
+ SIMILAR: 1
3040
+ };
3041
+
3042
+
3043
+
3044
+
3045
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3046
+ /**
3047
+ * Creates an object representation of this proto.
3048
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3049
+ * Optional fields that are not set will be set to undefined.
3050
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3051
+ * For the list of reserved names please see:
3052
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3053
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3054
+ * JSPB instance for transitional soy proto support:
3055
+ * http://goto/soy-param-migration
3056
+ * @return {!Object}
3057
+ */
3058
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.prototype.toObject = function(opt_includeInstance) {
3059
+ return proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.toObject(opt_includeInstance, this);
3060
+ };
3061
+
3062
+
3063
+ /**
3064
+ * Static version of the {@see toObject} method.
3065
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3066
+ * the JSPB instance for transitional soy proto support:
3067
+ * http://goto/soy-param-migration
3068
+ * @param {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport} msg The msg instance to transform.
3069
+ * @return {!Object}
3070
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3071
+ */
3072
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.toObject = function(includeInstance, msg) {
3073
+ var f, obj = {
3074
+ expectedTool: jspb.Message.getFieldWithDefault(msg, 1, ""),
3075
+ actualTool: jspb.Message.getFieldWithDefault(msg, 2, ""),
3076
+ passed: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
3077
+ expectedParameters: (f = msg.getExpectedParameters()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
3078
+ actualParameters: (f = msg.getActualParameters()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
3079
+ errorMessage: jspb.Message.getFieldWithDefault(msg, 6, "")
3080
+ };
3081
+
3082
+ if (includeInstance) {
3083
+ obj.$jspbMessageInstance = msg;
3084
+ }
3085
+ return obj;
3086
+ };
3087
+ }
3088
+
3089
+
3090
+ /**
3091
+ * Deserializes binary data (in protobuf wire format).
3092
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3093
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport}
3094
+ */
3095
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.deserializeBinary = function(bytes) {
3096
+ var reader = new jspb.BinaryReader(bytes);
3097
+ var msg = new proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport;
3098
+ return proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.deserializeBinaryFromReader(msg, reader);
3099
+ };
3100
+
3101
+
3102
+ /**
3103
+ * Deserializes binary data (in protobuf wire format) from the
3104
+ * given reader into the given message object.
3105
+ * @param {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport} msg The message object to deserialize into.
3106
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3107
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport}
3108
+ */
3109
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.deserializeBinaryFromReader = function(msg, reader) {
3110
+ while (reader.nextField()) {
3111
+ if (reader.isEndGroup()) {
3112
+ break;
3113
+ }
3114
+ var field = reader.getFieldNumber();
3115
+ switch (field) {
3116
+ case 1:
3117
+ var value = /** @type {string} */ (reader.readString());
3118
+ msg.setExpectedTool(value);
3119
+ break;
3120
+ case 2:
3121
+ var value = /** @type {string} */ (reader.readString());
3122
+ msg.setActualTool(value);
3123
+ break;
3124
+ case 3:
3125
+ var value = /** @type {boolean} */ (reader.readBool());
3126
+ msg.setPassed(value);
3127
+ break;
3128
+ case 4:
3129
+ var value = new google_protobuf_struct_pb.Struct;
3130
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
3131
+ msg.setExpectedParameters(value);
3132
+ break;
3133
+ case 5:
3134
+ var value = new google_protobuf_struct_pb.Struct;
3135
+ reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
3136
+ msg.setActualParameters(value);
3137
+ break;
3138
+ case 6:
3139
+ var value = /** @type {string} */ (reader.readString());
3140
+ msg.setErrorMessage(value);
3141
+ break;
3142
+ default:
3143
+ reader.skipField();
3144
+ break;
3145
+ }
3146
+ }
3147
+ return msg;
3148
+ };
3149
+
3150
+
3151
+ /**
3152
+ * Serializes the message to binary data (in protobuf wire format).
3153
+ * @return {!Uint8Array}
3154
+ */
3155
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.prototype.serializeBinary = function() {
3156
+ var writer = new jspb.BinaryWriter();
3157
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.serializeBinaryToWriter(this, writer);
3158
+ return writer.getResultBuffer();
3159
+ };
3160
+
3161
+
3162
+ /**
3163
+ * Serializes the given message to binary data (in protobuf wire
3164
+ * format), writing to the given BinaryWriter.
3165
+ * @param {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport} message
3166
+ * @param {!jspb.BinaryWriter} writer
3167
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3168
+ */
3169
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.serializeBinaryToWriter = function(message, writer) {
3170
+ var f = undefined;
3171
+ f = message.getExpectedTool();
3172
+ if (f.length > 0) {
3173
+ writer.writeString(
3174
+ 1,
3175
+ f
3176
+ );
3177
+ }
3178
+ f = message.getActualTool();
3179
+ if (f.length > 0) {
3180
+ writer.writeString(
3181
+ 2,
3182
+ f
3183
+ );
3184
+ }
3185
+ f = message.getPassed();
3186
+ if (f) {
3187
+ writer.writeBool(
3188
+ 3,
3189
+ f
3190
+ );
3191
+ }
3192
+ f = message.getExpectedParameters();
3193
+ if (f != null) {
3194
+ writer.writeMessage(
3195
+ 4,
3196
+ f,
3197
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
3198
+ );
3199
+ }
3200
+ f = message.getActualParameters();
3201
+ if (f != null) {
3202
+ writer.writeMessage(
3203
+ 5,
3204
+ f,
3205
+ google_protobuf_struct_pb.Struct.serializeBinaryToWriter
3206
+ );
3207
+ }
3208
+ f = message.getErrorMessage();
3209
+ if (f.length > 0) {
3210
+ writer.writeString(
3211
+ 6,
3212
+ f
3213
+ );
3214
+ }
3215
+ };
3216
+
3217
+
3218
+ /**
3219
+ * optional string expected_tool = 1;
3220
+ * @return {string}
3221
+ */
3222
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.prototype.getExpectedTool = function() {
3223
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3224
+ };
3225
+
3226
+
3227
+ /**
3228
+ * @param {string} value
3229
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport} returns this
3230
+ */
3231
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.prototype.setExpectedTool = function(value) {
3232
+ return jspb.Message.setProto3StringField(this, 1, value);
3233
+ };
3234
+
3235
+
3236
+ /**
3237
+ * optional string actual_tool = 2;
3238
+ * @return {string}
3239
+ */
3240
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.prototype.getActualTool = function() {
3241
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3242
+ };
3243
+
3244
+
3245
+ /**
3246
+ * @param {string} value
3247
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport} returns this
3248
+ */
3249
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.prototype.setActualTool = function(value) {
3250
+ return jspb.Message.setProto3StringField(this, 2, value);
3251
+ };
3252
+
3253
+
3254
+ /**
3255
+ * optional bool passed = 3;
3256
+ * @return {boolean}
3257
+ */
3258
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.prototype.getPassed = function() {
3259
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
3260
+ };
3261
+
3262
+
3263
+ /**
3264
+ * @param {boolean} value
3265
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport} returns this
3266
+ */
3267
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.prototype.setPassed = function(value) {
3268
+ return jspb.Message.setProto3BooleanField(this, 3, value);
3269
+ };
3270
+
3271
+
3272
+ /**
3273
+ * optional google.protobuf.Struct expected_parameters = 4;
3274
+ * @return {?proto.google.protobuf.Struct}
3275
+ */
3276
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.prototype.getExpectedParameters = function() {
3277
+ return /** @type{?proto.google.protobuf.Struct} */ (
3278
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 4));
3279
+ };
3280
+
3281
+
3282
+ /**
3283
+ * @param {?proto.google.protobuf.Struct|undefined} value
3284
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport} returns this
3285
+ */
3286
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.prototype.setExpectedParameters = function(value) {
3287
+ return jspb.Message.setWrapperField(this, 4, value);
3288
+ };
3289
+
3290
+
3291
+ /**
3292
+ * Clears the message field making it undefined.
3293
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport} returns this
3294
+ */
3295
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.prototype.clearExpectedParameters = function() {
3296
+ return this.setExpectedParameters(undefined);
3297
+ };
3298
+
3299
+
3300
+ /**
3301
+ * Returns whether this field is set.
3302
+ * @return {boolean}
3303
+ */
3304
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.prototype.hasExpectedParameters = function() {
3305
+ return jspb.Message.getField(this, 4) != null;
3306
+ };
3307
+
3308
+
3309
+ /**
3310
+ * optional google.protobuf.Struct actual_parameters = 5;
3311
+ * @return {?proto.google.protobuf.Struct}
3312
+ */
3313
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.prototype.getActualParameters = function() {
3314
+ return /** @type{?proto.google.protobuf.Struct} */ (
3315
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 5));
3316
+ };
3317
+
3318
+
3319
+ /**
3320
+ * @param {?proto.google.protobuf.Struct|undefined} value
3321
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport} returns this
3322
+ */
3323
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.prototype.setActualParameters = function(value) {
3324
+ return jspb.Message.setWrapperField(this, 5, value);
3325
+ };
3326
+
3327
+
3328
+ /**
3329
+ * Clears the message field making it undefined.
3330
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport} returns this
3331
+ */
3332
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.prototype.clearActualParameters = function() {
3333
+ return this.setActualParameters(undefined);
3334
+ };
3335
+
3336
+
3337
+ /**
3338
+ * Returns whether this field is set.
3339
+ * @return {boolean}
3340
+ */
3341
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.prototype.hasActualParameters = function() {
3342
+ return jspb.Message.getField(this, 5) != null;
3343
+ };
3344
+
3345
+
3346
+ /**
3347
+ * optional string error_message = 6;
3348
+ * @return {string}
3349
+ */
3350
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.prototype.getErrorMessage = function() {
3351
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3352
+ };
3353
+
3354
+
3355
+ /**
3356
+ * @param {string} value
3357
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport} returns this
3358
+ */
3359
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.prototype.setErrorMessage = function(value) {
3360
+ return jspb.Message.setProto3StringField(this, 6, value);
3361
+ };
3362
+
3363
+
3364
+
3365
+ /**
3366
+ * List of repeated fields within this message type.
3367
+ * @private {!Array<number>}
3368
+ * @const
3369
+ */
3370
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.repeatedFields_ = [7];
3371
+
3372
+
3373
+
3374
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3375
+ /**
3376
+ * Creates an object representation of this proto.
3377
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3378
+ * Optional fields that are not set will be set to undefined.
3379
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3380
+ * For the list of reserved names please see:
3381
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3382
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3383
+ * JSPB instance for transitional soy proto support:
3384
+ * http://goto/soy-param-migration
3385
+ * @return {!Object}
3386
+ */
3387
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.prototype.toObject = function(opt_includeInstance) {
3388
+ return proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.toObject(opt_includeInstance, this);
3389
+ };
3390
+
3391
+
3392
+ /**
3393
+ * Static version of the {@see toObject} method.
3394
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3395
+ * the JSPB instance for transitional soy proto support:
3396
+ * http://goto/soy-param-migration
3397
+ * @param {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport} msg The msg instance to transform.
3398
+ * @return {!Object}
3399
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3400
+ */
3401
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.toObject = function(includeInstance, msg) {
3402
+ var f, obj = {
3403
+ humanInput: jspb.Message.getFieldWithDefault(msg, 1, ""),
3404
+ expectedResponse: jspb.Message.getFieldWithDefault(msg, 2, ""),
3405
+ aiResponse: jspb.Message.getFieldWithDefault(msg, 3, ""),
3406
+ evaluationType: jspb.Message.getFieldWithDefault(msg, 4, 0),
3407
+ passed: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
3408
+ errorMessage: jspb.Message.getFieldWithDefault(msg, 6, ""),
3409
+ toolEvaluationsList: jspb.Message.toObjectList(msg.getToolEvaluationsList(),
3410
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.toObject, includeInstance)
3411
+ };
3412
+
3413
+ if (includeInstance) {
3414
+ obj.$jspbMessageInstance = msg;
3415
+ }
3416
+ return obj;
3417
+ };
3418
+ }
3419
+
3420
+
3421
+ /**
3422
+ * Deserializes binary data (in protobuf wire format).
3423
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3424
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport}
3425
+ */
3426
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.deserializeBinary = function(bytes) {
3427
+ var reader = new jspb.BinaryReader(bytes);
3428
+ var msg = new proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport;
3429
+ return proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.deserializeBinaryFromReader(msg, reader);
3430
+ };
3431
+
3432
+
3433
+ /**
3434
+ * Deserializes binary data (in protobuf wire format) from the
3435
+ * given reader into the given message object.
3436
+ * @param {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport} msg The message object to deserialize into.
3437
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3438
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport}
3439
+ */
3440
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.deserializeBinaryFromReader = function(msg, reader) {
3441
+ while (reader.nextField()) {
3442
+ if (reader.isEndGroup()) {
3443
+ break;
3444
+ }
3445
+ var field = reader.getFieldNumber();
3446
+ switch (field) {
3447
+ case 1:
3448
+ var value = /** @type {string} */ (reader.readString());
3449
+ msg.setHumanInput(value);
3450
+ break;
3451
+ case 2:
3452
+ var value = /** @type {string} */ (reader.readString());
3453
+ msg.setExpectedResponse(value);
3454
+ break;
3455
+ case 3:
3456
+ var value = /** @type {string} */ (reader.readString());
3457
+ msg.setAiResponse(value);
3458
+ break;
3459
+ case 4:
3460
+ var value = /** @type {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ExpectedTextType} */ (reader.readEnum());
3461
+ msg.setEvaluationType(value);
3462
+ break;
3463
+ case 5:
3464
+ var value = /** @type {boolean} */ (reader.readBool());
3465
+ msg.setPassed(value);
3466
+ break;
3467
+ case 6:
3468
+ var value = /** @type {string} */ (reader.readString());
3469
+ msg.setErrorMessage(value);
3470
+ break;
3471
+ case 7:
3472
+ var value = new proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport;
3473
+ reader.readMessage(value,proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.deserializeBinaryFromReader);
3474
+ msg.addToolEvaluations(value);
3475
+ break;
3476
+ default:
3477
+ reader.skipField();
3478
+ break;
3479
+ }
3480
+ }
3481
+ return msg;
3482
+ };
3483
+
3484
+
3485
+ /**
3486
+ * Serializes the message to binary data (in protobuf wire format).
3487
+ * @return {!Uint8Array}
3488
+ */
3489
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.prototype.serializeBinary = function() {
3490
+ var writer = new jspb.BinaryWriter();
3491
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.serializeBinaryToWriter(this, writer);
3492
+ return writer.getResultBuffer();
3493
+ };
3494
+
3495
+
3496
+ /**
3497
+ * Serializes the given message to binary data (in protobuf wire
3498
+ * format), writing to the given BinaryWriter.
3499
+ * @param {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport} message
3500
+ * @param {!jspb.BinaryWriter} writer
3501
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3502
+ */
3503
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.serializeBinaryToWriter = function(message, writer) {
3504
+ var f = undefined;
3505
+ f = message.getHumanInput();
3506
+ if (f.length > 0) {
3507
+ writer.writeString(
3508
+ 1,
3509
+ f
3510
+ );
3511
+ }
3512
+ f = message.getExpectedResponse();
3513
+ if (f.length > 0) {
3514
+ writer.writeString(
3515
+ 2,
3516
+ f
3517
+ );
3518
+ }
3519
+ f = message.getAiResponse();
3520
+ if (f.length > 0) {
3521
+ writer.writeString(
3522
+ 3,
3523
+ f
3524
+ );
3525
+ }
3526
+ f = message.getEvaluationType();
3527
+ if (f !== 0.0) {
3528
+ writer.writeEnum(
3529
+ 4,
3530
+ f
3531
+ );
3532
+ }
3533
+ f = message.getPassed();
3534
+ if (f) {
3535
+ writer.writeBool(
3536
+ 5,
3537
+ f
3538
+ );
3539
+ }
3540
+ f = message.getErrorMessage();
3541
+ if (f.length > 0) {
3542
+ writer.writeString(
3543
+ 6,
3544
+ f
3545
+ );
3546
+ }
3547
+ f = message.getToolEvaluationsList();
3548
+ if (f.length > 0) {
3549
+ writer.writeRepeatedMessage(
3550
+ 7,
3551
+ f,
3552
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport.serializeBinaryToWriter
3553
+ );
3554
+ }
3555
+ };
3556
+
3557
+
3558
+ /**
3559
+ * optional string human_input = 1;
3560
+ * @return {string}
3561
+ */
3562
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.prototype.getHumanInput = function() {
3563
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3564
+ };
3565
+
3566
+
3567
+ /**
3568
+ * @param {string} value
3569
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport} returns this
3570
+ */
3571
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.prototype.setHumanInput = function(value) {
3572
+ return jspb.Message.setProto3StringField(this, 1, value);
3573
+ };
3574
+
3575
+
3576
+ /**
3577
+ * optional string expected_response = 2;
3578
+ * @return {string}
3579
+ */
3580
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.prototype.getExpectedResponse = function() {
3581
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3582
+ };
3583
+
3584
+
3585
+ /**
3586
+ * @param {string} value
3587
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport} returns this
3588
+ */
3589
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.prototype.setExpectedResponse = function(value) {
3590
+ return jspb.Message.setProto3StringField(this, 2, value);
3591
+ };
3592
+
3593
+
3594
+ /**
3595
+ * optional string ai_response = 3;
3596
+ * @return {string}
3597
+ */
3598
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.prototype.getAiResponse = function() {
3599
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3600
+ };
3601
+
3602
+
3603
+ /**
3604
+ * @param {string} value
3605
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport} returns this
3606
+ */
3607
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.prototype.setAiResponse = function(value) {
3608
+ return jspb.Message.setProto3StringField(this, 3, value);
3609
+ };
3610
+
3611
+
3612
+ /**
3613
+ * optional ExpectedTextType evaluation_type = 4;
3614
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ExpectedTextType}
3615
+ */
3616
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.prototype.getEvaluationType = function() {
3617
+ return /** @type {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ExpectedTextType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
3618
+ };
3619
+
3620
+
3621
+ /**
3622
+ * @param {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ExpectedTextType} value
3623
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport} returns this
3624
+ */
3625
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.prototype.setEvaluationType = function(value) {
3626
+ return jspb.Message.setProto3EnumField(this, 4, value);
3627
+ };
3628
+
3629
+
3630
+ /**
3631
+ * optional bool passed = 5;
3632
+ * @return {boolean}
3633
+ */
3634
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.prototype.getPassed = function() {
3635
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
3636
+ };
3637
+
3638
+
3639
+ /**
3640
+ * @param {boolean} value
3641
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport} returns this
3642
+ */
3643
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.prototype.setPassed = function(value) {
3644
+ return jspb.Message.setProto3BooleanField(this, 5, value);
3645
+ };
3646
+
3647
+
3648
+ /**
3649
+ * optional string error_message = 6;
3650
+ * @return {string}
3651
+ */
3652
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.prototype.getErrorMessage = function() {
3653
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3654
+ };
3655
+
3656
+
3657
+ /**
3658
+ * @param {string} value
3659
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport} returns this
3660
+ */
3661
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.prototype.setErrorMessage = function(value) {
3662
+ return jspb.Message.setProto3StringField(this, 6, value);
3663
+ };
3664
+
3665
+
3666
+ /**
3667
+ * repeated ToolEvaluationReport tool_evaluations = 7;
3668
+ * @return {!Array<!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport>}
3669
+ */
3670
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.prototype.getToolEvaluationsList = function() {
3671
+ return /** @type{!Array<!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport>} */ (
3672
+ jspb.Message.getRepeatedWrapperField(this, proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport, 7));
3673
+ };
3674
+
3675
+
3676
+ /**
3677
+ * @param {!Array<!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport>} value
3678
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport} returns this
3679
+ */
3680
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.prototype.setToolEvaluationsList = function(value) {
3681
+ return jspb.Message.setRepeatedWrapperField(this, 7, value);
3682
+ };
3683
+
3684
+
3685
+ /**
3686
+ * @param {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport=} opt_value
3687
+ * @param {number=} opt_index
3688
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport}
3689
+ */
3690
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.prototype.addToolEvaluations = function(opt_value, opt_index) {
3691
+ return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ToolEvaluationReport, opt_index);
3692
+ };
3693
+
3694
+
3695
+ /**
3696
+ * Clears the list making it empty but non-null.
3697
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport} returns this
3698
+ */
3699
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.prototype.clearToolEvaluationsList = function() {
3700
+ return this.setToolEvaluationsList([]);
3701
+ };
3702
+
3703
+
3704
+
3705
+ /**
3706
+ * List of repeated fields within this message type.
3707
+ * @private {!Array<number>}
3708
+ * @const
3709
+ */
3710
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport.repeatedFields_ = [3];
3711
+
3712
+
3713
+
3714
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3715
+ /**
3716
+ * Creates an object representation of this proto.
3717
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3718
+ * Optional fields that are not set will be set to undefined.
3719
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3720
+ * For the list of reserved names please see:
3721
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3722
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3723
+ * JSPB instance for transitional soy proto support:
3724
+ * http://goto/soy-param-migration
3725
+ * @return {!Object}
3726
+ */
3727
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport.prototype.toObject = function(opt_includeInstance) {
3728
+ return proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport.toObject(opt_includeInstance, this);
3729
+ };
3730
+
3731
+
3732
+ /**
3733
+ * Static version of the {@see toObject} method.
3734
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3735
+ * the JSPB instance for transitional soy proto support:
3736
+ * http://goto/soy-param-migration
3737
+ * @param {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport} msg The msg instance to transform.
3738
+ * @return {!Object}
3739
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3740
+ */
3741
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport.toObject = function(includeInstance, msg) {
3742
+ var f, obj = {
3743
+ scenarioRef: jspb.Message.getFieldWithDefault(msg, 1, ""),
3744
+ overallPassed: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
3745
+ stepsList: jspb.Message.toObjectList(msg.getStepsList(),
3746
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.toObject, includeInstance)
3747
+ };
3748
+
3749
+ if (includeInstance) {
3750
+ obj.$jspbMessageInstance = msg;
3751
+ }
3752
+ return obj;
3753
+ };
3754
+ }
3755
+
3756
+
3757
+ /**
3758
+ * Deserializes binary data (in protobuf wire format).
3759
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3760
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport}
3761
+ */
3762
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport.deserializeBinary = function(bytes) {
3763
+ var reader = new jspb.BinaryReader(bytes);
3764
+ var msg = new proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport;
3765
+ return proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport.deserializeBinaryFromReader(msg, reader);
3766
+ };
3767
+
3768
+
3769
+ /**
3770
+ * Deserializes binary data (in protobuf wire format) from the
3771
+ * given reader into the given message object.
3772
+ * @param {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport} msg The message object to deserialize into.
3773
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3774
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport}
3775
+ */
3776
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport.deserializeBinaryFromReader = function(msg, reader) {
3777
+ while (reader.nextField()) {
3778
+ if (reader.isEndGroup()) {
3779
+ break;
3780
+ }
3781
+ var field = reader.getFieldNumber();
3782
+ switch (field) {
3783
+ case 1:
3784
+ var value = /** @type {string} */ (reader.readString());
3785
+ msg.setScenarioRef(value);
3786
+ break;
3787
+ case 2:
3788
+ var value = /** @type {boolean} */ (reader.readBool());
3789
+ msg.setOverallPassed(value);
3790
+ break;
3791
+ case 3:
3792
+ var value = new proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport;
3793
+ reader.readMessage(value,proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.deserializeBinaryFromReader);
3794
+ msg.addSteps(value);
3795
+ break;
3796
+ default:
3797
+ reader.skipField();
3798
+ break;
3799
+ }
3800
+ }
3801
+ return msg;
3802
+ };
3803
+
3804
+
3805
+ /**
3806
+ * Serializes the message to binary data (in protobuf wire format).
3807
+ * @return {!Uint8Array}
3808
+ */
3809
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport.prototype.serializeBinary = function() {
3810
+ var writer = new jspb.BinaryWriter();
3811
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport.serializeBinaryToWriter(this, writer);
3812
+ return writer.getResultBuffer();
3813
+ };
3814
+
3815
+
3816
+ /**
3817
+ * Serializes the given message to binary data (in protobuf wire
3818
+ * format), writing to the given BinaryWriter.
3819
+ * @param {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport} message
3820
+ * @param {!jspb.BinaryWriter} writer
3821
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3822
+ */
3823
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport.serializeBinaryToWriter = function(message, writer) {
3824
+ var f = undefined;
3825
+ f = message.getScenarioRef();
3826
+ if (f.length > 0) {
3827
+ writer.writeString(
3828
+ 1,
3829
+ f
3830
+ );
3831
+ }
3832
+ f = message.getOverallPassed();
3833
+ if (f) {
3834
+ writer.writeBool(
3835
+ 2,
3836
+ f
3837
+ );
3838
+ }
3839
+ f = message.getStepsList();
3840
+ if (f.length > 0) {
3841
+ writer.writeRepeatedMessage(
3842
+ 3,
3843
+ f,
3844
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport.serializeBinaryToWriter
3845
+ );
3846
+ }
3847
+ };
3848
+
3849
+
3850
+ /**
3851
+ * optional string scenario_ref = 1;
3852
+ * @return {string}
3853
+ */
3854
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport.prototype.getScenarioRef = function() {
3855
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3856
+ };
3857
+
3858
+
3859
+ /**
3860
+ * @param {string} value
3861
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport} returns this
3862
+ */
3863
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport.prototype.setScenarioRef = function(value) {
3864
+ return jspb.Message.setProto3StringField(this, 1, value);
3865
+ };
3866
+
3867
+
3868
+ /**
3869
+ * optional bool overall_passed = 2;
3870
+ * @return {boolean}
3871
+ */
3872
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport.prototype.getOverallPassed = function() {
3873
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
3874
+ };
3875
+
3876
+
3877
+ /**
3878
+ * @param {boolean} value
3879
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport} returns this
3880
+ */
3881
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport.prototype.setOverallPassed = function(value) {
3882
+ return jspb.Message.setProto3BooleanField(this, 2, value);
3883
+ };
3884
+
3885
+
3886
+ /**
3887
+ * repeated StepEvaluationReport steps = 3;
3888
+ * @return {!Array<!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport>}
3889
+ */
3890
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport.prototype.getStepsList = function() {
3891
+ return /** @type{!Array<!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport>} */ (
3892
+ jspb.Message.getRepeatedWrapperField(this, proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport, 3));
3893
+ };
3894
+
3895
+
3896
+ /**
3897
+ * @param {!Array<!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport>} value
3898
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport} returns this
3899
+ */
3900
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport.prototype.setStepsList = function(value) {
3901
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
3902
+ };
3903
+
3904
+
3905
+ /**
3906
+ * @param {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport=} opt_value
3907
+ * @param {number=} opt_index
3908
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport}
3909
+ */
3910
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport.prototype.addSteps = function(opt_value, opt_index) {
3911
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.StepEvaluationReport, opt_index);
3912
+ };
3913
+
3914
+
3915
+ /**
3916
+ * Clears the list making it empty but non-null.
3917
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport} returns this
3918
+ */
3919
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport.prototype.clearStepsList = function() {
3920
+ return this.setStepsList([]);
3921
+ };
3922
+
3923
+
3924
+ /**
3925
+ * repeated ScenarioEvaluationReport results = 1;
3926
+ * @return {!Array<!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport>}
3927
+ */
3928
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.prototype.getResultsList = function() {
3929
+ return /** @type{!Array<!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport>} */ (
3930
+ jspb.Message.getRepeatedWrapperField(this, proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport, 1));
3931
+ };
3932
+
3933
+
3934
+ /**
3935
+ * @param {!Array<!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport>} value
3936
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse} returns this
3937
+ */
3938
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.prototype.setResultsList = function(value) {
3939
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3940
+ };
3941
+
3942
+
3943
+ /**
3944
+ * @param {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport=} opt_value
3945
+ * @param {number=} opt_index
3946
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport}
3947
+ */
3948
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.prototype.addResults = function(opt_value, opt_index) {
3949
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.ScenarioEvaluationReport, opt_index);
3950
+ };
3951
+
3952
+
3953
+ /**
3954
+ * Clears the list making it empty but non-null.
3955
+ * @return {!proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse} returns this
3956
+ */
3957
+ proto.fonoster.applications.v1beta2.EvaluateIntelligenceResponse.prototype.clearResultsList = function() {
3958
+ return this.setResultsList([]);
3959
+ };
3960
+
3961
+
2650
3962
  /**
2651
3963
  * @enum {number}
2652
3964
  */