@miradorlabs/web-grpc 3.45.1 → 3.47.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.
@@ -50,14 +50,29 @@ goog.exportSymbol('proto.gateway.web.v1.AIModelPrice', null, global);
50
50
  goog.exportSymbol('proto.gateway.web.v1.AIModelPriceFilter', null, global);
51
51
  goog.exportSymbol('proto.gateway.web.v1.AIResourceDimension', null, global);
52
52
  goog.exportSymbol('proto.gateway.web.v1.AIResourceRankingGroupBy', null, global);
53
+ goog.exportSymbol('proto.gateway.web.v1.AISessionAgentReliability', null, global);
53
54
  goog.exportSymbol('proto.gateway.web.v1.AISessionComplexity', null, global);
54
55
  goog.exportSymbol('proto.gateway.web.v1.AISessionEvent', null, global);
55
56
  goog.exportSymbol('proto.gateway.web.v1.AISessionEventEnvelope', null, global);
56
57
  goog.exportSymbol('proto.gateway.web.v1.AISessionEventEnvelope.FrameCase', null, global);
58
+ goog.exportSymbol('proto.gateway.web.v1.AISessionEventRef', null, global);
57
59
  goog.exportSymbol('proto.gateway.web.v1.AISessionEventType', null, global);
58
60
  goog.exportSymbol('proto.gateway.web.v1.AISessionFilter', null, global);
61
+ goog.exportSymbol('proto.gateway.web.v1.AISessionGrades', null, global);
62
+ goog.exportSymbol('proto.gateway.web.v1.AISessionInsight', null, global);
63
+ goog.exportSymbol('proto.gateway.web.v1.AISessionInsightActionType', null, global);
64
+ goog.exportSymbol('proto.gateway.web.v1.AISessionInsightCategory', null, global);
65
+ goog.exportSymbol('proto.gateway.web.v1.AISessionInsights', null, global);
66
+ goog.exportSymbol('proto.gateway.web.v1.AISessionOutcome', null, global);
59
67
  goog.exportSymbol('proto.gateway.web.v1.AISessionRef', null, global);
68
+ goog.exportSymbol('proto.gateway.web.v1.AISessionScore', null, global);
69
+ goog.exportSymbol('proto.gateway.web.v1.AISessionScoreComponent', null, global);
70
+ goog.exportSymbol('proto.gateway.web.v1.AISessionScoreComponentKind', null, global);
71
+ goog.exportSymbol('proto.gateway.web.v1.AISessionScoreTrendFilter', null, global);
72
+ goog.exportSymbol('proto.gateway.web.v1.AISessionScoreWeek', null, global);
73
+ goog.exportSymbol('proto.gateway.web.v1.AISessionSteeringLoad', null, global);
60
74
  goog.exportSymbol('proto.gateway.web.v1.AISessionSummary', null, global);
75
+ goog.exportSymbol('proto.gateway.web.v1.AISessionVerification', null, global);
61
76
  goog.exportSymbol('proto.gateway.web.v1.AISessionWorkType', null, global);
62
77
  goog.exportSymbol('proto.gateway.web.v1.AISpendForecastDimension', null, global);
63
78
  goog.exportSymbol('proto.gateway.web.v1.AITokenActivityDimension', null, global);
@@ -84,6 +99,10 @@ goog.exportSymbol('proto.gateway.web.v1.FileTierBucket', null, global);
84
99
  goog.exportSymbol('proto.gateway.web.v1.FileTiers', null, global);
85
100
  goog.exportSymbol('proto.gateway.web.v1.FilesSummary', null, global);
86
101
  goog.exportSymbol('proto.gateway.web.v1.FilesSummaryRequest', null, global);
102
+ goog.exportSymbol('proto.gateway.web.v1.GetSessionAnalysisRequest', null, global);
103
+ goog.exportSymbol('proto.gateway.web.v1.GetSessionAnalysisResponse', null, global);
104
+ goog.exportSymbol('proto.gateway.web.v1.GetSessionScoreTrendRequest', null, global);
105
+ goog.exportSymbol('proto.gateway.web.v1.GetSessionScoreTrendResponse', null, global);
87
106
  goog.exportSymbol('proto.gateway.web.v1.GetSessionSummaryRequest', null, global);
88
107
  goog.exportSymbol('proto.gateway.web.v1.GitActivitiesSnapshotCompleted', null, global);
89
108
  goog.exportSymbol('proto.gateway.web.v1.GitActivityFrame', null, global);
@@ -1993,6 +2012,258 @@ if (goog.DEBUG && !COMPILED) {
1993
2012
  */
1994
2013
  proto.gateway.web.v1.SessionGitBucket.displayName = 'proto.gateway.web.v1.SessionGitBucket';
1995
2014
  }
2015
+ /**
2016
+ * Generated by JsPbCodeGenerator.
2017
+ * @param {Array=} opt_data Optional initial data array, typically from a
2018
+ * server response, or constructed directly in Javascript. The array is used
2019
+ * in place and becomes part of the constructed object. It is not cloned.
2020
+ * If no data is provided, the constructed object will be empty, but still
2021
+ * valid.
2022
+ * @extends {jspb.Message}
2023
+ * @constructor
2024
+ */
2025
+ proto.gateway.web.v1.GetSessionAnalysisRequest = function(opt_data) {
2026
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2027
+ };
2028
+ goog.inherits(proto.gateway.web.v1.GetSessionAnalysisRequest, jspb.Message);
2029
+ if (goog.DEBUG && !COMPILED) {
2030
+ /**
2031
+ * @public
2032
+ * @override
2033
+ */
2034
+ proto.gateway.web.v1.GetSessionAnalysisRequest.displayName = 'proto.gateway.web.v1.GetSessionAnalysisRequest';
2035
+ }
2036
+ /**
2037
+ * Generated by JsPbCodeGenerator.
2038
+ * @param {Array=} opt_data Optional initial data array, typically from a
2039
+ * server response, or constructed directly in Javascript. The array is used
2040
+ * in place and becomes part of the constructed object. It is not cloned.
2041
+ * If no data is provided, the constructed object will be empty, but still
2042
+ * valid.
2043
+ * @extends {jspb.Message}
2044
+ * @constructor
2045
+ */
2046
+ proto.gateway.web.v1.GetSessionAnalysisResponse = function(opt_data) {
2047
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2048
+ };
2049
+ goog.inherits(proto.gateway.web.v1.GetSessionAnalysisResponse, jspb.Message);
2050
+ if (goog.DEBUG && !COMPILED) {
2051
+ /**
2052
+ * @public
2053
+ * @override
2054
+ */
2055
+ proto.gateway.web.v1.GetSessionAnalysisResponse.displayName = 'proto.gateway.web.v1.GetSessionAnalysisResponse';
2056
+ }
2057
+ /**
2058
+ * Generated by JsPbCodeGenerator.
2059
+ * @param {Array=} opt_data Optional initial data array, typically from a
2060
+ * server response, or constructed directly in Javascript. The array is used
2061
+ * in place and becomes part of the constructed object. It is not cloned.
2062
+ * If no data is provided, the constructed object will be empty, but still
2063
+ * valid.
2064
+ * @extends {jspb.Message}
2065
+ * @constructor
2066
+ */
2067
+ proto.gateway.web.v1.AISessionGrades = function(opt_data) {
2068
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2069
+ };
2070
+ goog.inherits(proto.gateway.web.v1.AISessionGrades, jspb.Message);
2071
+ if (goog.DEBUG && !COMPILED) {
2072
+ /**
2073
+ * @public
2074
+ * @override
2075
+ */
2076
+ proto.gateway.web.v1.AISessionGrades.displayName = 'proto.gateway.web.v1.AISessionGrades';
2077
+ }
2078
+ /**
2079
+ * Generated by JsPbCodeGenerator.
2080
+ * @param {Array=} opt_data Optional initial data array, typically from a
2081
+ * server response, or constructed directly in Javascript. The array is used
2082
+ * in place and becomes part of the constructed object. It is not cloned.
2083
+ * If no data is provided, the constructed object will be empty, but still
2084
+ * valid.
2085
+ * @extends {jspb.Message}
2086
+ * @constructor
2087
+ */
2088
+ proto.gateway.web.v1.AISessionInsights = function(opt_data) {
2089
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.AISessionInsights.repeatedFields_, null);
2090
+ };
2091
+ goog.inherits(proto.gateway.web.v1.AISessionInsights, jspb.Message);
2092
+ if (goog.DEBUG && !COMPILED) {
2093
+ /**
2094
+ * @public
2095
+ * @override
2096
+ */
2097
+ proto.gateway.web.v1.AISessionInsights.displayName = 'proto.gateway.web.v1.AISessionInsights';
2098
+ }
2099
+ /**
2100
+ * Generated by JsPbCodeGenerator.
2101
+ * @param {Array=} opt_data Optional initial data array, typically from a
2102
+ * server response, or constructed directly in Javascript. The array is used
2103
+ * in place and becomes part of the constructed object. It is not cloned.
2104
+ * If no data is provided, the constructed object will be empty, but still
2105
+ * valid.
2106
+ * @extends {jspb.Message}
2107
+ * @constructor
2108
+ */
2109
+ proto.gateway.web.v1.AISessionInsight = function(opt_data) {
2110
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.AISessionInsight.repeatedFields_, null);
2111
+ };
2112
+ goog.inherits(proto.gateway.web.v1.AISessionInsight, jspb.Message);
2113
+ if (goog.DEBUG && !COMPILED) {
2114
+ /**
2115
+ * @public
2116
+ * @override
2117
+ */
2118
+ proto.gateway.web.v1.AISessionInsight.displayName = 'proto.gateway.web.v1.AISessionInsight';
2119
+ }
2120
+ /**
2121
+ * Generated by JsPbCodeGenerator.
2122
+ * @param {Array=} opt_data Optional initial data array, typically from a
2123
+ * server response, or constructed directly in Javascript. The array is used
2124
+ * in place and becomes part of the constructed object. It is not cloned.
2125
+ * If no data is provided, the constructed object will be empty, but still
2126
+ * valid.
2127
+ * @extends {jspb.Message}
2128
+ * @constructor
2129
+ */
2130
+ proto.gateway.web.v1.AISessionEventRef = function(opt_data) {
2131
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2132
+ };
2133
+ goog.inherits(proto.gateway.web.v1.AISessionEventRef, jspb.Message);
2134
+ if (goog.DEBUG && !COMPILED) {
2135
+ /**
2136
+ * @public
2137
+ * @override
2138
+ */
2139
+ proto.gateway.web.v1.AISessionEventRef.displayName = 'proto.gateway.web.v1.AISessionEventRef';
2140
+ }
2141
+ /**
2142
+ * Generated by JsPbCodeGenerator.
2143
+ * @param {Array=} opt_data Optional initial data array, typically from a
2144
+ * server response, or constructed directly in Javascript. The array is used
2145
+ * in place and becomes part of the constructed object. It is not cloned.
2146
+ * If no data is provided, the constructed object will be empty, but still
2147
+ * valid.
2148
+ * @extends {jspb.Message}
2149
+ * @constructor
2150
+ */
2151
+ proto.gateway.web.v1.AISessionScore = function(opt_data) {
2152
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.AISessionScore.repeatedFields_, null);
2153
+ };
2154
+ goog.inherits(proto.gateway.web.v1.AISessionScore, jspb.Message);
2155
+ if (goog.DEBUG && !COMPILED) {
2156
+ /**
2157
+ * @public
2158
+ * @override
2159
+ */
2160
+ proto.gateway.web.v1.AISessionScore.displayName = 'proto.gateway.web.v1.AISessionScore';
2161
+ }
2162
+ /**
2163
+ * Generated by JsPbCodeGenerator.
2164
+ * @param {Array=} opt_data Optional initial data array, typically from a
2165
+ * server response, or constructed directly in Javascript. The array is used
2166
+ * in place and becomes part of the constructed object. It is not cloned.
2167
+ * If no data is provided, the constructed object will be empty, but still
2168
+ * valid.
2169
+ * @extends {jspb.Message}
2170
+ * @constructor
2171
+ */
2172
+ proto.gateway.web.v1.AISessionScoreComponent = function(opt_data) {
2173
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2174
+ };
2175
+ goog.inherits(proto.gateway.web.v1.AISessionScoreComponent, jspb.Message);
2176
+ if (goog.DEBUG && !COMPILED) {
2177
+ /**
2178
+ * @public
2179
+ * @override
2180
+ */
2181
+ proto.gateway.web.v1.AISessionScoreComponent.displayName = 'proto.gateway.web.v1.AISessionScoreComponent';
2182
+ }
2183
+ /**
2184
+ * Generated by JsPbCodeGenerator.
2185
+ * @param {Array=} opt_data Optional initial data array, typically from a
2186
+ * server response, or constructed directly in Javascript. The array is used
2187
+ * in place and becomes part of the constructed object. It is not cloned.
2188
+ * If no data is provided, the constructed object will be empty, but still
2189
+ * valid.
2190
+ * @extends {jspb.Message}
2191
+ * @constructor
2192
+ */
2193
+ proto.gateway.web.v1.GetSessionScoreTrendRequest = function(opt_data) {
2194
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2195
+ };
2196
+ goog.inherits(proto.gateway.web.v1.GetSessionScoreTrendRequest, jspb.Message);
2197
+ if (goog.DEBUG && !COMPILED) {
2198
+ /**
2199
+ * @public
2200
+ * @override
2201
+ */
2202
+ proto.gateway.web.v1.GetSessionScoreTrendRequest.displayName = 'proto.gateway.web.v1.GetSessionScoreTrendRequest';
2203
+ }
2204
+ /**
2205
+ * Generated by JsPbCodeGenerator.
2206
+ * @param {Array=} opt_data Optional initial data array, typically from a
2207
+ * server response, or constructed directly in Javascript. The array is used
2208
+ * in place and becomes part of the constructed object. It is not cloned.
2209
+ * If no data is provided, the constructed object will be empty, but still
2210
+ * valid.
2211
+ * @extends {jspb.Message}
2212
+ * @constructor
2213
+ */
2214
+ proto.gateway.web.v1.AISessionScoreTrendFilter = function(opt_data) {
2215
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.AISessionScoreTrendFilter.repeatedFields_, null);
2216
+ };
2217
+ goog.inherits(proto.gateway.web.v1.AISessionScoreTrendFilter, jspb.Message);
2218
+ if (goog.DEBUG && !COMPILED) {
2219
+ /**
2220
+ * @public
2221
+ * @override
2222
+ */
2223
+ proto.gateway.web.v1.AISessionScoreTrendFilter.displayName = 'proto.gateway.web.v1.AISessionScoreTrendFilter';
2224
+ }
2225
+ /**
2226
+ * Generated by JsPbCodeGenerator.
2227
+ * @param {Array=} opt_data Optional initial data array, typically from a
2228
+ * server response, or constructed directly in Javascript. The array is used
2229
+ * in place and becomes part of the constructed object. It is not cloned.
2230
+ * If no data is provided, the constructed object will be empty, but still
2231
+ * valid.
2232
+ * @extends {jspb.Message}
2233
+ * @constructor
2234
+ */
2235
+ proto.gateway.web.v1.GetSessionScoreTrendResponse = function(opt_data) {
2236
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.GetSessionScoreTrendResponse.repeatedFields_, null);
2237
+ };
2238
+ goog.inherits(proto.gateway.web.v1.GetSessionScoreTrendResponse, jspb.Message);
2239
+ if (goog.DEBUG && !COMPILED) {
2240
+ /**
2241
+ * @public
2242
+ * @override
2243
+ */
2244
+ proto.gateway.web.v1.GetSessionScoreTrendResponse.displayName = 'proto.gateway.web.v1.GetSessionScoreTrendResponse';
2245
+ }
2246
+ /**
2247
+ * Generated by JsPbCodeGenerator.
2248
+ * @param {Array=} opt_data Optional initial data array, typically from a
2249
+ * server response, or constructed directly in Javascript. The array is used
2250
+ * in place and becomes part of the constructed object. It is not cloned.
2251
+ * If no data is provided, the constructed object will be empty, but still
2252
+ * valid.
2253
+ * @extends {jspb.Message}
2254
+ * @constructor
2255
+ */
2256
+ proto.gateway.web.v1.AISessionScoreWeek = function(opt_data) {
2257
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2258
+ };
2259
+ goog.inherits(proto.gateway.web.v1.AISessionScoreWeek, jspb.Message);
2260
+ if (goog.DEBUG && !COMPILED) {
2261
+ /**
2262
+ * @public
2263
+ * @override
2264
+ */
2265
+ proto.gateway.web.v1.AISessionScoreWeek.displayName = 'proto.gateway.web.v1.AISessionScoreWeek';
2266
+ }
1996
2267
  /**
1997
2268
  * Generated by JsPbCodeGenerator.
1998
2269
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4658,7 +4929,9 @@ termaVersionsList: (f = jspb.Message.getRepeatedField(msg, 35)) == null ? undefi
4658
4929
  title: jspb.Message.getFieldWithDefault(msg, 33, ""),
4659
4930
  recap: jspb.Message.getFieldWithDefault(msg, 34, ""),
4660
4931
  workType: jspb.Message.getFieldWithDefault(msg, 36, 0),
4661
- complexity: jspb.Message.getFieldWithDefault(msg, 37, 0)
4932
+ complexity: jspb.Message.getFieldWithDefault(msg, 37, 0),
4933
+ sessionScore: (f = jspb.Message.getField(msg, 38)) == null ? undefined : f,
4934
+ outcome: jspb.Message.getFieldWithDefault(msg, 39, 0)
4662
4935
  };
4663
4936
 
4664
4937
  if (includeInstance) {
@@ -4846,6 +5119,14 @@ proto.gateway.web.v1.AISessionSummary.deserializeBinaryFromReader = function(msg
4846
5119
  var value = /** @type {!proto.gateway.web.v1.AISessionComplexity} */ (reader.readEnum());
4847
5120
  msg.setComplexity(value);
4848
5121
  break;
5122
+ case 38:
5123
+ var value = /** @type {number} */ (reader.readInt32());
5124
+ msg.setSessionScore(value);
5125
+ break;
5126
+ case 39:
5127
+ var value = /** @type {!proto.gateway.web.v1.AISessionOutcome} */ (reader.readEnum());
5128
+ msg.setOutcome(value);
5129
+ break;
4849
5130
  default:
4850
5131
  reader.skipField();
4851
5132
  break;
@@ -5137,6 +5418,20 @@ proto.gateway.web.v1.AISessionSummary.serializeBinaryToWriter = function(message
5137
5418
  f
5138
5419
  );
5139
5420
  }
5421
+ f = /** @type {number} */ (jspb.Message.getField(message, 38));
5422
+ if (f != null) {
5423
+ writer.writeInt32(
5424
+ 38,
5425
+ f
5426
+ );
5427
+ }
5428
+ f = message.getOutcome();
5429
+ if (f !== 0.0) {
5430
+ writer.writeEnum(
5431
+ 39,
5432
+ f
5433
+ );
5434
+ }
5140
5435
  };
5141
5436
 
5142
5437
 
@@ -6072,6 +6367,60 @@ proto.gateway.web.v1.AISessionSummary.prototype.setComplexity = function(value)
6072
6367
  };
6073
6368
 
6074
6369
 
6370
+ /**
6371
+ * optional int32 session_score = 38;
6372
+ * @return {number}
6373
+ */
6374
+ proto.gateway.web.v1.AISessionSummary.prototype.getSessionScore = function() {
6375
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 38, 0));
6376
+ };
6377
+
6378
+
6379
+ /**
6380
+ * @param {number} value
6381
+ * @return {!proto.gateway.web.v1.AISessionSummary} returns this
6382
+ */
6383
+ proto.gateway.web.v1.AISessionSummary.prototype.setSessionScore = function(value) {
6384
+ return jspb.Message.setField(this, 38, value);
6385
+ };
6386
+
6387
+
6388
+ /**
6389
+ * Clears the field making it undefined.
6390
+ * @return {!proto.gateway.web.v1.AISessionSummary} returns this
6391
+ */
6392
+ proto.gateway.web.v1.AISessionSummary.prototype.clearSessionScore = function() {
6393
+ return jspb.Message.setField(this, 38, undefined);
6394
+ };
6395
+
6396
+
6397
+ /**
6398
+ * Returns whether this field is set.
6399
+ * @return {boolean}
6400
+ */
6401
+ proto.gateway.web.v1.AISessionSummary.prototype.hasSessionScore = function() {
6402
+ return jspb.Message.getField(this, 38) != null;
6403
+ };
6404
+
6405
+
6406
+ /**
6407
+ * optional AISessionOutcome outcome = 39;
6408
+ * @return {!proto.gateway.web.v1.AISessionOutcome}
6409
+ */
6410
+ proto.gateway.web.v1.AISessionSummary.prototype.getOutcome = function() {
6411
+ return /** @type {!proto.gateway.web.v1.AISessionOutcome} */ (jspb.Message.getFieldWithDefault(this, 39, 0));
6412
+ };
6413
+
6414
+
6415
+ /**
6416
+ * @param {!proto.gateway.web.v1.AISessionOutcome} value
6417
+ * @return {!proto.gateway.web.v1.AISessionSummary} returns this
6418
+ */
6419
+ proto.gateway.web.v1.AISessionSummary.prototype.setOutcome = function(value) {
6420
+ return jspb.Message.setProto3EnumField(this, 39, value);
6421
+ };
6422
+
6423
+
6075
6424
 
6076
6425
 
6077
6426
 
@@ -31141,6 +31490,3305 @@ proto.gateway.web.v1.SessionGitBucket.prototype.setCount = function(value) {
31141
31490
 
31142
31491
 
31143
31492
 
31493
+ if (jspb.Message.GENERATE_TO_OBJECT) {
31494
+ /**
31495
+ * Creates an object representation of this proto.
31496
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
31497
+ * Optional fields that are not set will be set to undefined.
31498
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
31499
+ * For the list of reserved names please see:
31500
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
31501
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
31502
+ * JSPB instance for transitional soy proto support:
31503
+ * http://goto/soy-param-migration
31504
+ * @return {!Object}
31505
+ */
31506
+ proto.gateway.web.v1.GetSessionAnalysisRequest.prototype.toObject = function(opt_includeInstance) {
31507
+ return proto.gateway.web.v1.GetSessionAnalysisRequest.toObject(opt_includeInstance, this);
31508
+ };
31509
+
31510
+
31511
+ /**
31512
+ * Static version of the {@see toObject} method.
31513
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
31514
+ * the JSPB instance for transitional soy proto support:
31515
+ * http://goto/soy-param-migration
31516
+ * @param {!proto.gateway.web.v1.GetSessionAnalysisRequest} msg The msg instance to transform.
31517
+ * @return {!Object}
31518
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31519
+ */
31520
+ proto.gateway.web.v1.GetSessionAnalysisRequest.toObject = function(includeInstance, msg) {
31521
+ var f, obj = {
31522
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
31523
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
31524
+ sourceSystem: jspb.Message.getFieldWithDefault(msg, 3, ""),
31525
+ sessionId: jspb.Message.getFieldWithDefault(msg, 4, "")
31526
+ };
31527
+
31528
+ if (includeInstance) {
31529
+ obj.$jspbMessageInstance = msg;
31530
+ }
31531
+ return obj;
31532
+ };
31533
+ }
31534
+
31535
+
31536
+ /**
31537
+ * Deserializes binary data (in protobuf wire format).
31538
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
31539
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisRequest}
31540
+ */
31541
+ proto.gateway.web.v1.GetSessionAnalysisRequest.deserializeBinary = function(bytes) {
31542
+ var reader = new jspb.BinaryReader(bytes);
31543
+ var msg = new proto.gateway.web.v1.GetSessionAnalysisRequest;
31544
+ return proto.gateway.web.v1.GetSessionAnalysisRequest.deserializeBinaryFromReader(msg, reader);
31545
+ };
31546
+
31547
+
31548
+ /**
31549
+ * Deserializes binary data (in protobuf wire format) from the
31550
+ * given reader into the given message object.
31551
+ * @param {!proto.gateway.web.v1.GetSessionAnalysisRequest} msg The message object to deserialize into.
31552
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
31553
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisRequest}
31554
+ */
31555
+ proto.gateway.web.v1.GetSessionAnalysisRequest.deserializeBinaryFromReader = function(msg, reader) {
31556
+ while (reader.nextField()) {
31557
+ if (reader.isEndGroup()) {
31558
+ break;
31559
+ }
31560
+ var field = reader.getFieldNumber();
31561
+ switch (field) {
31562
+ case 1:
31563
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
31564
+ msg.setOrganizationId(value);
31565
+ break;
31566
+ case 2:
31567
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
31568
+ msg.setProjectId(value);
31569
+ break;
31570
+ case 3:
31571
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
31572
+ msg.setSourceSystem(value);
31573
+ break;
31574
+ case 4:
31575
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
31576
+ msg.setSessionId(value);
31577
+ break;
31578
+ default:
31579
+ reader.skipField();
31580
+ break;
31581
+ }
31582
+ }
31583
+ return msg;
31584
+ };
31585
+
31586
+
31587
+ /**
31588
+ * Serializes the message to binary data (in protobuf wire format).
31589
+ * @return {!Uint8Array}
31590
+ */
31591
+ proto.gateway.web.v1.GetSessionAnalysisRequest.prototype.serializeBinary = function() {
31592
+ var writer = new jspb.BinaryWriter();
31593
+ proto.gateway.web.v1.GetSessionAnalysisRequest.serializeBinaryToWriter(this, writer);
31594
+ return writer.getResultBuffer();
31595
+ };
31596
+
31597
+
31598
+ /**
31599
+ * Serializes the given message to binary data (in protobuf wire
31600
+ * format), writing to the given BinaryWriter.
31601
+ * @param {!proto.gateway.web.v1.GetSessionAnalysisRequest} message
31602
+ * @param {!jspb.BinaryWriter} writer
31603
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31604
+ */
31605
+ proto.gateway.web.v1.GetSessionAnalysisRequest.serializeBinaryToWriter = function(message, writer) {
31606
+ var f = undefined;
31607
+ f = message.getOrganizationId();
31608
+ if (f.length > 0) {
31609
+ writer.writeString(
31610
+ 1,
31611
+ f
31612
+ );
31613
+ }
31614
+ f = message.getProjectId();
31615
+ if (f.length > 0) {
31616
+ writer.writeString(
31617
+ 2,
31618
+ f
31619
+ );
31620
+ }
31621
+ f = message.getSourceSystem();
31622
+ if (f.length > 0) {
31623
+ writer.writeString(
31624
+ 3,
31625
+ f
31626
+ );
31627
+ }
31628
+ f = message.getSessionId();
31629
+ if (f.length > 0) {
31630
+ writer.writeString(
31631
+ 4,
31632
+ f
31633
+ );
31634
+ }
31635
+ };
31636
+
31637
+
31638
+ /**
31639
+ * optional string organization_id = 1;
31640
+ * @return {string}
31641
+ */
31642
+ proto.gateway.web.v1.GetSessionAnalysisRequest.prototype.getOrganizationId = function() {
31643
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
31644
+ };
31645
+
31646
+
31647
+ /**
31648
+ * @param {string} value
31649
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisRequest} returns this
31650
+ */
31651
+ proto.gateway.web.v1.GetSessionAnalysisRequest.prototype.setOrganizationId = function(value) {
31652
+ return jspb.Message.setProto3StringField(this, 1, value);
31653
+ };
31654
+
31655
+
31656
+ /**
31657
+ * optional string project_id = 2;
31658
+ * @return {string}
31659
+ */
31660
+ proto.gateway.web.v1.GetSessionAnalysisRequest.prototype.getProjectId = function() {
31661
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
31662
+ };
31663
+
31664
+
31665
+ /**
31666
+ * @param {string} value
31667
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisRequest} returns this
31668
+ */
31669
+ proto.gateway.web.v1.GetSessionAnalysisRequest.prototype.setProjectId = function(value) {
31670
+ return jspb.Message.setProto3StringField(this, 2, value);
31671
+ };
31672
+
31673
+
31674
+ /**
31675
+ * optional string source_system = 3;
31676
+ * @return {string}
31677
+ */
31678
+ proto.gateway.web.v1.GetSessionAnalysisRequest.prototype.getSourceSystem = function() {
31679
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
31680
+ };
31681
+
31682
+
31683
+ /**
31684
+ * @param {string} value
31685
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisRequest} returns this
31686
+ */
31687
+ proto.gateway.web.v1.GetSessionAnalysisRequest.prototype.setSourceSystem = function(value) {
31688
+ return jspb.Message.setProto3StringField(this, 3, value);
31689
+ };
31690
+
31691
+
31692
+ /**
31693
+ * optional string session_id = 4;
31694
+ * @return {string}
31695
+ */
31696
+ proto.gateway.web.v1.GetSessionAnalysisRequest.prototype.getSessionId = function() {
31697
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
31698
+ };
31699
+
31700
+
31701
+ /**
31702
+ * @param {string} value
31703
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisRequest} returns this
31704
+ */
31705
+ proto.gateway.web.v1.GetSessionAnalysisRequest.prototype.setSessionId = function(value) {
31706
+ return jspb.Message.setProto3StringField(this, 4, value);
31707
+ };
31708
+
31709
+
31710
+
31711
+
31712
+
31713
+ if (jspb.Message.GENERATE_TO_OBJECT) {
31714
+ /**
31715
+ * Creates an object representation of this proto.
31716
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
31717
+ * Optional fields that are not set will be set to undefined.
31718
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
31719
+ * For the list of reserved names please see:
31720
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
31721
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
31722
+ * JSPB instance for transitional soy proto support:
31723
+ * http://goto/soy-param-migration
31724
+ * @return {!Object}
31725
+ */
31726
+ proto.gateway.web.v1.GetSessionAnalysisResponse.prototype.toObject = function(opt_includeInstance) {
31727
+ return proto.gateway.web.v1.GetSessionAnalysisResponse.toObject(opt_includeInstance, this);
31728
+ };
31729
+
31730
+
31731
+ /**
31732
+ * Static version of the {@see toObject} method.
31733
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
31734
+ * the JSPB instance for transitional soy proto support:
31735
+ * http://goto/soy-param-migration
31736
+ * @param {!proto.gateway.web.v1.GetSessionAnalysisResponse} msg The msg instance to transform.
31737
+ * @return {!Object}
31738
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31739
+ */
31740
+ proto.gateway.web.v1.GetSessionAnalysisResponse.toObject = function(includeInstance, msg) {
31741
+ var f, obj = {
31742
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
31743
+ grades: (f = msg.getGrades()) && proto.gateway.web.v1.AISessionGrades.toObject(includeInstance, f),
31744
+ score: (f = msg.getScore()) && proto.gateway.web.v1.AISessionScore.toObject(includeInstance, f),
31745
+ insights: (f = msg.getInsights()) && proto.gateway.web.v1.AISessionInsights.toObject(includeInstance, f),
31746
+ sessionVersion: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f
31747
+ };
31748
+
31749
+ if (includeInstance) {
31750
+ obj.$jspbMessageInstance = msg;
31751
+ }
31752
+ return obj;
31753
+ };
31754
+ }
31755
+
31756
+
31757
+ /**
31758
+ * Deserializes binary data (in protobuf wire format).
31759
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
31760
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisResponse}
31761
+ */
31762
+ proto.gateway.web.v1.GetSessionAnalysisResponse.deserializeBinary = function(bytes) {
31763
+ var reader = new jspb.BinaryReader(bytes);
31764
+ var msg = new proto.gateway.web.v1.GetSessionAnalysisResponse;
31765
+ return proto.gateway.web.v1.GetSessionAnalysisResponse.deserializeBinaryFromReader(msg, reader);
31766
+ };
31767
+
31768
+
31769
+ /**
31770
+ * Deserializes binary data (in protobuf wire format) from the
31771
+ * given reader into the given message object.
31772
+ * @param {!proto.gateway.web.v1.GetSessionAnalysisResponse} msg The message object to deserialize into.
31773
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
31774
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisResponse}
31775
+ */
31776
+ proto.gateway.web.v1.GetSessionAnalysisResponse.deserializeBinaryFromReader = function(msg, reader) {
31777
+ while (reader.nextField()) {
31778
+ if (reader.isEndGroup()) {
31779
+ break;
31780
+ }
31781
+ var field = reader.getFieldNumber();
31782
+ switch (field) {
31783
+ case 1:
31784
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
31785
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
31786
+ msg.setStatus(value);
31787
+ break;
31788
+ case 2:
31789
+ var value = new proto.gateway.web.v1.AISessionGrades;
31790
+ reader.readMessage(value,proto.gateway.web.v1.AISessionGrades.deserializeBinaryFromReader);
31791
+ msg.setGrades(value);
31792
+ break;
31793
+ case 3:
31794
+ var value = new proto.gateway.web.v1.AISessionScore;
31795
+ reader.readMessage(value,proto.gateway.web.v1.AISessionScore.deserializeBinaryFromReader);
31796
+ msg.setScore(value);
31797
+ break;
31798
+ case 4:
31799
+ var value = new proto.gateway.web.v1.AISessionInsights;
31800
+ reader.readMessage(value,proto.gateway.web.v1.AISessionInsights.deserializeBinaryFromReader);
31801
+ msg.setInsights(value);
31802
+ break;
31803
+ case 5:
31804
+ var value = /** @type {number} */ (reader.readUint64());
31805
+ msg.setSessionVersion(value);
31806
+ break;
31807
+ default:
31808
+ reader.skipField();
31809
+ break;
31810
+ }
31811
+ }
31812
+ return msg;
31813
+ };
31814
+
31815
+
31816
+ /**
31817
+ * Serializes the message to binary data (in protobuf wire format).
31818
+ * @return {!Uint8Array}
31819
+ */
31820
+ proto.gateway.web.v1.GetSessionAnalysisResponse.prototype.serializeBinary = function() {
31821
+ var writer = new jspb.BinaryWriter();
31822
+ proto.gateway.web.v1.GetSessionAnalysisResponse.serializeBinaryToWriter(this, writer);
31823
+ return writer.getResultBuffer();
31824
+ };
31825
+
31826
+
31827
+ /**
31828
+ * Serializes the given message to binary data (in protobuf wire
31829
+ * format), writing to the given BinaryWriter.
31830
+ * @param {!proto.gateway.web.v1.GetSessionAnalysisResponse} message
31831
+ * @param {!jspb.BinaryWriter} writer
31832
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31833
+ */
31834
+ proto.gateway.web.v1.GetSessionAnalysisResponse.serializeBinaryToWriter = function(message, writer) {
31835
+ var f = undefined;
31836
+ f = message.getStatus();
31837
+ if (f != null) {
31838
+ writer.writeMessage(
31839
+ 1,
31840
+ f,
31841
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
31842
+ );
31843
+ }
31844
+ f = message.getGrades();
31845
+ if (f != null) {
31846
+ writer.writeMessage(
31847
+ 2,
31848
+ f,
31849
+ proto.gateway.web.v1.AISessionGrades.serializeBinaryToWriter
31850
+ );
31851
+ }
31852
+ f = message.getScore();
31853
+ if (f != null) {
31854
+ writer.writeMessage(
31855
+ 3,
31856
+ f,
31857
+ proto.gateway.web.v1.AISessionScore.serializeBinaryToWriter
31858
+ );
31859
+ }
31860
+ f = message.getInsights();
31861
+ if (f != null) {
31862
+ writer.writeMessage(
31863
+ 4,
31864
+ f,
31865
+ proto.gateway.web.v1.AISessionInsights.serializeBinaryToWriter
31866
+ );
31867
+ }
31868
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
31869
+ if (f != null) {
31870
+ writer.writeUint64(
31871
+ 5,
31872
+ f
31873
+ );
31874
+ }
31875
+ };
31876
+
31877
+
31878
+ /**
31879
+ * optional gateway.common.v1.ResponseStatus status = 1;
31880
+ * @return {?proto.gateway.common.v1.ResponseStatus}
31881
+ */
31882
+ proto.gateway.web.v1.GetSessionAnalysisResponse.prototype.getStatus = function() {
31883
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
31884
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
31885
+ };
31886
+
31887
+
31888
+ /**
31889
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
31890
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisResponse} returns this
31891
+ */
31892
+ proto.gateway.web.v1.GetSessionAnalysisResponse.prototype.setStatus = function(value) {
31893
+ return jspb.Message.setWrapperField(this, 1, value);
31894
+ };
31895
+
31896
+
31897
+ /**
31898
+ * Clears the message field making it undefined.
31899
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisResponse} returns this
31900
+ */
31901
+ proto.gateway.web.v1.GetSessionAnalysisResponse.prototype.clearStatus = function() {
31902
+ return this.setStatus(undefined);
31903
+ };
31904
+
31905
+
31906
+ /**
31907
+ * Returns whether this field is set.
31908
+ * @return {boolean}
31909
+ */
31910
+ proto.gateway.web.v1.GetSessionAnalysisResponse.prototype.hasStatus = function() {
31911
+ return jspb.Message.getField(this, 1) != null;
31912
+ };
31913
+
31914
+
31915
+ /**
31916
+ * optional AISessionGrades grades = 2;
31917
+ * @return {?proto.gateway.web.v1.AISessionGrades}
31918
+ */
31919
+ proto.gateway.web.v1.GetSessionAnalysisResponse.prototype.getGrades = function() {
31920
+ return /** @type{?proto.gateway.web.v1.AISessionGrades} */ (
31921
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.AISessionGrades, 2));
31922
+ };
31923
+
31924
+
31925
+ /**
31926
+ * @param {?proto.gateway.web.v1.AISessionGrades|undefined} value
31927
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisResponse} returns this
31928
+ */
31929
+ proto.gateway.web.v1.GetSessionAnalysisResponse.prototype.setGrades = function(value) {
31930
+ return jspb.Message.setWrapperField(this, 2, value);
31931
+ };
31932
+
31933
+
31934
+ /**
31935
+ * Clears the message field making it undefined.
31936
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisResponse} returns this
31937
+ */
31938
+ proto.gateway.web.v1.GetSessionAnalysisResponse.prototype.clearGrades = function() {
31939
+ return this.setGrades(undefined);
31940
+ };
31941
+
31942
+
31943
+ /**
31944
+ * Returns whether this field is set.
31945
+ * @return {boolean}
31946
+ */
31947
+ proto.gateway.web.v1.GetSessionAnalysisResponse.prototype.hasGrades = function() {
31948
+ return jspb.Message.getField(this, 2) != null;
31949
+ };
31950
+
31951
+
31952
+ /**
31953
+ * optional AISessionScore score = 3;
31954
+ * @return {?proto.gateway.web.v1.AISessionScore}
31955
+ */
31956
+ proto.gateway.web.v1.GetSessionAnalysisResponse.prototype.getScore = function() {
31957
+ return /** @type{?proto.gateway.web.v1.AISessionScore} */ (
31958
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.AISessionScore, 3));
31959
+ };
31960
+
31961
+
31962
+ /**
31963
+ * @param {?proto.gateway.web.v1.AISessionScore|undefined} value
31964
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisResponse} returns this
31965
+ */
31966
+ proto.gateway.web.v1.GetSessionAnalysisResponse.prototype.setScore = function(value) {
31967
+ return jspb.Message.setWrapperField(this, 3, value);
31968
+ };
31969
+
31970
+
31971
+ /**
31972
+ * Clears the message field making it undefined.
31973
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisResponse} returns this
31974
+ */
31975
+ proto.gateway.web.v1.GetSessionAnalysisResponse.prototype.clearScore = function() {
31976
+ return this.setScore(undefined);
31977
+ };
31978
+
31979
+
31980
+ /**
31981
+ * Returns whether this field is set.
31982
+ * @return {boolean}
31983
+ */
31984
+ proto.gateway.web.v1.GetSessionAnalysisResponse.prototype.hasScore = function() {
31985
+ return jspb.Message.getField(this, 3) != null;
31986
+ };
31987
+
31988
+
31989
+ /**
31990
+ * optional AISessionInsights insights = 4;
31991
+ * @return {?proto.gateway.web.v1.AISessionInsights}
31992
+ */
31993
+ proto.gateway.web.v1.GetSessionAnalysisResponse.prototype.getInsights = function() {
31994
+ return /** @type{?proto.gateway.web.v1.AISessionInsights} */ (
31995
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.AISessionInsights, 4));
31996
+ };
31997
+
31998
+
31999
+ /**
32000
+ * @param {?proto.gateway.web.v1.AISessionInsights|undefined} value
32001
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisResponse} returns this
32002
+ */
32003
+ proto.gateway.web.v1.GetSessionAnalysisResponse.prototype.setInsights = function(value) {
32004
+ return jspb.Message.setWrapperField(this, 4, value);
32005
+ };
32006
+
32007
+
32008
+ /**
32009
+ * Clears the message field making it undefined.
32010
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisResponse} returns this
32011
+ */
32012
+ proto.gateway.web.v1.GetSessionAnalysisResponse.prototype.clearInsights = function() {
32013
+ return this.setInsights(undefined);
32014
+ };
32015
+
32016
+
32017
+ /**
32018
+ * Returns whether this field is set.
32019
+ * @return {boolean}
32020
+ */
32021
+ proto.gateway.web.v1.GetSessionAnalysisResponse.prototype.hasInsights = function() {
32022
+ return jspb.Message.getField(this, 4) != null;
32023
+ };
32024
+
32025
+
32026
+ /**
32027
+ * optional uint64 session_version = 5;
32028
+ * @return {number}
32029
+ */
32030
+ proto.gateway.web.v1.GetSessionAnalysisResponse.prototype.getSessionVersion = function() {
32031
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
32032
+ };
32033
+
32034
+
32035
+ /**
32036
+ * @param {number} value
32037
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisResponse} returns this
32038
+ */
32039
+ proto.gateway.web.v1.GetSessionAnalysisResponse.prototype.setSessionVersion = function(value) {
32040
+ return jspb.Message.setField(this, 5, value);
32041
+ };
32042
+
32043
+
32044
+ /**
32045
+ * Clears the field making it undefined.
32046
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisResponse} returns this
32047
+ */
32048
+ proto.gateway.web.v1.GetSessionAnalysisResponse.prototype.clearSessionVersion = function() {
32049
+ return jspb.Message.setField(this, 5, undefined);
32050
+ };
32051
+
32052
+
32053
+ /**
32054
+ * Returns whether this field is set.
32055
+ * @return {boolean}
32056
+ */
32057
+ proto.gateway.web.v1.GetSessionAnalysisResponse.prototype.hasSessionVersion = function() {
32058
+ return jspb.Message.getField(this, 5) != null;
32059
+ };
32060
+
32061
+
32062
+
32063
+
32064
+
32065
+ if (jspb.Message.GENERATE_TO_OBJECT) {
32066
+ /**
32067
+ * Creates an object representation of this proto.
32068
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
32069
+ * Optional fields that are not set will be set to undefined.
32070
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
32071
+ * For the list of reserved names please see:
32072
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
32073
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
32074
+ * JSPB instance for transitional soy proto support:
32075
+ * http://goto/soy-param-migration
32076
+ * @return {!Object}
32077
+ */
32078
+ proto.gateway.web.v1.AISessionGrades.prototype.toObject = function(opt_includeInstance) {
32079
+ return proto.gateway.web.v1.AISessionGrades.toObject(opt_includeInstance, this);
32080
+ };
32081
+
32082
+
32083
+ /**
32084
+ * Static version of the {@see toObject} method.
32085
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
32086
+ * the JSPB instance for transitional soy proto support:
32087
+ * http://goto/soy-param-migration
32088
+ * @param {!proto.gateway.web.v1.AISessionGrades} msg The msg instance to transform.
32089
+ * @return {!Object}
32090
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32091
+ */
32092
+ proto.gateway.web.v1.AISessionGrades.toObject = function(includeInstance, msg) {
32093
+ var f, obj = {
32094
+ outcome: jspb.Message.getFieldWithDefault(msg, 1, 0),
32095
+ steeringLoad: jspb.Message.getFieldWithDefault(msg, 2, 0),
32096
+ agentReliability: jspb.Message.getFieldWithDefault(msg, 3, 0),
32097
+ verification: jspb.Message.getFieldWithDefault(msg, 4, 0),
32098
+ model: jspb.Message.getFieldWithDefault(msg, 5, ""),
32099
+ version: jspb.Message.getFieldWithDefault(msg, 6, ""),
32100
+ inputSessionVersion: jspb.Message.getFieldWithDefault(msg, 7, 0),
32101
+ scoredAt: (f = msg.getScoredAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
32102
+ };
32103
+
32104
+ if (includeInstance) {
32105
+ obj.$jspbMessageInstance = msg;
32106
+ }
32107
+ return obj;
32108
+ };
32109
+ }
32110
+
32111
+
32112
+ /**
32113
+ * Deserializes binary data (in protobuf wire format).
32114
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
32115
+ * @return {!proto.gateway.web.v1.AISessionGrades}
32116
+ */
32117
+ proto.gateway.web.v1.AISessionGrades.deserializeBinary = function(bytes) {
32118
+ var reader = new jspb.BinaryReader(bytes);
32119
+ var msg = new proto.gateway.web.v1.AISessionGrades;
32120
+ return proto.gateway.web.v1.AISessionGrades.deserializeBinaryFromReader(msg, reader);
32121
+ };
32122
+
32123
+
32124
+ /**
32125
+ * Deserializes binary data (in protobuf wire format) from the
32126
+ * given reader into the given message object.
32127
+ * @param {!proto.gateway.web.v1.AISessionGrades} msg The message object to deserialize into.
32128
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
32129
+ * @return {!proto.gateway.web.v1.AISessionGrades}
32130
+ */
32131
+ proto.gateway.web.v1.AISessionGrades.deserializeBinaryFromReader = function(msg, reader) {
32132
+ while (reader.nextField()) {
32133
+ if (reader.isEndGroup()) {
32134
+ break;
32135
+ }
32136
+ var field = reader.getFieldNumber();
32137
+ switch (field) {
32138
+ case 1:
32139
+ var value = /** @type {!proto.gateway.web.v1.AISessionOutcome} */ (reader.readEnum());
32140
+ msg.setOutcome(value);
32141
+ break;
32142
+ case 2:
32143
+ var value = /** @type {!proto.gateway.web.v1.AISessionSteeringLoad} */ (reader.readEnum());
32144
+ msg.setSteeringLoad(value);
32145
+ break;
32146
+ case 3:
32147
+ var value = /** @type {!proto.gateway.web.v1.AISessionAgentReliability} */ (reader.readEnum());
32148
+ msg.setAgentReliability(value);
32149
+ break;
32150
+ case 4:
32151
+ var value = /** @type {!proto.gateway.web.v1.AISessionVerification} */ (reader.readEnum());
32152
+ msg.setVerification(value);
32153
+ break;
32154
+ case 5:
32155
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
32156
+ msg.setModel(value);
32157
+ break;
32158
+ case 6:
32159
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
32160
+ msg.setVersion(value);
32161
+ break;
32162
+ case 7:
32163
+ var value = /** @type {number} */ (reader.readUint64());
32164
+ msg.setInputSessionVersion(value);
32165
+ break;
32166
+ case 8:
32167
+ var value = new google_protobuf_timestamp_pb.Timestamp;
32168
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
32169
+ msg.setScoredAt(value);
32170
+ break;
32171
+ default:
32172
+ reader.skipField();
32173
+ break;
32174
+ }
32175
+ }
32176
+ return msg;
32177
+ };
32178
+
32179
+
32180
+ /**
32181
+ * Serializes the message to binary data (in protobuf wire format).
32182
+ * @return {!Uint8Array}
32183
+ */
32184
+ proto.gateway.web.v1.AISessionGrades.prototype.serializeBinary = function() {
32185
+ var writer = new jspb.BinaryWriter();
32186
+ proto.gateway.web.v1.AISessionGrades.serializeBinaryToWriter(this, writer);
32187
+ return writer.getResultBuffer();
32188
+ };
32189
+
32190
+
32191
+ /**
32192
+ * Serializes the given message to binary data (in protobuf wire
32193
+ * format), writing to the given BinaryWriter.
32194
+ * @param {!proto.gateway.web.v1.AISessionGrades} message
32195
+ * @param {!jspb.BinaryWriter} writer
32196
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32197
+ */
32198
+ proto.gateway.web.v1.AISessionGrades.serializeBinaryToWriter = function(message, writer) {
32199
+ var f = undefined;
32200
+ f = message.getOutcome();
32201
+ if (f !== 0.0) {
32202
+ writer.writeEnum(
32203
+ 1,
32204
+ f
32205
+ );
32206
+ }
32207
+ f = message.getSteeringLoad();
32208
+ if (f !== 0.0) {
32209
+ writer.writeEnum(
32210
+ 2,
32211
+ f
32212
+ );
32213
+ }
32214
+ f = message.getAgentReliability();
32215
+ if (f !== 0.0) {
32216
+ writer.writeEnum(
32217
+ 3,
32218
+ f
32219
+ );
32220
+ }
32221
+ f = message.getVerification();
32222
+ if (f !== 0.0) {
32223
+ writer.writeEnum(
32224
+ 4,
32225
+ f
32226
+ );
32227
+ }
32228
+ f = message.getModel();
32229
+ if (f.length > 0) {
32230
+ writer.writeString(
32231
+ 5,
32232
+ f
32233
+ );
32234
+ }
32235
+ f = message.getVersion();
32236
+ if (f.length > 0) {
32237
+ writer.writeString(
32238
+ 6,
32239
+ f
32240
+ );
32241
+ }
32242
+ f = message.getInputSessionVersion();
32243
+ if (f !== 0) {
32244
+ writer.writeUint64(
32245
+ 7,
32246
+ f
32247
+ );
32248
+ }
32249
+ f = message.getScoredAt();
32250
+ if (f != null) {
32251
+ writer.writeMessage(
32252
+ 8,
32253
+ f,
32254
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
32255
+ );
32256
+ }
32257
+ };
32258
+
32259
+
32260
+ /**
32261
+ * optional AISessionOutcome outcome = 1;
32262
+ * @return {!proto.gateway.web.v1.AISessionOutcome}
32263
+ */
32264
+ proto.gateway.web.v1.AISessionGrades.prototype.getOutcome = function() {
32265
+ return /** @type {!proto.gateway.web.v1.AISessionOutcome} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
32266
+ };
32267
+
32268
+
32269
+ /**
32270
+ * @param {!proto.gateway.web.v1.AISessionOutcome} value
32271
+ * @return {!proto.gateway.web.v1.AISessionGrades} returns this
32272
+ */
32273
+ proto.gateway.web.v1.AISessionGrades.prototype.setOutcome = function(value) {
32274
+ return jspb.Message.setProto3EnumField(this, 1, value);
32275
+ };
32276
+
32277
+
32278
+ /**
32279
+ * optional AISessionSteeringLoad steering_load = 2;
32280
+ * @return {!proto.gateway.web.v1.AISessionSteeringLoad}
32281
+ */
32282
+ proto.gateway.web.v1.AISessionGrades.prototype.getSteeringLoad = function() {
32283
+ return /** @type {!proto.gateway.web.v1.AISessionSteeringLoad} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
32284
+ };
32285
+
32286
+
32287
+ /**
32288
+ * @param {!proto.gateway.web.v1.AISessionSteeringLoad} value
32289
+ * @return {!proto.gateway.web.v1.AISessionGrades} returns this
32290
+ */
32291
+ proto.gateway.web.v1.AISessionGrades.prototype.setSteeringLoad = function(value) {
32292
+ return jspb.Message.setProto3EnumField(this, 2, value);
32293
+ };
32294
+
32295
+
32296
+ /**
32297
+ * optional AISessionAgentReliability agent_reliability = 3;
32298
+ * @return {!proto.gateway.web.v1.AISessionAgentReliability}
32299
+ */
32300
+ proto.gateway.web.v1.AISessionGrades.prototype.getAgentReliability = function() {
32301
+ return /** @type {!proto.gateway.web.v1.AISessionAgentReliability} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
32302
+ };
32303
+
32304
+
32305
+ /**
32306
+ * @param {!proto.gateway.web.v1.AISessionAgentReliability} value
32307
+ * @return {!proto.gateway.web.v1.AISessionGrades} returns this
32308
+ */
32309
+ proto.gateway.web.v1.AISessionGrades.prototype.setAgentReliability = function(value) {
32310
+ return jspb.Message.setProto3EnumField(this, 3, value);
32311
+ };
32312
+
32313
+
32314
+ /**
32315
+ * optional AISessionVerification verification = 4;
32316
+ * @return {!proto.gateway.web.v1.AISessionVerification}
32317
+ */
32318
+ proto.gateway.web.v1.AISessionGrades.prototype.getVerification = function() {
32319
+ return /** @type {!proto.gateway.web.v1.AISessionVerification} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
32320
+ };
32321
+
32322
+
32323
+ /**
32324
+ * @param {!proto.gateway.web.v1.AISessionVerification} value
32325
+ * @return {!proto.gateway.web.v1.AISessionGrades} returns this
32326
+ */
32327
+ proto.gateway.web.v1.AISessionGrades.prototype.setVerification = function(value) {
32328
+ return jspb.Message.setProto3EnumField(this, 4, value);
32329
+ };
32330
+
32331
+
32332
+ /**
32333
+ * optional string model = 5;
32334
+ * @return {string}
32335
+ */
32336
+ proto.gateway.web.v1.AISessionGrades.prototype.getModel = function() {
32337
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
32338
+ };
32339
+
32340
+
32341
+ /**
32342
+ * @param {string} value
32343
+ * @return {!proto.gateway.web.v1.AISessionGrades} returns this
32344
+ */
32345
+ proto.gateway.web.v1.AISessionGrades.prototype.setModel = function(value) {
32346
+ return jspb.Message.setProto3StringField(this, 5, value);
32347
+ };
32348
+
32349
+
32350
+ /**
32351
+ * optional string version = 6;
32352
+ * @return {string}
32353
+ */
32354
+ proto.gateway.web.v1.AISessionGrades.prototype.getVersion = function() {
32355
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
32356
+ };
32357
+
32358
+
32359
+ /**
32360
+ * @param {string} value
32361
+ * @return {!proto.gateway.web.v1.AISessionGrades} returns this
32362
+ */
32363
+ proto.gateway.web.v1.AISessionGrades.prototype.setVersion = function(value) {
32364
+ return jspb.Message.setProto3StringField(this, 6, value);
32365
+ };
32366
+
32367
+
32368
+ /**
32369
+ * optional uint64 input_session_version = 7;
32370
+ * @return {number}
32371
+ */
32372
+ proto.gateway.web.v1.AISessionGrades.prototype.getInputSessionVersion = function() {
32373
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
32374
+ };
32375
+
32376
+
32377
+ /**
32378
+ * @param {number} value
32379
+ * @return {!proto.gateway.web.v1.AISessionGrades} returns this
32380
+ */
32381
+ proto.gateway.web.v1.AISessionGrades.prototype.setInputSessionVersion = function(value) {
32382
+ return jspb.Message.setProto3IntField(this, 7, value);
32383
+ };
32384
+
32385
+
32386
+ /**
32387
+ * optional google.protobuf.Timestamp scored_at = 8;
32388
+ * @return {?proto.google.protobuf.Timestamp}
32389
+ */
32390
+ proto.gateway.web.v1.AISessionGrades.prototype.getScoredAt = function() {
32391
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
32392
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
32393
+ };
32394
+
32395
+
32396
+ /**
32397
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
32398
+ * @return {!proto.gateway.web.v1.AISessionGrades} returns this
32399
+ */
32400
+ proto.gateway.web.v1.AISessionGrades.prototype.setScoredAt = function(value) {
32401
+ return jspb.Message.setWrapperField(this, 8, value);
32402
+ };
32403
+
32404
+
32405
+ /**
32406
+ * Clears the message field making it undefined.
32407
+ * @return {!proto.gateway.web.v1.AISessionGrades} returns this
32408
+ */
32409
+ proto.gateway.web.v1.AISessionGrades.prototype.clearScoredAt = function() {
32410
+ return this.setScoredAt(undefined);
32411
+ };
32412
+
32413
+
32414
+ /**
32415
+ * Returns whether this field is set.
32416
+ * @return {boolean}
32417
+ */
32418
+ proto.gateway.web.v1.AISessionGrades.prototype.hasScoredAt = function() {
32419
+ return jspb.Message.getField(this, 8) != null;
32420
+ };
32421
+
32422
+
32423
+
32424
+ /**
32425
+ * List of repeated fields within this message type.
32426
+ * @private {!Array<number>}
32427
+ * @const
32428
+ */
32429
+ proto.gateway.web.v1.AISessionInsights.repeatedFields_ = [1];
32430
+
32431
+
32432
+
32433
+ if (jspb.Message.GENERATE_TO_OBJECT) {
32434
+ /**
32435
+ * Creates an object representation of this proto.
32436
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
32437
+ * Optional fields that are not set will be set to undefined.
32438
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
32439
+ * For the list of reserved names please see:
32440
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
32441
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
32442
+ * JSPB instance for transitional soy proto support:
32443
+ * http://goto/soy-param-migration
32444
+ * @return {!Object}
32445
+ */
32446
+ proto.gateway.web.v1.AISessionInsights.prototype.toObject = function(opt_includeInstance) {
32447
+ return proto.gateway.web.v1.AISessionInsights.toObject(opt_includeInstance, this);
32448
+ };
32449
+
32450
+
32451
+ /**
32452
+ * Static version of the {@see toObject} method.
32453
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
32454
+ * the JSPB instance for transitional soy proto support:
32455
+ * http://goto/soy-param-migration
32456
+ * @param {!proto.gateway.web.v1.AISessionInsights} msg The msg instance to transform.
32457
+ * @return {!Object}
32458
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32459
+ */
32460
+ proto.gateway.web.v1.AISessionInsights.toObject = function(includeInstance, msg) {
32461
+ var f, obj = {
32462
+ insightsList: jspb.Message.toObjectList(msg.getInsightsList(),
32463
+ proto.gateway.web.v1.AISessionInsight.toObject, includeInstance),
32464
+ model: jspb.Message.getFieldWithDefault(msg, 2, ""),
32465
+ version: jspb.Message.getFieldWithDefault(msg, 3, ""),
32466
+ inputSessionVersion: jspb.Message.getFieldWithDefault(msg, 4, 0),
32467
+ analyzedAt: (f = msg.getAnalyzedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
32468
+ };
32469
+
32470
+ if (includeInstance) {
32471
+ obj.$jspbMessageInstance = msg;
32472
+ }
32473
+ return obj;
32474
+ };
32475
+ }
32476
+
32477
+
32478
+ /**
32479
+ * Deserializes binary data (in protobuf wire format).
32480
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
32481
+ * @return {!proto.gateway.web.v1.AISessionInsights}
32482
+ */
32483
+ proto.gateway.web.v1.AISessionInsights.deserializeBinary = function(bytes) {
32484
+ var reader = new jspb.BinaryReader(bytes);
32485
+ var msg = new proto.gateway.web.v1.AISessionInsights;
32486
+ return proto.gateway.web.v1.AISessionInsights.deserializeBinaryFromReader(msg, reader);
32487
+ };
32488
+
32489
+
32490
+ /**
32491
+ * Deserializes binary data (in protobuf wire format) from the
32492
+ * given reader into the given message object.
32493
+ * @param {!proto.gateway.web.v1.AISessionInsights} msg The message object to deserialize into.
32494
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
32495
+ * @return {!proto.gateway.web.v1.AISessionInsights}
32496
+ */
32497
+ proto.gateway.web.v1.AISessionInsights.deserializeBinaryFromReader = function(msg, reader) {
32498
+ while (reader.nextField()) {
32499
+ if (reader.isEndGroup()) {
32500
+ break;
32501
+ }
32502
+ var field = reader.getFieldNumber();
32503
+ switch (field) {
32504
+ case 1:
32505
+ var value = new proto.gateway.web.v1.AISessionInsight;
32506
+ reader.readMessage(value,proto.gateway.web.v1.AISessionInsight.deserializeBinaryFromReader);
32507
+ msg.addInsights(value);
32508
+ break;
32509
+ case 2:
32510
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
32511
+ msg.setModel(value);
32512
+ break;
32513
+ case 3:
32514
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
32515
+ msg.setVersion(value);
32516
+ break;
32517
+ case 4:
32518
+ var value = /** @type {number} */ (reader.readUint64());
32519
+ msg.setInputSessionVersion(value);
32520
+ break;
32521
+ case 5:
32522
+ var value = new google_protobuf_timestamp_pb.Timestamp;
32523
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
32524
+ msg.setAnalyzedAt(value);
32525
+ break;
32526
+ default:
32527
+ reader.skipField();
32528
+ break;
32529
+ }
32530
+ }
32531
+ return msg;
32532
+ };
32533
+
32534
+
32535
+ /**
32536
+ * Serializes the message to binary data (in protobuf wire format).
32537
+ * @return {!Uint8Array}
32538
+ */
32539
+ proto.gateway.web.v1.AISessionInsights.prototype.serializeBinary = function() {
32540
+ var writer = new jspb.BinaryWriter();
32541
+ proto.gateway.web.v1.AISessionInsights.serializeBinaryToWriter(this, writer);
32542
+ return writer.getResultBuffer();
32543
+ };
32544
+
32545
+
32546
+ /**
32547
+ * Serializes the given message to binary data (in protobuf wire
32548
+ * format), writing to the given BinaryWriter.
32549
+ * @param {!proto.gateway.web.v1.AISessionInsights} message
32550
+ * @param {!jspb.BinaryWriter} writer
32551
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32552
+ */
32553
+ proto.gateway.web.v1.AISessionInsights.serializeBinaryToWriter = function(message, writer) {
32554
+ var f = undefined;
32555
+ f = message.getInsightsList();
32556
+ if (f.length > 0) {
32557
+ writer.writeRepeatedMessage(
32558
+ 1,
32559
+ f,
32560
+ proto.gateway.web.v1.AISessionInsight.serializeBinaryToWriter
32561
+ );
32562
+ }
32563
+ f = message.getModel();
32564
+ if (f.length > 0) {
32565
+ writer.writeString(
32566
+ 2,
32567
+ f
32568
+ );
32569
+ }
32570
+ f = message.getVersion();
32571
+ if (f.length > 0) {
32572
+ writer.writeString(
32573
+ 3,
32574
+ f
32575
+ );
32576
+ }
32577
+ f = message.getInputSessionVersion();
32578
+ if (f !== 0) {
32579
+ writer.writeUint64(
32580
+ 4,
32581
+ f
32582
+ );
32583
+ }
32584
+ f = message.getAnalyzedAt();
32585
+ if (f != null) {
32586
+ writer.writeMessage(
32587
+ 5,
32588
+ f,
32589
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
32590
+ );
32591
+ }
32592
+ };
32593
+
32594
+
32595
+ /**
32596
+ * repeated AISessionInsight insights = 1;
32597
+ * @return {!Array<!proto.gateway.web.v1.AISessionInsight>}
32598
+ */
32599
+ proto.gateway.web.v1.AISessionInsights.prototype.getInsightsList = function() {
32600
+ return /** @type{!Array<!proto.gateway.web.v1.AISessionInsight>} */ (
32601
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AISessionInsight, 1));
32602
+ };
32603
+
32604
+
32605
+ /**
32606
+ * @param {!Array<!proto.gateway.web.v1.AISessionInsight>} value
32607
+ * @return {!proto.gateway.web.v1.AISessionInsights} returns this
32608
+ */
32609
+ proto.gateway.web.v1.AISessionInsights.prototype.setInsightsList = function(value) {
32610
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
32611
+ };
32612
+
32613
+
32614
+ /**
32615
+ * @param {!proto.gateway.web.v1.AISessionInsight=} opt_value
32616
+ * @param {number=} opt_index
32617
+ * @return {!proto.gateway.web.v1.AISessionInsight}
32618
+ */
32619
+ proto.gateway.web.v1.AISessionInsights.prototype.addInsights = function(opt_value, opt_index) {
32620
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.gateway.web.v1.AISessionInsight, opt_index);
32621
+ };
32622
+
32623
+
32624
+ /**
32625
+ * Clears the list making it empty but non-null.
32626
+ * @return {!proto.gateway.web.v1.AISessionInsights} returns this
32627
+ */
32628
+ proto.gateway.web.v1.AISessionInsights.prototype.clearInsightsList = function() {
32629
+ return this.setInsightsList([]);
32630
+ };
32631
+
32632
+
32633
+ /**
32634
+ * optional string model = 2;
32635
+ * @return {string}
32636
+ */
32637
+ proto.gateway.web.v1.AISessionInsights.prototype.getModel = function() {
32638
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
32639
+ };
32640
+
32641
+
32642
+ /**
32643
+ * @param {string} value
32644
+ * @return {!proto.gateway.web.v1.AISessionInsights} returns this
32645
+ */
32646
+ proto.gateway.web.v1.AISessionInsights.prototype.setModel = function(value) {
32647
+ return jspb.Message.setProto3StringField(this, 2, value);
32648
+ };
32649
+
32650
+
32651
+ /**
32652
+ * optional string version = 3;
32653
+ * @return {string}
32654
+ */
32655
+ proto.gateway.web.v1.AISessionInsights.prototype.getVersion = function() {
32656
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
32657
+ };
32658
+
32659
+
32660
+ /**
32661
+ * @param {string} value
32662
+ * @return {!proto.gateway.web.v1.AISessionInsights} returns this
32663
+ */
32664
+ proto.gateway.web.v1.AISessionInsights.prototype.setVersion = function(value) {
32665
+ return jspb.Message.setProto3StringField(this, 3, value);
32666
+ };
32667
+
32668
+
32669
+ /**
32670
+ * optional uint64 input_session_version = 4;
32671
+ * @return {number}
32672
+ */
32673
+ proto.gateway.web.v1.AISessionInsights.prototype.getInputSessionVersion = function() {
32674
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
32675
+ };
32676
+
32677
+
32678
+ /**
32679
+ * @param {number} value
32680
+ * @return {!proto.gateway.web.v1.AISessionInsights} returns this
32681
+ */
32682
+ proto.gateway.web.v1.AISessionInsights.prototype.setInputSessionVersion = function(value) {
32683
+ return jspb.Message.setProto3IntField(this, 4, value);
32684
+ };
32685
+
32686
+
32687
+ /**
32688
+ * optional google.protobuf.Timestamp analyzed_at = 5;
32689
+ * @return {?proto.google.protobuf.Timestamp}
32690
+ */
32691
+ proto.gateway.web.v1.AISessionInsights.prototype.getAnalyzedAt = function() {
32692
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
32693
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
32694
+ };
32695
+
32696
+
32697
+ /**
32698
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
32699
+ * @return {!proto.gateway.web.v1.AISessionInsights} returns this
32700
+ */
32701
+ proto.gateway.web.v1.AISessionInsights.prototype.setAnalyzedAt = function(value) {
32702
+ return jspb.Message.setWrapperField(this, 5, value);
32703
+ };
32704
+
32705
+
32706
+ /**
32707
+ * Clears the message field making it undefined.
32708
+ * @return {!proto.gateway.web.v1.AISessionInsights} returns this
32709
+ */
32710
+ proto.gateway.web.v1.AISessionInsights.prototype.clearAnalyzedAt = function() {
32711
+ return this.setAnalyzedAt(undefined);
32712
+ };
32713
+
32714
+
32715
+ /**
32716
+ * Returns whether this field is set.
32717
+ * @return {boolean}
32718
+ */
32719
+ proto.gateway.web.v1.AISessionInsights.prototype.hasAnalyzedAt = function() {
32720
+ return jspb.Message.getField(this, 5) != null;
32721
+ };
32722
+
32723
+
32724
+
32725
+ /**
32726
+ * List of repeated fields within this message type.
32727
+ * @private {!Array<number>}
32728
+ * @const
32729
+ */
32730
+ proto.gateway.web.v1.AISessionInsight.repeatedFields_ = [3];
32731
+
32732
+
32733
+
32734
+ if (jspb.Message.GENERATE_TO_OBJECT) {
32735
+ /**
32736
+ * Creates an object representation of this proto.
32737
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
32738
+ * Optional fields that are not set will be set to undefined.
32739
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
32740
+ * For the list of reserved names please see:
32741
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
32742
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
32743
+ * JSPB instance for transitional soy proto support:
32744
+ * http://goto/soy-param-migration
32745
+ * @return {!Object}
32746
+ */
32747
+ proto.gateway.web.v1.AISessionInsight.prototype.toObject = function(opt_includeInstance) {
32748
+ return proto.gateway.web.v1.AISessionInsight.toObject(opt_includeInstance, this);
32749
+ };
32750
+
32751
+
32752
+ /**
32753
+ * Static version of the {@see toObject} method.
32754
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
32755
+ * the JSPB instance for transitional soy proto support:
32756
+ * http://goto/soy-param-migration
32757
+ * @param {!proto.gateway.web.v1.AISessionInsight} msg The msg instance to transform.
32758
+ * @return {!Object}
32759
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32760
+ */
32761
+ proto.gateway.web.v1.AISessionInsight.toObject = function(includeInstance, msg) {
32762
+ var f, obj = {
32763
+ category: jspb.Message.getFieldWithDefault(msg, 1, 0),
32764
+ actionType: jspb.Message.getFieldWithDefault(msg, 2, 0),
32765
+ evidenceRefsList: jspb.Message.toObjectList(msg.getEvidenceRefsList(),
32766
+ proto.gateway.web.v1.AISessionEventRef.toObject, includeInstance),
32767
+ cause: jspb.Message.getFieldWithDefault(msg, 4, ""),
32768
+ action: jspb.Message.getFieldWithDefault(msg, 5, "")
32769
+ };
32770
+
32771
+ if (includeInstance) {
32772
+ obj.$jspbMessageInstance = msg;
32773
+ }
32774
+ return obj;
32775
+ };
32776
+ }
32777
+
32778
+
32779
+ /**
32780
+ * Deserializes binary data (in protobuf wire format).
32781
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
32782
+ * @return {!proto.gateway.web.v1.AISessionInsight}
32783
+ */
32784
+ proto.gateway.web.v1.AISessionInsight.deserializeBinary = function(bytes) {
32785
+ var reader = new jspb.BinaryReader(bytes);
32786
+ var msg = new proto.gateway.web.v1.AISessionInsight;
32787
+ return proto.gateway.web.v1.AISessionInsight.deserializeBinaryFromReader(msg, reader);
32788
+ };
32789
+
32790
+
32791
+ /**
32792
+ * Deserializes binary data (in protobuf wire format) from the
32793
+ * given reader into the given message object.
32794
+ * @param {!proto.gateway.web.v1.AISessionInsight} msg The message object to deserialize into.
32795
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
32796
+ * @return {!proto.gateway.web.v1.AISessionInsight}
32797
+ */
32798
+ proto.gateway.web.v1.AISessionInsight.deserializeBinaryFromReader = function(msg, reader) {
32799
+ while (reader.nextField()) {
32800
+ if (reader.isEndGroup()) {
32801
+ break;
32802
+ }
32803
+ var field = reader.getFieldNumber();
32804
+ switch (field) {
32805
+ case 1:
32806
+ var value = /** @type {!proto.gateway.web.v1.AISessionInsightCategory} */ (reader.readEnum());
32807
+ msg.setCategory(value);
32808
+ break;
32809
+ case 2:
32810
+ var value = /** @type {!proto.gateway.web.v1.AISessionInsightActionType} */ (reader.readEnum());
32811
+ msg.setActionType(value);
32812
+ break;
32813
+ case 3:
32814
+ var value = new proto.gateway.web.v1.AISessionEventRef;
32815
+ reader.readMessage(value,proto.gateway.web.v1.AISessionEventRef.deserializeBinaryFromReader);
32816
+ msg.addEvidenceRefs(value);
32817
+ break;
32818
+ case 4:
32819
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
32820
+ msg.setCause(value);
32821
+ break;
32822
+ case 5:
32823
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
32824
+ msg.setAction(value);
32825
+ break;
32826
+ default:
32827
+ reader.skipField();
32828
+ break;
32829
+ }
32830
+ }
32831
+ return msg;
32832
+ };
32833
+
32834
+
32835
+ /**
32836
+ * Serializes the message to binary data (in protobuf wire format).
32837
+ * @return {!Uint8Array}
32838
+ */
32839
+ proto.gateway.web.v1.AISessionInsight.prototype.serializeBinary = function() {
32840
+ var writer = new jspb.BinaryWriter();
32841
+ proto.gateway.web.v1.AISessionInsight.serializeBinaryToWriter(this, writer);
32842
+ return writer.getResultBuffer();
32843
+ };
32844
+
32845
+
32846
+ /**
32847
+ * Serializes the given message to binary data (in protobuf wire
32848
+ * format), writing to the given BinaryWriter.
32849
+ * @param {!proto.gateway.web.v1.AISessionInsight} message
32850
+ * @param {!jspb.BinaryWriter} writer
32851
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32852
+ */
32853
+ proto.gateway.web.v1.AISessionInsight.serializeBinaryToWriter = function(message, writer) {
32854
+ var f = undefined;
32855
+ f = message.getCategory();
32856
+ if (f !== 0.0) {
32857
+ writer.writeEnum(
32858
+ 1,
32859
+ f
32860
+ );
32861
+ }
32862
+ f = message.getActionType();
32863
+ if (f !== 0.0) {
32864
+ writer.writeEnum(
32865
+ 2,
32866
+ f
32867
+ );
32868
+ }
32869
+ f = message.getEvidenceRefsList();
32870
+ if (f.length > 0) {
32871
+ writer.writeRepeatedMessage(
32872
+ 3,
32873
+ f,
32874
+ proto.gateway.web.v1.AISessionEventRef.serializeBinaryToWriter
32875
+ );
32876
+ }
32877
+ f = message.getCause();
32878
+ if (f.length > 0) {
32879
+ writer.writeString(
32880
+ 4,
32881
+ f
32882
+ );
32883
+ }
32884
+ f = message.getAction();
32885
+ if (f.length > 0) {
32886
+ writer.writeString(
32887
+ 5,
32888
+ f
32889
+ );
32890
+ }
32891
+ };
32892
+
32893
+
32894
+ /**
32895
+ * optional AISessionInsightCategory category = 1;
32896
+ * @return {!proto.gateway.web.v1.AISessionInsightCategory}
32897
+ */
32898
+ proto.gateway.web.v1.AISessionInsight.prototype.getCategory = function() {
32899
+ return /** @type {!proto.gateway.web.v1.AISessionInsightCategory} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
32900
+ };
32901
+
32902
+
32903
+ /**
32904
+ * @param {!proto.gateway.web.v1.AISessionInsightCategory} value
32905
+ * @return {!proto.gateway.web.v1.AISessionInsight} returns this
32906
+ */
32907
+ proto.gateway.web.v1.AISessionInsight.prototype.setCategory = function(value) {
32908
+ return jspb.Message.setProto3EnumField(this, 1, value);
32909
+ };
32910
+
32911
+
32912
+ /**
32913
+ * optional AISessionInsightActionType action_type = 2;
32914
+ * @return {!proto.gateway.web.v1.AISessionInsightActionType}
32915
+ */
32916
+ proto.gateway.web.v1.AISessionInsight.prototype.getActionType = function() {
32917
+ return /** @type {!proto.gateway.web.v1.AISessionInsightActionType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
32918
+ };
32919
+
32920
+
32921
+ /**
32922
+ * @param {!proto.gateway.web.v1.AISessionInsightActionType} value
32923
+ * @return {!proto.gateway.web.v1.AISessionInsight} returns this
32924
+ */
32925
+ proto.gateway.web.v1.AISessionInsight.prototype.setActionType = function(value) {
32926
+ return jspb.Message.setProto3EnumField(this, 2, value);
32927
+ };
32928
+
32929
+
32930
+ /**
32931
+ * repeated AISessionEventRef evidence_refs = 3;
32932
+ * @return {!Array<!proto.gateway.web.v1.AISessionEventRef>}
32933
+ */
32934
+ proto.gateway.web.v1.AISessionInsight.prototype.getEvidenceRefsList = function() {
32935
+ return /** @type{!Array<!proto.gateway.web.v1.AISessionEventRef>} */ (
32936
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AISessionEventRef, 3));
32937
+ };
32938
+
32939
+
32940
+ /**
32941
+ * @param {!Array<!proto.gateway.web.v1.AISessionEventRef>} value
32942
+ * @return {!proto.gateway.web.v1.AISessionInsight} returns this
32943
+ */
32944
+ proto.gateway.web.v1.AISessionInsight.prototype.setEvidenceRefsList = function(value) {
32945
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
32946
+ };
32947
+
32948
+
32949
+ /**
32950
+ * @param {!proto.gateway.web.v1.AISessionEventRef=} opt_value
32951
+ * @param {number=} opt_index
32952
+ * @return {!proto.gateway.web.v1.AISessionEventRef}
32953
+ */
32954
+ proto.gateway.web.v1.AISessionInsight.prototype.addEvidenceRefs = function(opt_value, opt_index) {
32955
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gateway.web.v1.AISessionEventRef, opt_index);
32956
+ };
32957
+
32958
+
32959
+ /**
32960
+ * Clears the list making it empty but non-null.
32961
+ * @return {!proto.gateway.web.v1.AISessionInsight} returns this
32962
+ */
32963
+ proto.gateway.web.v1.AISessionInsight.prototype.clearEvidenceRefsList = function() {
32964
+ return this.setEvidenceRefsList([]);
32965
+ };
32966
+
32967
+
32968
+ /**
32969
+ * optional string cause = 4;
32970
+ * @return {string}
32971
+ */
32972
+ proto.gateway.web.v1.AISessionInsight.prototype.getCause = function() {
32973
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
32974
+ };
32975
+
32976
+
32977
+ /**
32978
+ * @param {string} value
32979
+ * @return {!proto.gateway.web.v1.AISessionInsight} returns this
32980
+ */
32981
+ proto.gateway.web.v1.AISessionInsight.prototype.setCause = function(value) {
32982
+ return jspb.Message.setProto3StringField(this, 4, value);
32983
+ };
32984
+
32985
+
32986
+ /**
32987
+ * optional string action = 5;
32988
+ * @return {string}
32989
+ */
32990
+ proto.gateway.web.v1.AISessionInsight.prototype.getAction = function() {
32991
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
32992
+ };
32993
+
32994
+
32995
+ /**
32996
+ * @param {string} value
32997
+ * @return {!proto.gateway.web.v1.AISessionInsight} returns this
32998
+ */
32999
+ proto.gateway.web.v1.AISessionInsight.prototype.setAction = function(value) {
33000
+ return jspb.Message.setProto3StringField(this, 5, value);
33001
+ };
33002
+
33003
+
33004
+
33005
+
33006
+
33007
+ if (jspb.Message.GENERATE_TO_OBJECT) {
33008
+ /**
33009
+ * Creates an object representation of this proto.
33010
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
33011
+ * Optional fields that are not set will be set to undefined.
33012
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
33013
+ * For the list of reserved names please see:
33014
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
33015
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
33016
+ * JSPB instance for transitional soy proto support:
33017
+ * http://goto/soy-param-migration
33018
+ * @return {!Object}
33019
+ */
33020
+ proto.gateway.web.v1.AISessionEventRef.prototype.toObject = function(opt_includeInstance) {
33021
+ return proto.gateway.web.v1.AISessionEventRef.toObject(opt_includeInstance, this);
33022
+ };
33023
+
33024
+
33025
+ /**
33026
+ * Static version of the {@see toObject} method.
33027
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
33028
+ * the JSPB instance for transitional soy proto support:
33029
+ * http://goto/soy-param-migration
33030
+ * @param {!proto.gateway.web.v1.AISessionEventRef} msg The msg instance to transform.
33031
+ * @return {!Object}
33032
+ * @suppress {unusedLocalVariables} f is only used for nested messages
33033
+ */
33034
+ proto.gateway.web.v1.AISessionEventRef.toObject = function(includeInstance, msg) {
33035
+ var f, obj = {
33036
+ eventType: jspb.Message.getFieldWithDefault(msg, 1, ""),
33037
+ eventSubtype: jspb.Message.getFieldWithDefault(msg, 2, ""),
33038
+ eventKey: jspb.Message.getFieldWithDefault(msg, 3, "")
33039
+ };
33040
+
33041
+ if (includeInstance) {
33042
+ obj.$jspbMessageInstance = msg;
33043
+ }
33044
+ return obj;
33045
+ };
33046
+ }
33047
+
33048
+
33049
+ /**
33050
+ * Deserializes binary data (in protobuf wire format).
33051
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
33052
+ * @return {!proto.gateway.web.v1.AISessionEventRef}
33053
+ */
33054
+ proto.gateway.web.v1.AISessionEventRef.deserializeBinary = function(bytes) {
33055
+ var reader = new jspb.BinaryReader(bytes);
33056
+ var msg = new proto.gateway.web.v1.AISessionEventRef;
33057
+ return proto.gateway.web.v1.AISessionEventRef.deserializeBinaryFromReader(msg, reader);
33058
+ };
33059
+
33060
+
33061
+ /**
33062
+ * Deserializes binary data (in protobuf wire format) from the
33063
+ * given reader into the given message object.
33064
+ * @param {!proto.gateway.web.v1.AISessionEventRef} msg The message object to deserialize into.
33065
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
33066
+ * @return {!proto.gateway.web.v1.AISessionEventRef}
33067
+ */
33068
+ proto.gateway.web.v1.AISessionEventRef.deserializeBinaryFromReader = function(msg, reader) {
33069
+ while (reader.nextField()) {
33070
+ if (reader.isEndGroup()) {
33071
+ break;
33072
+ }
33073
+ var field = reader.getFieldNumber();
33074
+ switch (field) {
33075
+ case 1:
33076
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
33077
+ msg.setEventType(value);
33078
+ break;
33079
+ case 2:
33080
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
33081
+ msg.setEventSubtype(value);
33082
+ break;
33083
+ case 3:
33084
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
33085
+ msg.setEventKey(value);
33086
+ break;
33087
+ default:
33088
+ reader.skipField();
33089
+ break;
33090
+ }
33091
+ }
33092
+ return msg;
33093
+ };
33094
+
33095
+
33096
+ /**
33097
+ * Serializes the message to binary data (in protobuf wire format).
33098
+ * @return {!Uint8Array}
33099
+ */
33100
+ proto.gateway.web.v1.AISessionEventRef.prototype.serializeBinary = function() {
33101
+ var writer = new jspb.BinaryWriter();
33102
+ proto.gateway.web.v1.AISessionEventRef.serializeBinaryToWriter(this, writer);
33103
+ return writer.getResultBuffer();
33104
+ };
33105
+
33106
+
33107
+ /**
33108
+ * Serializes the given message to binary data (in protobuf wire
33109
+ * format), writing to the given BinaryWriter.
33110
+ * @param {!proto.gateway.web.v1.AISessionEventRef} message
33111
+ * @param {!jspb.BinaryWriter} writer
33112
+ * @suppress {unusedLocalVariables} f is only used for nested messages
33113
+ */
33114
+ proto.gateway.web.v1.AISessionEventRef.serializeBinaryToWriter = function(message, writer) {
33115
+ var f = undefined;
33116
+ f = message.getEventType();
33117
+ if (f.length > 0) {
33118
+ writer.writeString(
33119
+ 1,
33120
+ f
33121
+ );
33122
+ }
33123
+ f = message.getEventSubtype();
33124
+ if (f.length > 0) {
33125
+ writer.writeString(
33126
+ 2,
33127
+ f
33128
+ );
33129
+ }
33130
+ f = message.getEventKey();
33131
+ if (f.length > 0) {
33132
+ writer.writeString(
33133
+ 3,
33134
+ f
33135
+ );
33136
+ }
33137
+ };
33138
+
33139
+
33140
+ /**
33141
+ * optional string event_type = 1;
33142
+ * @return {string}
33143
+ */
33144
+ proto.gateway.web.v1.AISessionEventRef.prototype.getEventType = function() {
33145
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
33146
+ };
33147
+
33148
+
33149
+ /**
33150
+ * @param {string} value
33151
+ * @return {!proto.gateway.web.v1.AISessionEventRef} returns this
33152
+ */
33153
+ proto.gateway.web.v1.AISessionEventRef.prototype.setEventType = function(value) {
33154
+ return jspb.Message.setProto3StringField(this, 1, value);
33155
+ };
33156
+
33157
+
33158
+ /**
33159
+ * optional string event_subtype = 2;
33160
+ * @return {string}
33161
+ */
33162
+ proto.gateway.web.v1.AISessionEventRef.prototype.getEventSubtype = function() {
33163
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
33164
+ };
33165
+
33166
+
33167
+ /**
33168
+ * @param {string} value
33169
+ * @return {!proto.gateway.web.v1.AISessionEventRef} returns this
33170
+ */
33171
+ proto.gateway.web.v1.AISessionEventRef.prototype.setEventSubtype = function(value) {
33172
+ return jspb.Message.setProto3StringField(this, 2, value);
33173
+ };
33174
+
33175
+
33176
+ /**
33177
+ * optional string event_key = 3;
33178
+ * @return {string}
33179
+ */
33180
+ proto.gateway.web.v1.AISessionEventRef.prototype.getEventKey = function() {
33181
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
33182
+ };
33183
+
33184
+
33185
+ /**
33186
+ * @param {string} value
33187
+ * @return {!proto.gateway.web.v1.AISessionEventRef} returns this
33188
+ */
33189
+ proto.gateway.web.v1.AISessionEventRef.prototype.setEventKey = function(value) {
33190
+ return jspb.Message.setProto3StringField(this, 3, value);
33191
+ };
33192
+
33193
+
33194
+
33195
+ /**
33196
+ * List of repeated fields within this message type.
33197
+ * @private {!Array<number>}
33198
+ * @const
33199
+ */
33200
+ proto.gateway.web.v1.AISessionScore.repeatedFields_ = [3];
33201
+
33202
+
33203
+
33204
+ if (jspb.Message.GENERATE_TO_OBJECT) {
33205
+ /**
33206
+ * Creates an object representation of this proto.
33207
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
33208
+ * Optional fields that are not set will be set to undefined.
33209
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
33210
+ * For the list of reserved names please see:
33211
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
33212
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
33213
+ * JSPB instance for transitional soy proto support:
33214
+ * http://goto/soy-param-migration
33215
+ * @return {!Object}
33216
+ */
33217
+ proto.gateway.web.v1.AISessionScore.prototype.toObject = function(opt_includeInstance) {
33218
+ return proto.gateway.web.v1.AISessionScore.toObject(opt_includeInstance, this);
33219
+ };
33220
+
33221
+
33222
+ /**
33223
+ * Static version of the {@see toObject} method.
33224
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
33225
+ * the JSPB instance for transitional soy proto support:
33226
+ * http://goto/soy-param-migration
33227
+ * @param {!proto.gateway.web.v1.AISessionScore} msg The msg instance to transform.
33228
+ * @return {!Object}
33229
+ * @suppress {unusedLocalVariables} f is only used for nested messages
33230
+ */
33231
+ proto.gateway.web.v1.AISessionScore.toObject = function(includeInstance, msg) {
33232
+ var f, obj = {
33233
+ formulaVersion: jspb.Message.getFieldWithDefault(msg, 1, ""),
33234
+ score: jspb.Message.getFieldWithDefault(msg, 2, 0),
33235
+ componentsList: jspb.Message.toObjectList(msg.getComponentsList(),
33236
+ proto.gateway.web.v1.AISessionScoreComponent.toObject, includeInstance),
33237
+ scoreVersion: jspb.Message.getFieldWithDefault(msg, 4, ""),
33238
+ inputSessionVersion: jspb.Message.getFieldWithDefault(msg, 5, 0),
33239
+ scoredAt: (f = msg.getScoredAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
33240
+ };
33241
+
33242
+ if (includeInstance) {
33243
+ obj.$jspbMessageInstance = msg;
33244
+ }
33245
+ return obj;
33246
+ };
33247
+ }
33248
+
33249
+
33250
+ /**
33251
+ * Deserializes binary data (in protobuf wire format).
33252
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
33253
+ * @return {!proto.gateway.web.v1.AISessionScore}
33254
+ */
33255
+ proto.gateway.web.v1.AISessionScore.deserializeBinary = function(bytes) {
33256
+ var reader = new jspb.BinaryReader(bytes);
33257
+ var msg = new proto.gateway.web.v1.AISessionScore;
33258
+ return proto.gateway.web.v1.AISessionScore.deserializeBinaryFromReader(msg, reader);
33259
+ };
33260
+
33261
+
33262
+ /**
33263
+ * Deserializes binary data (in protobuf wire format) from the
33264
+ * given reader into the given message object.
33265
+ * @param {!proto.gateway.web.v1.AISessionScore} msg The message object to deserialize into.
33266
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
33267
+ * @return {!proto.gateway.web.v1.AISessionScore}
33268
+ */
33269
+ proto.gateway.web.v1.AISessionScore.deserializeBinaryFromReader = function(msg, reader) {
33270
+ while (reader.nextField()) {
33271
+ if (reader.isEndGroup()) {
33272
+ break;
33273
+ }
33274
+ var field = reader.getFieldNumber();
33275
+ switch (field) {
33276
+ case 1:
33277
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
33278
+ msg.setFormulaVersion(value);
33279
+ break;
33280
+ case 2:
33281
+ var value = /** @type {number} */ (reader.readInt32());
33282
+ msg.setScore(value);
33283
+ break;
33284
+ case 3:
33285
+ var value = new proto.gateway.web.v1.AISessionScoreComponent;
33286
+ reader.readMessage(value,proto.gateway.web.v1.AISessionScoreComponent.deserializeBinaryFromReader);
33287
+ msg.addComponents(value);
33288
+ break;
33289
+ case 4:
33290
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
33291
+ msg.setScoreVersion(value);
33292
+ break;
33293
+ case 5:
33294
+ var value = /** @type {number} */ (reader.readUint64());
33295
+ msg.setInputSessionVersion(value);
33296
+ break;
33297
+ case 6:
33298
+ var value = new google_protobuf_timestamp_pb.Timestamp;
33299
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
33300
+ msg.setScoredAt(value);
33301
+ break;
33302
+ default:
33303
+ reader.skipField();
33304
+ break;
33305
+ }
33306
+ }
33307
+ return msg;
33308
+ };
33309
+
33310
+
33311
+ /**
33312
+ * Serializes the message to binary data (in protobuf wire format).
33313
+ * @return {!Uint8Array}
33314
+ */
33315
+ proto.gateway.web.v1.AISessionScore.prototype.serializeBinary = function() {
33316
+ var writer = new jspb.BinaryWriter();
33317
+ proto.gateway.web.v1.AISessionScore.serializeBinaryToWriter(this, writer);
33318
+ return writer.getResultBuffer();
33319
+ };
33320
+
33321
+
33322
+ /**
33323
+ * Serializes the given message to binary data (in protobuf wire
33324
+ * format), writing to the given BinaryWriter.
33325
+ * @param {!proto.gateway.web.v1.AISessionScore} message
33326
+ * @param {!jspb.BinaryWriter} writer
33327
+ * @suppress {unusedLocalVariables} f is only used for nested messages
33328
+ */
33329
+ proto.gateway.web.v1.AISessionScore.serializeBinaryToWriter = function(message, writer) {
33330
+ var f = undefined;
33331
+ f = message.getFormulaVersion();
33332
+ if (f.length > 0) {
33333
+ writer.writeString(
33334
+ 1,
33335
+ f
33336
+ );
33337
+ }
33338
+ f = message.getScore();
33339
+ if (f !== 0) {
33340
+ writer.writeInt32(
33341
+ 2,
33342
+ f
33343
+ );
33344
+ }
33345
+ f = message.getComponentsList();
33346
+ if (f.length > 0) {
33347
+ writer.writeRepeatedMessage(
33348
+ 3,
33349
+ f,
33350
+ proto.gateway.web.v1.AISessionScoreComponent.serializeBinaryToWriter
33351
+ );
33352
+ }
33353
+ f = message.getScoreVersion();
33354
+ if (f.length > 0) {
33355
+ writer.writeString(
33356
+ 4,
33357
+ f
33358
+ );
33359
+ }
33360
+ f = message.getInputSessionVersion();
33361
+ if (f !== 0) {
33362
+ writer.writeUint64(
33363
+ 5,
33364
+ f
33365
+ );
33366
+ }
33367
+ f = message.getScoredAt();
33368
+ if (f != null) {
33369
+ writer.writeMessage(
33370
+ 6,
33371
+ f,
33372
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
33373
+ );
33374
+ }
33375
+ };
33376
+
33377
+
33378
+ /**
33379
+ * optional string formula_version = 1;
33380
+ * @return {string}
33381
+ */
33382
+ proto.gateway.web.v1.AISessionScore.prototype.getFormulaVersion = function() {
33383
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
33384
+ };
33385
+
33386
+
33387
+ /**
33388
+ * @param {string} value
33389
+ * @return {!proto.gateway.web.v1.AISessionScore} returns this
33390
+ */
33391
+ proto.gateway.web.v1.AISessionScore.prototype.setFormulaVersion = function(value) {
33392
+ return jspb.Message.setProto3StringField(this, 1, value);
33393
+ };
33394
+
33395
+
33396
+ /**
33397
+ * optional int32 score = 2;
33398
+ * @return {number}
33399
+ */
33400
+ proto.gateway.web.v1.AISessionScore.prototype.getScore = function() {
33401
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
33402
+ };
33403
+
33404
+
33405
+ /**
33406
+ * @param {number} value
33407
+ * @return {!proto.gateway.web.v1.AISessionScore} returns this
33408
+ */
33409
+ proto.gateway.web.v1.AISessionScore.prototype.setScore = function(value) {
33410
+ return jspb.Message.setProto3IntField(this, 2, value);
33411
+ };
33412
+
33413
+
33414
+ /**
33415
+ * repeated AISessionScoreComponent components = 3;
33416
+ * @return {!Array<!proto.gateway.web.v1.AISessionScoreComponent>}
33417
+ */
33418
+ proto.gateway.web.v1.AISessionScore.prototype.getComponentsList = function() {
33419
+ return /** @type{!Array<!proto.gateway.web.v1.AISessionScoreComponent>} */ (
33420
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AISessionScoreComponent, 3));
33421
+ };
33422
+
33423
+
33424
+ /**
33425
+ * @param {!Array<!proto.gateway.web.v1.AISessionScoreComponent>} value
33426
+ * @return {!proto.gateway.web.v1.AISessionScore} returns this
33427
+ */
33428
+ proto.gateway.web.v1.AISessionScore.prototype.setComponentsList = function(value) {
33429
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
33430
+ };
33431
+
33432
+
33433
+ /**
33434
+ * @param {!proto.gateway.web.v1.AISessionScoreComponent=} opt_value
33435
+ * @param {number=} opt_index
33436
+ * @return {!proto.gateway.web.v1.AISessionScoreComponent}
33437
+ */
33438
+ proto.gateway.web.v1.AISessionScore.prototype.addComponents = function(opt_value, opt_index) {
33439
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gateway.web.v1.AISessionScoreComponent, opt_index);
33440
+ };
33441
+
33442
+
33443
+ /**
33444
+ * Clears the list making it empty but non-null.
33445
+ * @return {!proto.gateway.web.v1.AISessionScore} returns this
33446
+ */
33447
+ proto.gateway.web.v1.AISessionScore.prototype.clearComponentsList = function() {
33448
+ return this.setComponentsList([]);
33449
+ };
33450
+
33451
+
33452
+ /**
33453
+ * optional string score_version = 4;
33454
+ * @return {string}
33455
+ */
33456
+ proto.gateway.web.v1.AISessionScore.prototype.getScoreVersion = function() {
33457
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
33458
+ };
33459
+
33460
+
33461
+ /**
33462
+ * @param {string} value
33463
+ * @return {!proto.gateway.web.v1.AISessionScore} returns this
33464
+ */
33465
+ proto.gateway.web.v1.AISessionScore.prototype.setScoreVersion = function(value) {
33466
+ return jspb.Message.setProto3StringField(this, 4, value);
33467
+ };
33468
+
33469
+
33470
+ /**
33471
+ * optional uint64 input_session_version = 5;
33472
+ * @return {number}
33473
+ */
33474
+ proto.gateway.web.v1.AISessionScore.prototype.getInputSessionVersion = function() {
33475
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
33476
+ };
33477
+
33478
+
33479
+ /**
33480
+ * @param {number} value
33481
+ * @return {!proto.gateway.web.v1.AISessionScore} returns this
33482
+ */
33483
+ proto.gateway.web.v1.AISessionScore.prototype.setInputSessionVersion = function(value) {
33484
+ return jspb.Message.setProto3IntField(this, 5, value);
33485
+ };
33486
+
33487
+
33488
+ /**
33489
+ * optional google.protobuf.Timestamp scored_at = 6;
33490
+ * @return {?proto.google.protobuf.Timestamp}
33491
+ */
33492
+ proto.gateway.web.v1.AISessionScore.prototype.getScoredAt = function() {
33493
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
33494
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
33495
+ };
33496
+
33497
+
33498
+ /**
33499
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
33500
+ * @return {!proto.gateway.web.v1.AISessionScore} returns this
33501
+ */
33502
+ proto.gateway.web.v1.AISessionScore.prototype.setScoredAt = function(value) {
33503
+ return jspb.Message.setWrapperField(this, 6, value);
33504
+ };
33505
+
33506
+
33507
+ /**
33508
+ * Clears the message field making it undefined.
33509
+ * @return {!proto.gateway.web.v1.AISessionScore} returns this
33510
+ */
33511
+ proto.gateway.web.v1.AISessionScore.prototype.clearScoredAt = function() {
33512
+ return this.setScoredAt(undefined);
33513
+ };
33514
+
33515
+
33516
+ /**
33517
+ * Returns whether this field is set.
33518
+ * @return {boolean}
33519
+ */
33520
+ proto.gateway.web.v1.AISessionScore.prototype.hasScoredAt = function() {
33521
+ return jspb.Message.getField(this, 6) != null;
33522
+ };
33523
+
33524
+
33525
+
33526
+
33527
+
33528
+ if (jspb.Message.GENERATE_TO_OBJECT) {
33529
+ /**
33530
+ * Creates an object representation of this proto.
33531
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
33532
+ * Optional fields that are not set will be set to undefined.
33533
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
33534
+ * For the list of reserved names please see:
33535
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
33536
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
33537
+ * JSPB instance for transitional soy proto support:
33538
+ * http://goto/soy-param-migration
33539
+ * @return {!Object}
33540
+ */
33541
+ proto.gateway.web.v1.AISessionScoreComponent.prototype.toObject = function(opt_includeInstance) {
33542
+ return proto.gateway.web.v1.AISessionScoreComponent.toObject(opt_includeInstance, this);
33543
+ };
33544
+
33545
+
33546
+ /**
33547
+ * Static version of the {@see toObject} method.
33548
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
33549
+ * the JSPB instance for transitional soy proto support:
33550
+ * http://goto/soy-param-migration
33551
+ * @param {!proto.gateway.web.v1.AISessionScoreComponent} msg The msg instance to transform.
33552
+ * @return {!Object}
33553
+ * @suppress {unusedLocalVariables} f is only used for nested messages
33554
+ */
33555
+ proto.gateway.web.v1.AISessionScoreComponent.toObject = function(includeInstance, msg) {
33556
+ var f, obj = {
33557
+ kind: jspb.Message.getFieldWithDefault(msg, 1, 0),
33558
+ available: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
33559
+ baseWeight: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
33560
+ weight: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
33561
+ value: (f = jspb.Message.getOptionalFloatingPointField(msg, 5)) == null ? undefined : f,
33562
+ contribution: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0)
33563
+ };
33564
+
33565
+ if (includeInstance) {
33566
+ obj.$jspbMessageInstance = msg;
33567
+ }
33568
+ return obj;
33569
+ };
33570
+ }
33571
+
33572
+
33573
+ /**
33574
+ * Deserializes binary data (in protobuf wire format).
33575
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
33576
+ * @return {!proto.gateway.web.v1.AISessionScoreComponent}
33577
+ */
33578
+ proto.gateway.web.v1.AISessionScoreComponent.deserializeBinary = function(bytes) {
33579
+ var reader = new jspb.BinaryReader(bytes);
33580
+ var msg = new proto.gateway.web.v1.AISessionScoreComponent;
33581
+ return proto.gateway.web.v1.AISessionScoreComponent.deserializeBinaryFromReader(msg, reader);
33582
+ };
33583
+
33584
+
33585
+ /**
33586
+ * Deserializes binary data (in protobuf wire format) from the
33587
+ * given reader into the given message object.
33588
+ * @param {!proto.gateway.web.v1.AISessionScoreComponent} msg The message object to deserialize into.
33589
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
33590
+ * @return {!proto.gateway.web.v1.AISessionScoreComponent}
33591
+ */
33592
+ proto.gateway.web.v1.AISessionScoreComponent.deserializeBinaryFromReader = function(msg, reader) {
33593
+ while (reader.nextField()) {
33594
+ if (reader.isEndGroup()) {
33595
+ break;
33596
+ }
33597
+ var field = reader.getFieldNumber();
33598
+ switch (field) {
33599
+ case 1:
33600
+ var value = /** @type {!proto.gateway.web.v1.AISessionScoreComponentKind} */ (reader.readEnum());
33601
+ msg.setKind(value);
33602
+ break;
33603
+ case 2:
33604
+ var value = /** @type {boolean} */ (reader.readBool());
33605
+ msg.setAvailable(value);
33606
+ break;
33607
+ case 3:
33608
+ var value = /** @type {number} */ (reader.readDouble());
33609
+ msg.setBaseWeight(value);
33610
+ break;
33611
+ case 4:
33612
+ var value = /** @type {number} */ (reader.readDouble());
33613
+ msg.setWeight(value);
33614
+ break;
33615
+ case 5:
33616
+ var value = /** @type {number} */ (reader.readDouble());
33617
+ msg.setValue(value);
33618
+ break;
33619
+ case 6:
33620
+ var value = /** @type {number} */ (reader.readDouble());
33621
+ msg.setContribution(value);
33622
+ break;
33623
+ default:
33624
+ reader.skipField();
33625
+ break;
33626
+ }
33627
+ }
33628
+ return msg;
33629
+ };
33630
+
33631
+
33632
+ /**
33633
+ * Serializes the message to binary data (in protobuf wire format).
33634
+ * @return {!Uint8Array}
33635
+ */
33636
+ proto.gateway.web.v1.AISessionScoreComponent.prototype.serializeBinary = function() {
33637
+ var writer = new jspb.BinaryWriter();
33638
+ proto.gateway.web.v1.AISessionScoreComponent.serializeBinaryToWriter(this, writer);
33639
+ return writer.getResultBuffer();
33640
+ };
33641
+
33642
+
33643
+ /**
33644
+ * Serializes the given message to binary data (in protobuf wire
33645
+ * format), writing to the given BinaryWriter.
33646
+ * @param {!proto.gateway.web.v1.AISessionScoreComponent} message
33647
+ * @param {!jspb.BinaryWriter} writer
33648
+ * @suppress {unusedLocalVariables} f is only used for nested messages
33649
+ */
33650
+ proto.gateway.web.v1.AISessionScoreComponent.serializeBinaryToWriter = function(message, writer) {
33651
+ var f = undefined;
33652
+ f = message.getKind();
33653
+ if (f !== 0.0) {
33654
+ writer.writeEnum(
33655
+ 1,
33656
+ f
33657
+ );
33658
+ }
33659
+ f = message.getAvailable();
33660
+ if (f) {
33661
+ writer.writeBool(
33662
+ 2,
33663
+ f
33664
+ );
33665
+ }
33666
+ f = message.getBaseWeight();
33667
+ if (f !== 0.0) {
33668
+ writer.writeDouble(
33669
+ 3,
33670
+ f
33671
+ );
33672
+ }
33673
+ f = message.getWeight();
33674
+ if (f !== 0.0) {
33675
+ writer.writeDouble(
33676
+ 4,
33677
+ f
33678
+ );
33679
+ }
33680
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
33681
+ if (f != null) {
33682
+ writer.writeDouble(
33683
+ 5,
33684
+ f
33685
+ );
33686
+ }
33687
+ f = message.getContribution();
33688
+ if (f !== 0.0) {
33689
+ writer.writeDouble(
33690
+ 6,
33691
+ f
33692
+ );
33693
+ }
33694
+ };
33695
+
33696
+
33697
+ /**
33698
+ * optional AISessionScoreComponentKind kind = 1;
33699
+ * @return {!proto.gateway.web.v1.AISessionScoreComponentKind}
33700
+ */
33701
+ proto.gateway.web.v1.AISessionScoreComponent.prototype.getKind = function() {
33702
+ return /** @type {!proto.gateway.web.v1.AISessionScoreComponentKind} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
33703
+ };
33704
+
33705
+
33706
+ /**
33707
+ * @param {!proto.gateway.web.v1.AISessionScoreComponentKind} value
33708
+ * @return {!proto.gateway.web.v1.AISessionScoreComponent} returns this
33709
+ */
33710
+ proto.gateway.web.v1.AISessionScoreComponent.prototype.setKind = function(value) {
33711
+ return jspb.Message.setProto3EnumField(this, 1, value);
33712
+ };
33713
+
33714
+
33715
+ /**
33716
+ * optional bool available = 2;
33717
+ * @return {boolean}
33718
+ */
33719
+ proto.gateway.web.v1.AISessionScoreComponent.prototype.getAvailable = function() {
33720
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
33721
+ };
33722
+
33723
+
33724
+ /**
33725
+ * @param {boolean} value
33726
+ * @return {!proto.gateway.web.v1.AISessionScoreComponent} returns this
33727
+ */
33728
+ proto.gateway.web.v1.AISessionScoreComponent.prototype.setAvailable = function(value) {
33729
+ return jspb.Message.setProto3BooleanField(this, 2, value);
33730
+ };
33731
+
33732
+
33733
+ /**
33734
+ * optional double base_weight = 3;
33735
+ * @return {number}
33736
+ */
33737
+ proto.gateway.web.v1.AISessionScoreComponent.prototype.getBaseWeight = function() {
33738
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
33739
+ };
33740
+
33741
+
33742
+ /**
33743
+ * @param {number} value
33744
+ * @return {!proto.gateway.web.v1.AISessionScoreComponent} returns this
33745
+ */
33746
+ proto.gateway.web.v1.AISessionScoreComponent.prototype.setBaseWeight = function(value) {
33747
+ return jspb.Message.setProto3FloatField(this, 3, value);
33748
+ };
33749
+
33750
+
33751
+ /**
33752
+ * optional double weight = 4;
33753
+ * @return {number}
33754
+ */
33755
+ proto.gateway.web.v1.AISessionScoreComponent.prototype.getWeight = function() {
33756
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
33757
+ };
33758
+
33759
+
33760
+ /**
33761
+ * @param {number} value
33762
+ * @return {!proto.gateway.web.v1.AISessionScoreComponent} returns this
33763
+ */
33764
+ proto.gateway.web.v1.AISessionScoreComponent.prototype.setWeight = function(value) {
33765
+ return jspb.Message.setProto3FloatField(this, 4, value);
33766
+ };
33767
+
33768
+
33769
+ /**
33770
+ * optional double value = 5;
33771
+ * @return {number}
33772
+ */
33773
+ proto.gateway.web.v1.AISessionScoreComponent.prototype.getValue = function() {
33774
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
33775
+ };
33776
+
33777
+
33778
+ /**
33779
+ * @param {number} value
33780
+ * @return {!proto.gateway.web.v1.AISessionScoreComponent} returns this
33781
+ */
33782
+ proto.gateway.web.v1.AISessionScoreComponent.prototype.setValue = function(value) {
33783
+ return jspb.Message.setField(this, 5, value);
33784
+ };
33785
+
33786
+
33787
+ /**
33788
+ * Clears the field making it undefined.
33789
+ * @return {!proto.gateway.web.v1.AISessionScoreComponent} returns this
33790
+ */
33791
+ proto.gateway.web.v1.AISessionScoreComponent.prototype.clearValue = function() {
33792
+ return jspb.Message.setField(this, 5, undefined);
33793
+ };
33794
+
33795
+
33796
+ /**
33797
+ * Returns whether this field is set.
33798
+ * @return {boolean}
33799
+ */
33800
+ proto.gateway.web.v1.AISessionScoreComponent.prototype.hasValue = function() {
33801
+ return jspb.Message.getField(this, 5) != null;
33802
+ };
33803
+
33804
+
33805
+ /**
33806
+ * optional double contribution = 6;
33807
+ * @return {number}
33808
+ */
33809
+ proto.gateway.web.v1.AISessionScoreComponent.prototype.getContribution = function() {
33810
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
33811
+ };
33812
+
33813
+
33814
+ /**
33815
+ * @param {number} value
33816
+ * @return {!proto.gateway.web.v1.AISessionScoreComponent} returns this
33817
+ */
33818
+ proto.gateway.web.v1.AISessionScoreComponent.prototype.setContribution = function(value) {
33819
+ return jspb.Message.setProto3FloatField(this, 6, value);
33820
+ };
33821
+
33822
+
33823
+
33824
+
33825
+
33826
+ if (jspb.Message.GENERATE_TO_OBJECT) {
33827
+ /**
33828
+ * Creates an object representation of this proto.
33829
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
33830
+ * Optional fields that are not set will be set to undefined.
33831
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
33832
+ * For the list of reserved names please see:
33833
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
33834
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
33835
+ * JSPB instance for transitional soy proto support:
33836
+ * http://goto/soy-param-migration
33837
+ * @return {!Object}
33838
+ */
33839
+ proto.gateway.web.v1.GetSessionScoreTrendRequest.prototype.toObject = function(opt_includeInstance) {
33840
+ return proto.gateway.web.v1.GetSessionScoreTrendRequest.toObject(opt_includeInstance, this);
33841
+ };
33842
+
33843
+
33844
+ /**
33845
+ * Static version of the {@see toObject} method.
33846
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
33847
+ * the JSPB instance for transitional soy proto support:
33848
+ * http://goto/soy-param-migration
33849
+ * @param {!proto.gateway.web.v1.GetSessionScoreTrendRequest} msg The msg instance to transform.
33850
+ * @return {!Object}
33851
+ * @suppress {unusedLocalVariables} f is only used for nested messages
33852
+ */
33853
+ proto.gateway.web.v1.GetSessionScoreTrendRequest.toObject = function(includeInstance, msg) {
33854
+ var f, obj = {
33855
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
33856
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
33857
+ startWeek: jspb.Message.getFieldWithDefault(msg, 4, ""),
33858
+ weeks: jspb.Message.getFieldWithDefault(msg, 5, 0),
33859
+ filter: (f = msg.getFilter()) && proto.gateway.web.v1.AISessionScoreTrendFilter.toObject(includeInstance, f)
33860
+ };
33861
+
33862
+ if (includeInstance) {
33863
+ obj.$jspbMessageInstance = msg;
33864
+ }
33865
+ return obj;
33866
+ };
33867
+ }
33868
+
33869
+
33870
+ /**
33871
+ * Deserializes binary data (in protobuf wire format).
33872
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
33873
+ * @return {!proto.gateway.web.v1.GetSessionScoreTrendRequest}
33874
+ */
33875
+ proto.gateway.web.v1.GetSessionScoreTrendRequest.deserializeBinary = function(bytes) {
33876
+ var reader = new jspb.BinaryReader(bytes);
33877
+ var msg = new proto.gateway.web.v1.GetSessionScoreTrendRequest;
33878
+ return proto.gateway.web.v1.GetSessionScoreTrendRequest.deserializeBinaryFromReader(msg, reader);
33879
+ };
33880
+
33881
+
33882
+ /**
33883
+ * Deserializes binary data (in protobuf wire format) from the
33884
+ * given reader into the given message object.
33885
+ * @param {!proto.gateway.web.v1.GetSessionScoreTrendRequest} msg The message object to deserialize into.
33886
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
33887
+ * @return {!proto.gateway.web.v1.GetSessionScoreTrendRequest}
33888
+ */
33889
+ proto.gateway.web.v1.GetSessionScoreTrendRequest.deserializeBinaryFromReader = function(msg, reader) {
33890
+ while (reader.nextField()) {
33891
+ if (reader.isEndGroup()) {
33892
+ break;
33893
+ }
33894
+ var field = reader.getFieldNumber();
33895
+ switch (field) {
33896
+ case 1:
33897
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
33898
+ msg.setOrganizationId(value);
33899
+ break;
33900
+ case 2:
33901
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
33902
+ msg.setProjectId(value);
33903
+ break;
33904
+ case 4:
33905
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
33906
+ msg.setStartWeek(value);
33907
+ break;
33908
+ case 5:
33909
+ var value = /** @type {number} */ (reader.readUint32());
33910
+ msg.setWeeks(value);
33911
+ break;
33912
+ case 6:
33913
+ var value = new proto.gateway.web.v1.AISessionScoreTrendFilter;
33914
+ reader.readMessage(value,proto.gateway.web.v1.AISessionScoreTrendFilter.deserializeBinaryFromReader);
33915
+ msg.setFilter(value);
33916
+ break;
33917
+ default:
33918
+ reader.skipField();
33919
+ break;
33920
+ }
33921
+ }
33922
+ return msg;
33923
+ };
33924
+
33925
+
33926
+ /**
33927
+ * Serializes the message to binary data (in protobuf wire format).
33928
+ * @return {!Uint8Array}
33929
+ */
33930
+ proto.gateway.web.v1.GetSessionScoreTrendRequest.prototype.serializeBinary = function() {
33931
+ var writer = new jspb.BinaryWriter();
33932
+ proto.gateway.web.v1.GetSessionScoreTrendRequest.serializeBinaryToWriter(this, writer);
33933
+ return writer.getResultBuffer();
33934
+ };
33935
+
33936
+
33937
+ /**
33938
+ * Serializes the given message to binary data (in protobuf wire
33939
+ * format), writing to the given BinaryWriter.
33940
+ * @param {!proto.gateway.web.v1.GetSessionScoreTrendRequest} message
33941
+ * @param {!jspb.BinaryWriter} writer
33942
+ * @suppress {unusedLocalVariables} f is only used for nested messages
33943
+ */
33944
+ proto.gateway.web.v1.GetSessionScoreTrendRequest.serializeBinaryToWriter = function(message, writer) {
33945
+ var f = undefined;
33946
+ f = message.getOrganizationId();
33947
+ if (f.length > 0) {
33948
+ writer.writeString(
33949
+ 1,
33950
+ f
33951
+ );
33952
+ }
33953
+ f = message.getProjectId();
33954
+ if (f.length > 0) {
33955
+ writer.writeString(
33956
+ 2,
33957
+ f
33958
+ );
33959
+ }
33960
+ f = message.getStartWeek();
33961
+ if (f.length > 0) {
33962
+ writer.writeString(
33963
+ 4,
33964
+ f
33965
+ );
33966
+ }
33967
+ f = message.getWeeks();
33968
+ if (f !== 0) {
33969
+ writer.writeUint32(
33970
+ 5,
33971
+ f
33972
+ );
33973
+ }
33974
+ f = message.getFilter();
33975
+ if (f != null) {
33976
+ writer.writeMessage(
33977
+ 6,
33978
+ f,
33979
+ proto.gateway.web.v1.AISessionScoreTrendFilter.serializeBinaryToWriter
33980
+ );
33981
+ }
33982
+ };
33983
+
33984
+
33985
+ /**
33986
+ * optional string organization_id = 1;
33987
+ * @return {string}
33988
+ */
33989
+ proto.gateway.web.v1.GetSessionScoreTrendRequest.prototype.getOrganizationId = function() {
33990
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
33991
+ };
33992
+
33993
+
33994
+ /**
33995
+ * @param {string} value
33996
+ * @return {!proto.gateway.web.v1.GetSessionScoreTrendRequest} returns this
33997
+ */
33998
+ proto.gateway.web.v1.GetSessionScoreTrendRequest.prototype.setOrganizationId = function(value) {
33999
+ return jspb.Message.setProto3StringField(this, 1, value);
34000
+ };
34001
+
34002
+
34003
+ /**
34004
+ * optional string project_id = 2;
34005
+ * @return {string}
34006
+ */
34007
+ proto.gateway.web.v1.GetSessionScoreTrendRequest.prototype.getProjectId = function() {
34008
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
34009
+ };
34010
+
34011
+
34012
+ /**
34013
+ * @param {string} value
34014
+ * @return {!proto.gateway.web.v1.GetSessionScoreTrendRequest} returns this
34015
+ */
34016
+ proto.gateway.web.v1.GetSessionScoreTrendRequest.prototype.setProjectId = function(value) {
34017
+ return jspb.Message.setProto3StringField(this, 2, value);
34018
+ };
34019
+
34020
+
34021
+ /**
34022
+ * optional string start_week = 4;
34023
+ * @return {string}
34024
+ */
34025
+ proto.gateway.web.v1.GetSessionScoreTrendRequest.prototype.getStartWeek = function() {
34026
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
34027
+ };
34028
+
34029
+
34030
+ /**
34031
+ * @param {string} value
34032
+ * @return {!proto.gateway.web.v1.GetSessionScoreTrendRequest} returns this
34033
+ */
34034
+ proto.gateway.web.v1.GetSessionScoreTrendRequest.prototype.setStartWeek = function(value) {
34035
+ return jspb.Message.setProto3StringField(this, 4, value);
34036
+ };
34037
+
34038
+
34039
+ /**
34040
+ * optional uint32 weeks = 5;
34041
+ * @return {number}
34042
+ */
34043
+ proto.gateway.web.v1.GetSessionScoreTrendRequest.prototype.getWeeks = function() {
34044
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
34045
+ };
34046
+
34047
+
34048
+ /**
34049
+ * @param {number} value
34050
+ * @return {!proto.gateway.web.v1.GetSessionScoreTrendRequest} returns this
34051
+ */
34052
+ proto.gateway.web.v1.GetSessionScoreTrendRequest.prototype.setWeeks = function(value) {
34053
+ return jspb.Message.setProto3IntField(this, 5, value);
34054
+ };
34055
+
34056
+
34057
+ /**
34058
+ * optional AISessionScoreTrendFilter filter = 6;
34059
+ * @return {?proto.gateway.web.v1.AISessionScoreTrendFilter}
34060
+ */
34061
+ proto.gateway.web.v1.GetSessionScoreTrendRequest.prototype.getFilter = function() {
34062
+ return /** @type{?proto.gateway.web.v1.AISessionScoreTrendFilter} */ (
34063
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.AISessionScoreTrendFilter, 6));
34064
+ };
34065
+
34066
+
34067
+ /**
34068
+ * @param {?proto.gateway.web.v1.AISessionScoreTrendFilter|undefined} value
34069
+ * @return {!proto.gateway.web.v1.GetSessionScoreTrendRequest} returns this
34070
+ */
34071
+ proto.gateway.web.v1.GetSessionScoreTrendRequest.prototype.setFilter = function(value) {
34072
+ return jspb.Message.setWrapperField(this, 6, value);
34073
+ };
34074
+
34075
+
34076
+ /**
34077
+ * Clears the message field making it undefined.
34078
+ * @return {!proto.gateway.web.v1.GetSessionScoreTrendRequest} returns this
34079
+ */
34080
+ proto.gateway.web.v1.GetSessionScoreTrendRequest.prototype.clearFilter = function() {
34081
+ return this.setFilter(undefined);
34082
+ };
34083
+
34084
+
34085
+ /**
34086
+ * Returns whether this field is set.
34087
+ * @return {boolean}
34088
+ */
34089
+ proto.gateway.web.v1.GetSessionScoreTrendRequest.prototype.hasFilter = function() {
34090
+ return jspb.Message.getField(this, 6) != null;
34091
+ };
34092
+
34093
+
34094
+
34095
+ /**
34096
+ * List of repeated fields within this message type.
34097
+ * @private {!Array<number>}
34098
+ * @const
34099
+ */
34100
+ proto.gateway.web.v1.AISessionScoreTrendFilter.repeatedFields_ = [1];
34101
+
34102
+
34103
+
34104
+ if (jspb.Message.GENERATE_TO_OBJECT) {
34105
+ /**
34106
+ * Creates an object representation of this proto.
34107
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
34108
+ * Optional fields that are not set will be set to undefined.
34109
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
34110
+ * For the list of reserved names please see:
34111
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
34112
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
34113
+ * JSPB instance for transitional soy proto support:
34114
+ * http://goto/soy-param-migration
34115
+ * @return {!Object}
34116
+ */
34117
+ proto.gateway.web.v1.AISessionScoreTrendFilter.prototype.toObject = function(opt_includeInstance) {
34118
+ return proto.gateway.web.v1.AISessionScoreTrendFilter.toObject(opt_includeInstance, this);
34119
+ };
34120
+
34121
+
34122
+ /**
34123
+ * Static version of the {@see toObject} method.
34124
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
34125
+ * the JSPB instance for transitional soy proto support:
34126
+ * http://goto/soy-param-migration
34127
+ * @param {!proto.gateway.web.v1.AISessionScoreTrendFilter} msg The msg instance to transform.
34128
+ * @return {!Object}
34129
+ * @suppress {unusedLocalVariables} f is only used for nested messages
34130
+ */
34131
+ proto.gateway.web.v1.AISessionScoreTrendFilter.toObject = function(includeInstance, msg) {
34132
+ var f, obj = {
34133
+ userIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
34134
+ };
34135
+
34136
+ if (includeInstance) {
34137
+ obj.$jspbMessageInstance = msg;
34138
+ }
34139
+ return obj;
34140
+ };
34141
+ }
34142
+
34143
+
34144
+ /**
34145
+ * Deserializes binary data (in protobuf wire format).
34146
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
34147
+ * @return {!proto.gateway.web.v1.AISessionScoreTrendFilter}
34148
+ */
34149
+ proto.gateway.web.v1.AISessionScoreTrendFilter.deserializeBinary = function(bytes) {
34150
+ var reader = new jspb.BinaryReader(bytes);
34151
+ var msg = new proto.gateway.web.v1.AISessionScoreTrendFilter;
34152
+ return proto.gateway.web.v1.AISessionScoreTrendFilter.deserializeBinaryFromReader(msg, reader);
34153
+ };
34154
+
34155
+
34156
+ /**
34157
+ * Deserializes binary data (in protobuf wire format) from the
34158
+ * given reader into the given message object.
34159
+ * @param {!proto.gateway.web.v1.AISessionScoreTrendFilter} msg The message object to deserialize into.
34160
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
34161
+ * @return {!proto.gateway.web.v1.AISessionScoreTrendFilter}
34162
+ */
34163
+ proto.gateway.web.v1.AISessionScoreTrendFilter.deserializeBinaryFromReader = function(msg, reader) {
34164
+ while (reader.nextField()) {
34165
+ if (reader.isEndGroup()) {
34166
+ break;
34167
+ }
34168
+ var field = reader.getFieldNumber();
34169
+ switch (field) {
34170
+ case 1:
34171
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
34172
+ msg.addUserIds(value);
34173
+ break;
34174
+ default:
34175
+ reader.skipField();
34176
+ break;
34177
+ }
34178
+ }
34179
+ return msg;
34180
+ };
34181
+
34182
+
34183
+ /**
34184
+ * Serializes the message to binary data (in protobuf wire format).
34185
+ * @return {!Uint8Array}
34186
+ */
34187
+ proto.gateway.web.v1.AISessionScoreTrendFilter.prototype.serializeBinary = function() {
34188
+ var writer = new jspb.BinaryWriter();
34189
+ proto.gateway.web.v1.AISessionScoreTrendFilter.serializeBinaryToWriter(this, writer);
34190
+ return writer.getResultBuffer();
34191
+ };
34192
+
34193
+
34194
+ /**
34195
+ * Serializes the given message to binary data (in protobuf wire
34196
+ * format), writing to the given BinaryWriter.
34197
+ * @param {!proto.gateway.web.v1.AISessionScoreTrendFilter} message
34198
+ * @param {!jspb.BinaryWriter} writer
34199
+ * @suppress {unusedLocalVariables} f is only used for nested messages
34200
+ */
34201
+ proto.gateway.web.v1.AISessionScoreTrendFilter.serializeBinaryToWriter = function(message, writer) {
34202
+ var f = undefined;
34203
+ f = message.getUserIdsList();
34204
+ if (f.length > 0) {
34205
+ writer.writeRepeatedString(
34206
+ 1,
34207
+ f
34208
+ );
34209
+ }
34210
+ };
34211
+
34212
+
34213
+ /**
34214
+ * repeated string user_ids = 1;
34215
+ * @return {!Array<string>}
34216
+ */
34217
+ proto.gateway.web.v1.AISessionScoreTrendFilter.prototype.getUserIdsList = function() {
34218
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
34219
+ };
34220
+
34221
+
34222
+ /**
34223
+ * @param {!Array<string>} value
34224
+ * @return {!proto.gateway.web.v1.AISessionScoreTrendFilter} returns this
34225
+ */
34226
+ proto.gateway.web.v1.AISessionScoreTrendFilter.prototype.setUserIdsList = function(value) {
34227
+ return jspb.Message.setField(this, 1, value || []);
34228
+ };
34229
+
34230
+
34231
+ /**
34232
+ * @param {string} value
34233
+ * @param {number=} opt_index
34234
+ * @return {!proto.gateway.web.v1.AISessionScoreTrendFilter} returns this
34235
+ */
34236
+ proto.gateway.web.v1.AISessionScoreTrendFilter.prototype.addUserIds = function(value, opt_index) {
34237
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
34238
+ };
34239
+
34240
+
34241
+ /**
34242
+ * Clears the list making it empty but non-null.
34243
+ * @return {!proto.gateway.web.v1.AISessionScoreTrendFilter} returns this
34244
+ */
34245
+ proto.gateway.web.v1.AISessionScoreTrendFilter.prototype.clearUserIdsList = function() {
34246
+ return this.setUserIdsList([]);
34247
+ };
34248
+
34249
+
34250
+
34251
+ /**
34252
+ * List of repeated fields within this message type.
34253
+ * @private {!Array<number>}
34254
+ * @const
34255
+ */
34256
+ proto.gateway.web.v1.GetSessionScoreTrendResponse.repeatedFields_ = [3];
34257
+
34258
+
34259
+
34260
+ if (jspb.Message.GENERATE_TO_OBJECT) {
34261
+ /**
34262
+ * Creates an object representation of this proto.
34263
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
34264
+ * Optional fields that are not set will be set to undefined.
34265
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
34266
+ * For the list of reserved names please see:
34267
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
34268
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
34269
+ * JSPB instance for transitional soy proto support:
34270
+ * http://goto/soy-param-migration
34271
+ * @return {!Object}
34272
+ */
34273
+ proto.gateway.web.v1.GetSessionScoreTrendResponse.prototype.toObject = function(opt_includeInstance) {
34274
+ return proto.gateway.web.v1.GetSessionScoreTrendResponse.toObject(opt_includeInstance, this);
34275
+ };
34276
+
34277
+
34278
+ /**
34279
+ * Static version of the {@see toObject} method.
34280
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
34281
+ * the JSPB instance for transitional soy proto support:
34282
+ * http://goto/soy-param-migration
34283
+ * @param {!proto.gateway.web.v1.GetSessionScoreTrendResponse} msg The msg instance to transform.
34284
+ * @return {!Object}
34285
+ * @suppress {unusedLocalVariables} f is only used for nested messages
34286
+ */
34287
+ proto.gateway.web.v1.GetSessionScoreTrendResponse.toObject = function(includeInstance, msg) {
34288
+ var f, obj = {
34289
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
34290
+ formulaVersion: jspb.Message.getFieldWithDefault(msg, 2, ""),
34291
+ weeksList: jspb.Message.toObjectList(msg.getWeeksList(),
34292
+ proto.gateway.web.v1.AISessionScoreWeek.toObject, includeInstance)
34293
+ };
34294
+
34295
+ if (includeInstance) {
34296
+ obj.$jspbMessageInstance = msg;
34297
+ }
34298
+ return obj;
34299
+ };
34300
+ }
34301
+
34302
+
34303
+ /**
34304
+ * Deserializes binary data (in protobuf wire format).
34305
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
34306
+ * @return {!proto.gateway.web.v1.GetSessionScoreTrendResponse}
34307
+ */
34308
+ proto.gateway.web.v1.GetSessionScoreTrendResponse.deserializeBinary = function(bytes) {
34309
+ var reader = new jspb.BinaryReader(bytes);
34310
+ var msg = new proto.gateway.web.v1.GetSessionScoreTrendResponse;
34311
+ return proto.gateway.web.v1.GetSessionScoreTrendResponse.deserializeBinaryFromReader(msg, reader);
34312
+ };
34313
+
34314
+
34315
+ /**
34316
+ * Deserializes binary data (in protobuf wire format) from the
34317
+ * given reader into the given message object.
34318
+ * @param {!proto.gateway.web.v1.GetSessionScoreTrendResponse} msg The message object to deserialize into.
34319
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
34320
+ * @return {!proto.gateway.web.v1.GetSessionScoreTrendResponse}
34321
+ */
34322
+ proto.gateway.web.v1.GetSessionScoreTrendResponse.deserializeBinaryFromReader = function(msg, reader) {
34323
+ while (reader.nextField()) {
34324
+ if (reader.isEndGroup()) {
34325
+ break;
34326
+ }
34327
+ var field = reader.getFieldNumber();
34328
+ switch (field) {
34329
+ case 1:
34330
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
34331
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
34332
+ msg.setStatus(value);
34333
+ break;
34334
+ case 2:
34335
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
34336
+ msg.setFormulaVersion(value);
34337
+ break;
34338
+ case 3:
34339
+ var value = new proto.gateway.web.v1.AISessionScoreWeek;
34340
+ reader.readMessage(value,proto.gateway.web.v1.AISessionScoreWeek.deserializeBinaryFromReader);
34341
+ msg.addWeeks(value);
34342
+ break;
34343
+ default:
34344
+ reader.skipField();
34345
+ break;
34346
+ }
34347
+ }
34348
+ return msg;
34349
+ };
34350
+
34351
+
34352
+ /**
34353
+ * Serializes the message to binary data (in protobuf wire format).
34354
+ * @return {!Uint8Array}
34355
+ */
34356
+ proto.gateway.web.v1.GetSessionScoreTrendResponse.prototype.serializeBinary = function() {
34357
+ var writer = new jspb.BinaryWriter();
34358
+ proto.gateway.web.v1.GetSessionScoreTrendResponse.serializeBinaryToWriter(this, writer);
34359
+ return writer.getResultBuffer();
34360
+ };
34361
+
34362
+
34363
+ /**
34364
+ * Serializes the given message to binary data (in protobuf wire
34365
+ * format), writing to the given BinaryWriter.
34366
+ * @param {!proto.gateway.web.v1.GetSessionScoreTrendResponse} message
34367
+ * @param {!jspb.BinaryWriter} writer
34368
+ * @suppress {unusedLocalVariables} f is only used for nested messages
34369
+ */
34370
+ proto.gateway.web.v1.GetSessionScoreTrendResponse.serializeBinaryToWriter = function(message, writer) {
34371
+ var f = undefined;
34372
+ f = message.getStatus();
34373
+ if (f != null) {
34374
+ writer.writeMessage(
34375
+ 1,
34376
+ f,
34377
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
34378
+ );
34379
+ }
34380
+ f = message.getFormulaVersion();
34381
+ if (f.length > 0) {
34382
+ writer.writeString(
34383
+ 2,
34384
+ f
34385
+ );
34386
+ }
34387
+ f = message.getWeeksList();
34388
+ if (f.length > 0) {
34389
+ writer.writeRepeatedMessage(
34390
+ 3,
34391
+ f,
34392
+ proto.gateway.web.v1.AISessionScoreWeek.serializeBinaryToWriter
34393
+ );
34394
+ }
34395
+ };
34396
+
34397
+
34398
+ /**
34399
+ * optional gateway.common.v1.ResponseStatus status = 1;
34400
+ * @return {?proto.gateway.common.v1.ResponseStatus}
34401
+ */
34402
+ proto.gateway.web.v1.GetSessionScoreTrendResponse.prototype.getStatus = function() {
34403
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
34404
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
34405
+ };
34406
+
34407
+
34408
+ /**
34409
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
34410
+ * @return {!proto.gateway.web.v1.GetSessionScoreTrendResponse} returns this
34411
+ */
34412
+ proto.gateway.web.v1.GetSessionScoreTrendResponse.prototype.setStatus = function(value) {
34413
+ return jspb.Message.setWrapperField(this, 1, value);
34414
+ };
34415
+
34416
+
34417
+ /**
34418
+ * Clears the message field making it undefined.
34419
+ * @return {!proto.gateway.web.v1.GetSessionScoreTrendResponse} returns this
34420
+ */
34421
+ proto.gateway.web.v1.GetSessionScoreTrendResponse.prototype.clearStatus = function() {
34422
+ return this.setStatus(undefined);
34423
+ };
34424
+
34425
+
34426
+ /**
34427
+ * Returns whether this field is set.
34428
+ * @return {boolean}
34429
+ */
34430
+ proto.gateway.web.v1.GetSessionScoreTrendResponse.prototype.hasStatus = function() {
34431
+ return jspb.Message.getField(this, 1) != null;
34432
+ };
34433
+
34434
+
34435
+ /**
34436
+ * optional string formula_version = 2;
34437
+ * @return {string}
34438
+ */
34439
+ proto.gateway.web.v1.GetSessionScoreTrendResponse.prototype.getFormulaVersion = function() {
34440
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
34441
+ };
34442
+
34443
+
34444
+ /**
34445
+ * @param {string} value
34446
+ * @return {!proto.gateway.web.v1.GetSessionScoreTrendResponse} returns this
34447
+ */
34448
+ proto.gateway.web.v1.GetSessionScoreTrendResponse.prototype.setFormulaVersion = function(value) {
34449
+ return jspb.Message.setProto3StringField(this, 2, value);
34450
+ };
34451
+
34452
+
34453
+ /**
34454
+ * repeated AISessionScoreWeek weeks = 3;
34455
+ * @return {!Array<!proto.gateway.web.v1.AISessionScoreWeek>}
34456
+ */
34457
+ proto.gateway.web.v1.GetSessionScoreTrendResponse.prototype.getWeeksList = function() {
34458
+ return /** @type{!Array<!proto.gateway.web.v1.AISessionScoreWeek>} */ (
34459
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AISessionScoreWeek, 3));
34460
+ };
34461
+
34462
+
34463
+ /**
34464
+ * @param {!Array<!proto.gateway.web.v1.AISessionScoreWeek>} value
34465
+ * @return {!proto.gateway.web.v1.GetSessionScoreTrendResponse} returns this
34466
+ */
34467
+ proto.gateway.web.v1.GetSessionScoreTrendResponse.prototype.setWeeksList = function(value) {
34468
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
34469
+ };
34470
+
34471
+
34472
+ /**
34473
+ * @param {!proto.gateway.web.v1.AISessionScoreWeek=} opt_value
34474
+ * @param {number=} opt_index
34475
+ * @return {!proto.gateway.web.v1.AISessionScoreWeek}
34476
+ */
34477
+ proto.gateway.web.v1.GetSessionScoreTrendResponse.prototype.addWeeks = function(opt_value, opt_index) {
34478
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gateway.web.v1.AISessionScoreWeek, opt_index);
34479
+ };
34480
+
34481
+
34482
+ /**
34483
+ * Clears the list making it empty but non-null.
34484
+ * @return {!proto.gateway.web.v1.GetSessionScoreTrendResponse} returns this
34485
+ */
34486
+ proto.gateway.web.v1.GetSessionScoreTrendResponse.prototype.clearWeeksList = function() {
34487
+ return this.setWeeksList([]);
34488
+ };
34489
+
34490
+
34491
+
34492
+
34493
+
34494
+ if (jspb.Message.GENERATE_TO_OBJECT) {
34495
+ /**
34496
+ * Creates an object representation of this proto.
34497
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
34498
+ * Optional fields that are not set will be set to undefined.
34499
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
34500
+ * For the list of reserved names please see:
34501
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
34502
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
34503
+ * JSPB instance for transitional soy proto support:
34504
+ * http://goto/soy-param-migration
34505
+ * @return {!Object}
34506
+ */
34507
+ proto.gateway.web.v1.AISessionScoreWeek.prototype.toObject = function(opt_includeInstance) {
34508
+ return proto.gateway.web.v1.AISessionScoreWeek.toObject(opt_includeInstance, this);
34509
+ };
34510
+
34511
+
34512
+ /**
34513
+ * Static version of the {@see toObject} method.
34514
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
34515
+ * the JSPB instance for transitional soy proto support:
34516
+ * http://goto/soy-param-migration
34517
+ * @param {!proto.gateway.web.v1.AISessionScoreWeek} msg The msg instance to transform.
34518
+ * @return {!Object}
34519
+ * @suppress {unusedLocalVariables} f is only used for nested messages
34520
+ */
34521
+ proto.gateway.web.v1.AISessionScoreWeek.toObject = function(includeInstance, msg) {
34522
+ var f, obj = {
34523
+ weekStart: jspb.Message.getFieldWithDefault(msg, 1, ""),
34524
+ gradedSessions: jspb.Message.getFieldWithDefault(msg, 2, 0),
34525
+ scoredSessions: jspb.Message.getFieldWithDefault(msg, 3, 0),
34526
+ meanScore: (f = jspb.Message.getOptionalFloatingPointField(msg, 4)) == null ? undefined : f,
34527
+ knownOutcomeSessions: jspb.Message.getFieldWithDefault(msg, 5, 0),
34528
+ deliveredSessions: jspb.Message.getFieldWithDefault(msg, 6, 0)
34529
+ };
34530
+
34531
+ if (includeInstance) {
34532
+ obj.$jspbMessageInstance = msg;
34533
+ }
34534
+ return obj;
34535
+ };
34536
+ }
34537
+
34538
+
34539
+ /**
34540
+ * Deserializes binary data (in protobuf wire format).
34541
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
34542
+ * @return {!proto.gateway.web.v1.AISessionScoreWeek}
34543
+ */
34544
+ proto.gateway.web.v1.AISessionScoreWeek.deserializeBinary = function(bytes) {
34545
+ var reader = new jspb.BinaryReader(bytes);
34546
+ var msg = new proto.gateway.web.v1.AISessionScoreWeek;
34547
+ return proto.gateway.web.v1.AISessionScoreWeek.deserializeBinaryFromReader(msg, reader);
34548
+ };
34549
+
34550
+
34551
+ /**
34552
+ * Deserializes binary data (in protobuf wire format) from the
34553
+ * given reader into the given message object.
34554
+ * @param {!proto.gateway.web.v1.AISessionScoreWeek} msg The message object to deserialize into.
34555
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
34556
+ * @return {!proto.gateway.web.v1.AISessionScoreWeek}
34557
+ */
34558
+ proto.gateway.web.v1.AISessionScoreWeek.deserializeBinaryFromReader = function(msg, reader) {
34559
+ while (reader.nextField()) {
34560
+ if (reader.isEndGroup()) {
34561
+ break;
34562
+ }
34563
+ var field = reader.getFieldNumber();
34564
+ switch (field) {
34565
+ case 1:
34566
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
34567
+ msg.setWeekStart(value);
34568
+ break;
34569
+ case 2:
34570
+ var value = /** @type {number} */ (reader.readUint64());
34571
+ msg.setGradedSessions(value);
34572
+ break;
34573
+ case 3:
34574
+ var value = /** @type {number} */ (reader.readUint64());
34575
+ msg.setScoredSessions(value);
34576
+ break;
34577
+ case 4:
34578
+ var value = /** @type {number} */ (reader.readDouble());
34579
+ msg.setMeanScore(value);
34580
+ break;
34581
+ case 5:
34582
+ var value = /** @type {number} */ (reader.readUint64());
34583
+ msg.setKnownOutcomeSessions(value);
34584
+ break;
34585
+ case 6:
34586
+ var value = /** @type {number} */ (reader.readUint64());
34587
+ msg.setDeliveredSessions(value);
34588
+ break;
34589
+ default:
34590
+ reader.skipField();
34591
+ break;
34592
+ }
34593
+ }
34594
+ return msg;
34595
+ };
34596
+
34597
+
34598
+ /**
34599
+ * Serializes the message to binary data (in protobuf wire format).
34600
+ * @return {!Uint8Array}
34601
+ */
34602
+ proto.gateway.web.v1.AISessionScoreWeek.prototype.serializeBinary = function() {
34603
+ var writer = new jspb.BinaryWriter();
34604
+ proto.gateway.web.v1.AISessionScoreWeek.serializeBinaryToWriter(this, writer);
34605
+ return writer.getResultBuffer();
34606
+ };
34607
+
34608
+
34609
+ /**
34610
+ * Serializes the given message to binary data (in protobuf wire
34611
+ * format), writing to the given BinaryWriter.
34612
+ * @param {!proto.gateway.web.v1.AISessionScoreWeek} message
34613
+ * @param {!jspb.BinaryWriter} writer
34614
+ * @suppress {unusedLocalVariables} f is only used for nested messages
34615
+ */
34616
+ proto.gateway.web.v1.AISessionScoreWeek.serializeBinaryToWriter = function(message, writer) {
34617
+ var f = undefined;
34618
+ f = message.getWeekStart();
34619
+ if (f.length > 0) {
34620
+ writer.writeString(
34621
+ 1,
34622
+ f
34623
+ );
34624
+ }
34625
+ f = message.getGradedSessions();
34626
+ if (f !== 0) {
34627
+ writer.writeUint64(
34628
+ 2,
34629
+ f
34630
+ );
34631
+ }
34632
+ f = message.getScoredSessions();
34633
+ if (f !== 0) {
34634
+ writer.writeUint64(
34635
+ 3,
34636
+ f
34637
+ );
34638
+ }
34639
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
34640
+ if (f != null) {
34641
+ writer.writeDouble(
34642
+ 4,
34643
+ f
34644
+ );
34645
+ }
34646
+ f = message.getKnownOutcomeSessions();
34647
+ if (f !== 0) {
34648
+ writer.writeUint64(
34649
+ 5,
34650
+ f
34651
+ );
34652
+ }
34653
+ f = message.getDeliveredSessions();
34654
+ if (f !== 0) {
34655
+ writer.writeUint64(
34656
+ 6,
34657
+ f
34658
+ );
34659
+ }
34660
+ };
34661
+
34662
+
34663
+ /**
34664
+ * optional string week_start = 1;
34665
+ * @return {string}
34666
+ */
34667
+ proto.gateway.web.v1.AISessionScoreWeek.prototype.getWeekStart = function() {
34668
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
34669
+ };
34670
+
34671
+
34672
+ /**
34673
+ * @param {string} value
34674
+ * @return {!proto.gateway.web.v1.AISessionScoreWeek} returns this
34675
+ */
34676
+ proto.gateway.web.v1.AISessionScoreWeek.prototype.setWeekStart = function(value) {
34677
+ return jspb.Message.setProto3StringField(this, 1, value);
34678
+ };
34679
+
34680
+
34681
+ /**
34682
+ * optional uint64 graded_sessions = 2;
34683
+ * @return {number}
34684
+ */
34685
+ proto.gateway.web.v1.AISessionScoreWeek.prototype.getGradedSessions = function() {
34686
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
34687
+ };
34688
+
34689
+
34690
+ /**
34691
+ * @param {number} value
34692
+ * @return {!proto.gateway.web.v1.AISessionScoreWeek} returns this
34693
+ */
34694
+ proto.gateway.web.v1.AISessionScoreWeek.prototype.setGradedSessions = function(value) {
34695
+ return jspb.Message.setProto3IntField(this, 2, value);
34696
+ };
34697
+
34698
+
34699
+ /**
34700
+ * optional uint64 scored_sessions = 3;
34701
+ * @return {number}
34702
+ */
34703
+ proto.gateway.web.v1.AISessionScoreWeek.prototype.getScoredSessions = function() {
34704
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
34705
+ };
34706
+
34707
+
34708
+ /**
34709
+ * @param {number} value
34710
+ * @return {!proto.gateway.web.v1.AISessionScoreWeek} returns this
34711
+ */
34712
+ proto.gateway.web.v1.AISessionScoreWeek.prototype.setScoredSessions = function(value) {
34713
+ return jspb.Message.setProto3IntField(this, 3, value);
34714
+ };
34715
+
34716
+
34717
+ /**
34718
+ * optional double mean_score = 4;
34719
+ * @return {number}
34720
+ */
34721
+ proto.gateway.web.v1.AISessionScoreWeek.prototype.getMeanScore = function() {
34722
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
34723
+ };
34724
+
34725
+
34726
+ /**
34727
+ * @param {number} value
34728
+ * @return {!proto.gateway.web.v1.AISessionScoreWeek} returns this
34729
+ */
34730
+ proto.gateway.web.v1.AISessionScoreWeek.prototype.setMeanScore = function(value) {
34731
+ return jspb.Message.setField(this, 4, value);
34732
+ };
34733
+
34734
+
34735
+ /**
34736
+ * Clears the field making it undefined.
34737
+ * @return {!proto.gateway.web.v1.AISessionScoreWeek} returns this
34738
+ */
34739
+ proto.gateway.web.v1.AISessionScoreWeek.prototype.clearMeanScore = function() {
34740
+ return jspb.Message.setField(this, 4, undefined);
34741
+ };
34742
+
34743
+
34744
+ /**
34745
+ * Returns whether this field is set.
34746
+ * @return {boolean}
34747
+ */
34748
+ proto.gateway.web.v1.AISessionScoreWeek.prototype.hasMeanScore = function() {
34749
+ return jspb.Message.getField(this, 4) != null;
34750
+ };
34751
+
34752
+
34753
+ /**
34754
+ * optional uint64 known_outcome_sessions = 5;
34755
+ * @return {number}
34756
+ */
34757
+ proto.gateway.web.v1.AISessionScoreWeek.prototype.getKnownOutcomeSessions = function() {
34758
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
34759
+ };
34760
+
34761
+
34762
+ /**
34763
+ * @param {number} value
34764
+ * @return {!proto.gateway.web.v1.AISessionScoreWeek} returns this
34765
+ */
34766
+ proto.gateway.web.v1.AISessionScoreWeek.prototype.setKnownOutcomeSessions = function(value) {
34767
+ return jspb.Message.setProto3IntField(this, 5, value);
34768
+ };
34769
+
34770
+
34771
+ /**
34772
+ * optional uint64 delivered_sessions = 6;
34773
+ * @return {number}
34774
+ */
34775
+ proto.gateway.web.v1.AISessionScoreWeek.prototype.getDeliveredSessions = function() {
34776
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
34777
+ };
34778
+
34779
+
34780
+ /**
34781
+ * @param {number} value
34782
+ * @return {!proto.gateway.web.v1.AISessionScoreWeek} returns this
34783
+ */
34784
+ proto.gateway.web.v1.AISessionScoreWeek.prototype.setDeliveredSessions = function(value) {
34785
+ return jspb.Message.setProto3IntField(this, 6, value);
34786
+ };
34787
+
34788
+
34789
+
34790
+
34791
+
31144
34792
  if (jspb.Message.GENERATE_TO_OBJECT) {
31145
34793
  /**
31146
34794
  * Creates an object representation of this proto.
@@ -41563,6 +45211,91 @@ proto.gateway.web.v1.AISessionComplexity = {
41563
45211
  AI_SESSION_COMPLEXITY_LARGE: 3
41564
45212
  };
41565
45213
 
45214
+ /**
45215
+ * @enum {number}
45216
+ */
45217
+ proto.gateway.web.v1.AISessionOutcome = {
45218
+ AI_SESSION_OUTCOME_UNSPECIFIED: 0,
45219
+ AI_SESSION_OUTCOME_DELIVERED: 1,
45220
+ AI_SESSION_OUTCOME_PARTIAL: 2,
45221
+ AI_SESSION_OUTCOME_ABANDONED: 3,
45222
+ AI_SESSION_OUTCOME_UNCLEAR: 4
45223
+ };
45224
+
45225
+ /**
45226
+ * @enum {number}
45227
+ */
45228
+ proto.gateway.web.v1.AISessionSteeringLoad = {
45229
+ AI_SESSION_STEERING_LOAD_UNSPECIFIED: 0,
45230
+ AI_SESSION_STEERING_LOAD_NONE: 1,
45231
+ AI_SESSION_STEERING_LOAD_LIGHT: 2,
45232
+ AI_SESSION_STEERING_LOAD_HEAVY: 3
45233
+ };
45234
+
45235
+ /**
45236
+ * @enum {number}
45237
+ */
45238
+ proto.gateway.web.v1.AISessionAgentReliability = {
45239
+ AI_SESSION_AGENT_RELIABILITY_UNSPECIFIED: 0,
45240
+ AI_SESSION_AGENT_RELIABILITY_CLEAN: 1,
45241
+ AI_SESSION_AGENT_RELIABILITY_MINOR_ISSUES: 2,
45242
+ AI_SESSION_AGENT_RELIABILITY_CONSTRAINT_VIOLATION: 3,
45243
+ AI_SESSION_AGENT_RELIABILITY_MAJOR_FAILURE: 4
45244
+ };
45245
+
45246
+ /**
45247
+ * @enum {number}
45248
+ */
45249
+ proto.gateway.web.v1.AISessionVerification = {
45250
+ AI_SESSION_VERIFICATION_UNSPECIFIED: 0,
45251
+ AI_SESSION_VERIFICATION_VERIFIED: 1,
45252
+ AI_SESSION_VERIFICATION_CLAIMED_ONLY: 2,
45253
+ AI_SESSION_VERIFICATION_NOT_APPLICABLE: 3,
45254
+ AI_SESSION_VERIFICATION_UNOBSERVED: 4
45255
+ };
45256
+
45257
+ /**
45258
+ * @enum {number}
45259
+ */
45260
+ proto.gateway.web.v1.AISessionInsightCategory = {
45261
+ AI_SESSION_INSIGHT_CATEGORY_UNSPECIFIED: 0,
45262
+ AI_SESSION_INSIGHT_CATEGORY_CONSTRAINT_VIOLATION: 1,
45263
+ AI_SESSION_INSIGHT_CATEGORY_MISREAD_REQUEST: 2,
45264
+ AI_SESSION_INSIGHT_CATEGORY_REPEATED_CORRECTION: 3,
45265
+ AI_SESSION_INSIGHT_CATEGORY_LOOPING: 4,
45266
+ AI_SESSION_INSIGHT_CATEGORY_VERIFICATION_GAP: 5,
45267
+ AI_SESSION_INSIGHT_CATEGORY_MISSING_CONTEXT: 6,
45268
+ AI_SESSION_INSIGHT_CATEGORY_TOOLING_FAILURE: 7,
45269
+ AI_SESSION_INSIGHT_CATEGORY_SCOPE_CREEP: 8,
45270
+ AI_SESSION_INSIGHT_CATEGORY_MANUAL_WORKFLOW: 9
45271
+ };
45272
+
45273
+ /**
45274
+ * @enum {number}
45275
+ */
45276
+ proto.gateway.web.v1.AISessionInsightActionType = {
45277
+ AI_SESSION_INSIGHT_ACTION_TYPE_UNSPECIFIED: 0,
45278
+ AI_SESSION_INSIGHT_ACTION_TYPE_ADD_RULE: 1,
45279
+ AI_SESSION_INSIGHT_ACTION_TYPE_ADD_SKILL: 2,
45280
+ AI_SESSION_INSIGHT_ACTION_TYPE_USE_EXISTING_SKILL: 3,
45281
+ AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_MODEL: 4,
45282
+ AI_SESSION_INSIGHT_ACTION_TYPE_CLARIFY_PROMPTS: 5,
45283
+ AI_SESSION_INSIGHT_ACTION_TYPE_FIX_TOOLING: 6
45284
+ };
45285
+
45286
+ /**
45287
+ * @enum {number}
45288
+ */
45289
+ proto.gateway.web.v1.AISessionScoreComponentKind = {
45290
+ AI_SESSION_SCORE_COMPONENT_KIND_UNSPECIFIED: 0,
45291
+ AI_SESSION_SCORE_COMPONENT_KIND_OUTCOME: 1,
45292
+ AI_SESSION_SCORE_COMPONENT_KIND_STEERING_LOAD: 2,
45293
+ AI_SESSION_SCORE_COMPONENT_KIND_AGENT_RELIABILITY: 3,
45294
+ AI_SESSION_SCORE_COMPONENT_KIND_VERIFICATION: 4,
45295
+ AI_SESSION_SCORE_COMPONENT_KIND_REWORK_SPEND: 5,
45296
+ AI_SESSION_SCORE_COMPONENT_KIND_PROMPT_CLARITY: 6
45297
+ };
45298
+
41566
45299
  /**
41567
45300
  * @enum {number}
41568
45301
  */