@miradorlabs/web-grpc 4.0.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -102,6 +102,7 @@ goog.exportSymbol('proto.gateway.web.v1.DailyActivityMeasures', null, global);
102
102
  goog.exportSymbol('proto.gateway.web.v1.DailyActivityPrincipal', null, global);
103
103
  goog.exportSymbol('proto.gateway.web.v1.DailyActivityRequest', null, global);
104
104
  goog.exportSymbol('proto.gateway.web.v1.DailyActivityRequest.Filter', null, global);
105
+ goog.exportSymbol('proto.gateway.web.v1.EffortGroup', null, global);
105
106
  goog.exportSymbol('proto.gateway.web.v1.EntitlementWindow', null, global);
106
107
  goog.exportSymbol('proto.gateway.web.v1.EntitlementsSnapshot', null, global);
107
108
  goog.exportSymbol('proto.gateway.web.v1.FileGroup', null, global);
@@ -124,6 +125,7 @@ goog.exportSymbol('proto.gateway.web.v1.GitActivitySummary', null, global);
124
125
  goog.exportSymbol('proto.gateway.web.v1.GitActivitySummaryBucket', null, global);
125
126
  goog.exportSymbol('proto.gateway.web.v1.GitActivitySummaryGroup', null, global);
126
127
  goog.exportSymbol('proto.gateway.web.v1.GitActivitySummaryRequest', null, global);
128
+ goog.exportSymbol('proto.gateway.web.v1.LabelCount', null, global);
127
129
  goog.exportSymbol('proto.gateway.web.v1.ListFileDirectoriesRequest', null, global);
128
130
  goog.exportSymbol('proto.gateway.web.v1.ListFileDirectoriesResponse', null, global);
129
131
  goog.exportSymbol('proto.gateway.web.v1.ListFilesRequest', null, global);
@@ -134,6 +136,8 @@ goog.exportSymbol('proto.gateway.web.v1.ListModelPriceHistoryRequest', null, glo
134
136
  goog.exportSymbol('proto.gateway.web.v1.ListModelPriceHistoryResponse', null, global);
135
137
  goog.exportSymbol('proto.gateway.web.v1.ListModelPricesRequest', null, global);
136
138
  goog.exportSymbol('proto.gateway.web.v1.ListModelPricesResponse', null, global);
139
+ goog.exportSymbol('proto.gateway.web.v1.ListModelReasoningRequest', null, global);
140
+ goog.exportSymbol('proto.gateway.web.v1.ListModelReasoningResponse', null, global);
137
141
  goog.exportSymbol('proto.gateway.web.v1.ListRelayHeartbeatsRequest', null, global);
138
142
  goog.exportSymbol('proto.gateway.web.v1.ListRelayHeartbeatsResponse', null, global);
139
143
  goog.exportSymbol('proto.gateway.web.v1.ListSessionEventsRequest', null, global);
@@ -145,6 +149,9 @@ goog.exportSymbol('proto.gateway.web.v1.ModelActivityGroup', null, global);
145
149
  goog.exportSymbol('proto.gateway.web.v1.ModelActivityPrincipal', null, global);
146
150
  goog.exportSymbol('proto.gateway.web.v1.ModelActivityRequest', null, global);
147
151
  goog.exportSymbol('proto.gateway.web.v1.ModelActivityResponse', null, global);
152
+ goog.exportSymbol('proto.gateway.web.v1.ModelReasoning', null, global);
153
+ goog.exportSymbol('proto.gateway.web.v1.ModelReasoningBaseline', null, global);
154
+ goog.exportSymbol('proto.gateway.web.v1.ModelReasoningWeek', null, global);
148
155
  goog.exportSymbol('proto.gateway.web.v1.ProjectOverview', null, global);
149
156
  goog.exportSymbol('proto.gateway.web.v1.ProjectOverviewRequest', null, global);
150
157
  goog.exportSymbol('proto.gateway.web.v1.ProjectOverviewSlice', null, global);
@@ -156,6 +163,8 @@ goog.exportSymbol('proto.gateway.web.v1.ProjectSummary', null, global);
156
163
  goog.exportSymbol('proto.gateway.web.v1.ProjectSummaryActor', null, global);
157
164
  goog.exportSymbol('proto.gateway.web.v1.ProjectUsageBucket', null, global);
158
165
  goog.exportSymbol('proto.gateway.web.v1.PromptLabelTrendFilter', null, global);
166
+ goog.exportSymbol('proto.gateway.web.v1.ReasoningCoverage', null, global);
167
+ goog.exportSymbol('proto.gateway.web.v1.ReasoningServedModels', null, global);
159
168
  goog.exportSymbol('proto.gateway.web.v1.RelayHeartbeat', null, global);
160
169
  goog.exportSymbol('proto.gateway.web.v1.RelayHeartbeatFilter', null, global);
161
170
  goog.exportSymbol('proto.gateway.web.v1.RelayHeartbeatSort', null, global);
@@ -2025,6 +2034,195 @@ if (goog.DEBUG && !COMPILED) {
2025
2034
  */
2026
2035
  proto.gateway.web.v1.ModelActivityGroup.displayName = 'proto.gateway.web.v1.ModelActivityGroup';
2027
2036
  }
2037
+ /**
2038
+ * Generated by JsPbCodeGenerator.
2039
+ * @param {Array=} opt_data Optional initial data array, typically from a
2040
+ * server response, or constructed directly in Javascript. The array is used
2041
+ * in place and becomes part of the constructed object. It is not cloned.
2042
+ * If no data is provided, the constructed object will be empty, but still
2043
+ * valid.
2044
+ * @extends {jspb.Message}
2045
+ * @constructor
2046
+ */
2047
+ proto.gateway.web.v1.ListModelReasoningRequest = function(opt_data) {
2048
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListModelReasoningRequest.repeatedFields_, null);
2049
+ };
2050
+ goog.inherits(proto.gateway.web.v1.ListModelReasoningRequest, jspb.Message);
2051
+ if (goog.DEBUG && !COMPILED) {
2052
+ /**
2053
+ * @public
2054
+ * @override
2055
+ */
2056
+ proto.gateway.web.v1.ListModelReasoningRequest.displayName = 'proto.gateway.web.v1.ListModelReasoningRequest';
2057
+ }
2058
+ /**
2059
+ * Generated by JsPbCodeGenerator.
2060
+ * @param {Array=} opt_data Optional initial data array, typically from a
2061
+ * server response, or constructed directly in Javascript. The array is used
2062
+ * in place and becomes part of the constructed object. It is not cloned.
2063
+ * If no data is provided, the constructed object will be empty, but still
2064
+ * valid.
2065
+ * @extends {jspb.Message}
2066
+ * @constructor
2067
+ */
2068
+ proto.gateway.web.v1.EffortGroup = function(opt_data) {
2069
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.EffortGroup.repeatedFields_, null);
2070
+ };
2071
+ goog.inherits(proto.gateway.web.v1.EffortGroup, jspb.Message);
2072
+ if (goog.DEBUG && !COMPILED) {
2073
+ /**
2074
+ * @public
2075
+ * @override
2076
+ */
2077
+ proto.gateway.web.v1.EffortGroup.displayName = 'proto.gateway.web.v1.EffortGroup';
2078
+ }
2079
+ /**
2080
+ * Generated by JsPbCodeGenerator.
2081
+ * @param {Array=} opt_data Optional initial data array, typically from a
2082
+ * server response, or constructed directly in Javascript. The array is used
2083
+ * in place and becomes part of the constructed object. It is not cloned.
2084
+ * If no data is provided, the constructed object will be empty, but still
2085
+ * valid.
2086
+ * @extends {jspb.Message}
2087
+ * @constructor
2088
+ */
2089
+ proto.gateway.web.v1.ListModelReasoningResponse = function(opt_data) {
2090
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListModelReasoningResponse.repeatedFields_, null);
2091
+ };
2092
+ goog.inherits(proto.gateway.web.v1.ListModelReasoningResponse, jspb.Message);
2093
+ if (goog.DEBUG && !COMPILED) {
2094
+ /**
2095
+ * @public
2096
+ * @override
2097
+ */
2098
+ proto.gateway.web.v1.ListModelReasoningResponse.displayName = 'proto.gateway.web.v1.ListModelReasoningResponse';
2099
+ }
2100
+ /**
2101
+ * Generated by JsPbCodeGenerator.
2102
+ * @param {Array=} opt_data Optional initial data array, typically from a
2103
+ * server response, or constructed directly in Javascript. The array is used
2104
+ * in place and becomes part of the constructed object. It is not cloned.
2105
+ * If no data is provided, the constructed object will be empty, but still
2106
+ * valid.
2107
+ * @extends {jspb.Message}
2108
+ * @constructor
2109
+ */
2110
+ proto.gateway.web.v1.ModelReasoning = function(opt_data) {
2111
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ModelReasoning.repeatedFields_, null);
2112
+ };
2113
+ goog.inherits(proto.gateway.web.v1.ModelReasoning, jspb.Message);
2114
+ if (goog.DEBUG && !COMPILED) {
2115
+ /**
2116
+ * @public
2117
+ * @override
2118
+ */
2119
+ proto.gateway.web.v1.ModelReasoning.displayName = 'proto.gateway.web.v1.ModelReasoning';
2120
+ }
2121
+ /**
2122
+ * Generated by JsPbCodeGenerator.
2123
+ * @param {Array=} opt_data Optional initial data array, typically from a
2124
+ * server response, or constructed directly in Javascript. The array is used
2125
+ * in place and becomes part of the constructed object. It is not cloned.
2126
+ * If no data is provided, the constructed object will be empty, but still
2127
+ * valid.
2128
+ * @extends {jspb.Message}
2129
+ * @constructor
2130
+ */
2131
+ proto.gateway.web.v1.ModelReasoningWeek = function(opt_data) {
2132
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2133
+ };
2134
+ goog.inherits(proto.gateway.web.v1.ModelReasoningWeek, jspb.Message);
2135
+ if (goog.DEBUG && !COMPILED) {
2136
+ /**
2137
+ * @public
2138
+ * @override
2139
+ */
2140
+ proto.gateway.web.v1.ModelReasoningWeek.displayName = 'proto.gateway.web.v1.ModelReasoningWeek';
2141
+ }
2142
+ /**
2143
+ * Generated by JsPbCodeGenerator.
2144
+ * @param {Array=} opt_data Optional initial data array, typically from a
2145
+ * server response, or constructed directly in Javascript. The array is used
2146
+ * in place and becomes part of the constructed object. It is not cloned.
2147
+ * If no data is provided, the constructed object will be empty, but still
2148
+ * valid.
2149
+ * @extends {jspb.Message}
2150
+ * @constructor
2151
+ */
2152
+ proto.gateway.web.v1.ModelReasoningBaseline = function(opt_data) {
2153
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2154
+ };
2155
+ goog.inherits(proto.gateway.web.v1.ModelReasoningBaseline, jspb.Message);
2156
+ if (goog.DEBUG && !COMPILED) {
2157
+ /**
2158
+ * @public
2159
+ * @override
2160
+ */
2161
+ proto.gateway.web.v1.ModelReasoningBaseline.displayName = 'proto.gateway.web.v1.ModelReasoningBaseline';
2162
+ }
2163
+ /**
2164
+ * Generated by JsPbCodeGenerator.
2165
+ * @param {Array=} opt_data Optional initial data array, typically from a
2166
+ * server response, or constructed directly in Javascript. The array is used
2167
+ * in place and becomes part of the constructed object. It is not cloned.
2168
+ * If no data is provided, the constructed object will be empty, but still
2169
+ * valid.
2170
+ * @extends {jspb.Message}
2171
+ * @constructor
2172
+ */
2173
+ proto.gateway.web.v1.ReasoningCoverage = function(opt_data) {
2174
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ReasoningCoverage.repeatedFields_, null);
2175
+ };
2176
+ goog.inherits(proto.gateway.web.v1.ReasoningCoverage, jspb.Message);
2177
+ if (goog.DEBUG && !COMPILED) {
2178
+ /**
2179
+ * @public
2180
+ * @override
2181
+ */
2182
+ proto.gateway.web.v1.ReasoningCoverage.displayName = 'proto.gateway.web.v1.ReasoningCoverage';
2183
+ }
2184
+ /**
2185
+ * Generated by JsPbCodeGenerator.
2186
+ * @param {Array=} opt_data Optional initial data array, typically from a
2187
+ * server response, or constructed directly in Javascript. The array is used
2188
+ * in place and becomes part of the constructed object. It is not cloned.
2189
+ * If no data is provided, the constructed object will be empty, but still
2190
+ * valid.
2191
+ * @extends {jspb.Message}
2192
+ * @constructor
2193
+ */
2194
+ proto.gateway.web.v1.ReasoningServedModels = function(opt_data) {
2195
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ReasoningServedModels.repeatedFields_, null);
2196
+ };
2197
+ goog.inherits(proto.gateway.web.v1.ReasoningServedModels, jspb.Message);
2198
+ if (goog.DEBUG && !COMPILED) {
2199
+ /**
2200
+ * @public
2201
+ * @override
2202
+ */
2203
+ proto.gateway.web.v1.ReasoningServedModels.displayName = 'proto.gateway.web.v1.ReasoningServedModels';
2204
+ }
2205
+ /**
2206
+ * Generated by JsPbCodeGenerator.
2207
+ * @param {Array=} opt_data Optional initial data array, typically from a
2208
+ * server response, or constructed directly in Javascript. The array is used
2209
+ * in place and becomes part of the constructed object. It is not cloned.
2210
+ * If no data is provided, the constructed object will be empty, but still
2211
+ * valid.
2212
+ * @extends {jspb.Message}
2213
+ * @constructor
2214
+ */
2215
+ proto.gateway.web.v1.LabelCount = function(opt_data) {
2216
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2217
+ };
2218
+ goog.inherits(proto.gateway.web.v1.LabelCount, jspb.Message);
2219
+ if (goog.DEBUG && !COMPILED) {
2220
+ /**
2221
+ * @public
2222
+ * @override
2223
+ */
2224
+ proto.gateway.web.v1.LabelCount.displayName = 'proto.gateway.web.v1.LabelCount';
2225
+ }
2028
2226
  /**
2029
2227
  * Generated by JsPbCodeGenerator.
2030
2228
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -30801,6 +30999,2765 @@ proto.gateway.web.v1.ModelActivityGroup.prototype.clearModelNamesList = function
30801
30999
 
30802
31000
 
30803
31001
 
31002
+ /**
31003
+ * List of repeated fields within this message type.
31004
+ * @private {!Array<number>}
31005
+ * @const
31006
+ */
31007
+ proto.gateway.web.v1.ListModelReasoningRequest.repeatedFields_ = [3,4];
31008
+
31009
+
31010
+
31011
+ if (jspb.Message.GENERATE_TO_OBJECT) {
31012
+ /**
31013
+ * Creates an object representation of this proto.
31014
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
31015
+ * Optional fields that are not set will be set to undefined.
31016
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
31017
+ * For the list of reserved names please see:
31018
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
31019
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
31020
+ * JSPB instance for transitional soy proto support:
31021
+ * http://goto/soy-param-migration
31022
+ * @return {!Object}
31023
+ */
31024
+ proto.gateway.web.v1.ListModelReasoningRequest.prototype.toObject = function(opt_includeInstance) {
31025
+ return proto.gateway.web.v1.ListModelReasoningRequest.toObject(opt_includeInstance, this);
31026
+ };
31027
+
31028
+
31029
+ /**
31030
+ * Static version of the {@see toObject} method.
31031
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
31032
+ * the JSPB instance for transitional soy proto support:
31033
+ * http://goto/soy-param-migration
31034
+ * @param {!proto.gateway.web.v1.ListModelReasoningRequest} msg The msg instance to transform.
31035
+ * @return {!Object}
31036
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31037
+ */
31038
+ proto.gateway.web.v1.ListModelReasoningRequest.toObject = function(includeInstance, msg) {
31039
+ var f, obj = {
31040
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
31041
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
31042
+ groupsList: jspb.Message.toObjectList(msg.getGroupsList(),
31043
+ proto.gateway.web.v1.ModelActivityGroup.toObject, includeInstance),
31044
+ effortGroupsList: jspb.Message.toObjectList(msg.getEffortGroupsList(),
31045
+ proto.gateway.web.v1.EffortGroup.toObject, includeInstance),
31046
+ startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
31047
+ endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
31048
+ };
31049
+
31050
+ if (includeInstance) {
31051
+ obj.$jspbMessageInstance = msg;
31052
+ }
31053
+ return obj;
31054
+ };
31055
+ }
31056
+
31057
+
31058
+ /**
31059
+ * Deserializes binary data (in protobuf wire format).
31060
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
31061
+ * @return {!proto.gateway.web.v1.ListModelReasoningRequest}
31062
+ */
31063
+ proto.gateway.web.v1.ListModelReasoningRequest.deserializeBinary = function(bytes) {
31064
+ var reader = new jspb.BinaryReader(bytes);
31065
+ var msg = new proto.gateway.web.v1.ListModelReasoningRequest;
31066
+ return proto.gateway.web.v1.ListModelReasoningRequest.deserializeBinaryFromReader(msg, reader);
31067
+ };
31068
+
31069
+
31070
+ /**
31071
+ * Deserializes binary data (in protobuf wire format) from the
31072
+ * given reader into the given message object.
31073
+ * @param {!proto.gateway.web.v1.ListModelReasoningRequest} msg The message object to deserialize into.
31074
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
31075
+ * @return {!proto.gateway.web.v1.ListModelReasoningRequest}
31076
+ */
31077
+ proto.gateway.web.v1.ListModelReasoningRequest.deserializeBinaryFromReader = function(msg, reader) {
31078
+ while (reader.nextField()) {
31079
+ if (reader.isEndGroup()) {
31080
+ break;
31081
+ }
31082
+ var field = reader.getFieldNumber();
31083
+ switch (field) {
31084
+ case 1:
31085
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
31086
+ msg.setOrganizationId(value);
31087
+ break;
31088
+ case 2:
31089
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
31090
+ msg.setProjectId(value);
31091
+ break;
31092
+ case 3:
31093
+ var value = new proto.gateway.web.v1.ModelActivityGroup;
31094
+ reader.readMessage(value,proto.gateway.web.v1.ModelActivityGroup.deserializeBinaryFromReader);
31095
+ msg.addGroups(value);
31096
+ break;
31097
+ case 4:
31098
+ var value = new proto.gateway.web.v1.EffortGroup;
31099
+ reader.readMessage(value,proto.gateway.web.v1.EffortGroup.deserializeBinaryFromReader);
31100
+ msg.addEffortGroups(value);
31101
+ break;
31102
+ case 5:
31103
+ var value = new google_protobuf_timestamp_pb.Timestamp;
31104
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
31105
+ msg.setStartTime(value);
31106
+ break;
31107
+ case 6:
31108
+ var value = new google_protobuf_timestamp_pb.Timestamp;
31109
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
31110
+ msg.setEndTime(value);
31111
+ break;
31112
+ default:
31113
+ reader.skipField();
31114
+ break;
31115
+ }
31116
+ }
31117
+ return msg;
31118
+ };
31119
+
31120
+
31121
+ /**
31122
+ * Serializes the message to binary data (in protobuf wire format).
31123
+ * @return {!Uint8Array}
31124
+ */
31125
+ proto.gateway.web.v1.ListModelReasoningRequest.prototype.serializeBinary = function() {
31126
+ var writer = new jspb.BinaryWriter();
31127
+ proto.gateway.web.v1.ListModelReasoningRequest.serializeBinaryToWriter(this, writer);
31128
+ return writer.getResultBuffer();
31129
+ };
31130
+
31131
+
31132
+ /**
31133
+ * Serializes the given message to binary data (in protobuf wire
31134
+ * format), writing to the given BinaryWriter.
31135
+ * @param {!proto.gateway.web.v1.ListModelReasoningRequest} message
31136
+ * @param {!jspb.BinaryWriter} writer
31137
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31138
+ */
31139
+ proto.gateway.web.v1.ListModelReasoningRequest.serializeBinaryToWriter = function(message, writer) {
31140
+ var f = undefined;
31141
+ f = message.getOrganizationId();
31142
+ if (f.length > 0) {
31143
+ writer.writeString(
31144
+ 1,
31145
+ f
31146
+ );
31147
+ }
31148
+ f = message.getProjectId();
31149
+ if (f.length > 0) {
31150
+ writer.writeString(
31151
+ 2,
31152
+ f
31153
+ );
31154
+ }
31155
+ f = message.getGroupsList();
31156
+ if (f.length > 0) {
31157
+ writer.writeRepeatedMessage(
31158
+ 3,
31159
+ f,
31160
+ proto.gateway.web.v1.ModelActivityGroup.serializeBinaryToWriter
31161
+ );
31162
+ }
31163
+ f = message.getEffortGroupsList();
31164
+ if (f.length > 0) {
31165
+ writer.writeRepeatedMessage(
31166
+ 4,
31167
+ f,
31168
+ proto.gateway.web.v1.EffortGroup.serializeBinaryToWriter
31169
+ );
31170
+ }
31171
+ f = message.getStartTime();
31172
+ if (f != null) {
31173
+ writer.writeMessage(
31174
+ 5,
31175
+ f,
31176
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
31177
+ );
31178
+ }
31179
+ f = message.getEndTime();
31180
+ if (f != null) {
31181
+ writer.writeMessage(
31182
+ 6,
31183
+ f,
31184
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
31185
+ );
31186
+ }
31187
+ };
31188
+
31189
+
31190
+ /**
31191
+ * optional string organization_id = 1;
31192
+ * @return {string}
31193
+ */
31194
+ proto.gateway.web.v1.ListModelReasoningRequest.prototype.getOrganizationId = function() {
31195
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
31196
+ };
31197
+
31198
+
31199
+ /**
31200
+ * @param {string} value
31201
+ * @return {!proto.gateway.web.v1.ListModelReasoningRequest} returns this
31202
+ */
31203
+ proto.gateway.web.v1.ListModelReasoningRequest.prototype.setOrganizationId = function(value) {
31204
+ return jspb.Message.setProto3StringField(this, 1, value);
31205
+ };
31206
+
31207
+
31208
+ /**
31209
+ * optional string project_id = 2;
31210
+ * @return {string}
31211
+ */
31212
+ proto.gateway.web.v1.ListModelReasoningRequest.prototype.getProjectId = function() {
31213
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
31214
+ };
31215
+
31216
+
31217
+ /**
31218
+ * @param {string} value
31219
+ * @return {!proto.gateway.web.v1.ListModelReasoningRequest} returns this
31220
+ */
31221
+ proto.gateway.web.v1.ListModelReasoningRequest.prototype.setProjectId = function(value) {
31222
+ return jspb.Message.setProto3StringField(this, 2, value);
31223
+ };
31224
+
31225
+
31226
+ /**
31227
+ * repeated ModelActivityGroup groups = 3;
31228
+ * @return {!Array<!proto.gateway.web.v1.ModelActivityGroup>}
31229
+ */
31230
+ proto.gateway.web.v1.ListModelReasoningRequest.prototype.getGroupsList = function() {
31231
+ return /** @type{!Array<!proto.gateway.web.v1.ModelActivityGroup>} */ (
31232
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.ModelActivityGroup, 3));
31233
+ };
31234
+
31235
+
31236
+ /**
31237
+ * @param {!Array<!proto.gateway.web.v1.ModelActivityGroup>} value
31238
+ * @return {!proto.gateway.web.v1.ListModelReasoningRequest} returns this
31239
+ */
31240
+ proto.gateway.web.v1.ListModelReasoningRequest.prototype.setGroupsList = function(value) {
31241
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
31242
+ };
31243
+
31244
+
31245
+ /**
31246
+ * @param {!proto.gateway.web.v1.ModelActivityGroup=} opt_value
31247
+ * @param {number=} opt_index
31248
+ * @return {!proto.gateway.web.v1.ModelActivityGroup}
31249
+ */
31250
+ proto.gateway.web.v1.ListModelReasoningRequest.prototype.addGroups = function(opt_value, opt_index) {
31251
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gateway.web.v1.ModelActivityGroup, opt_index);
31252
+ };
31253
+
31254
+
31255
+ /**
31256
+ * Clears the list making it empty but non-null.
31257
+ * @return {!proto.gateway.web.v1.ListModelReasoningRequest} returns this
31258
+ */
31259
+ proto.gateway.web.v1.ListModelReasoningRequest.prototype.clearGroupsList = function() {
31260
+ return this.setGroupsList([]);
31261
+ };
31262
+
31263
+
31264
+ /**
31265
+ * repeated EffortGroup effort_groups = 4;
31266
+ * @return {!Array<!proto.gateway.web.v1.EffortGroup>}
31267
+ */
31268
+ proto.gateway.web.v1.ListModelReasoningRequest.prototype.getEffortGroupsList = function() {
31269
+ return /** @type{!Array<!proto.gateway.web.v1.EffortGroup>} */ (
31270
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.EffortGroup, 4));
31271
+ };
31272
+
31273
+
31274
+ /**
31275
+ * @param {!Array<!proto.gateway.web.v1.EffortGroup>} value
31276
+ * @return {!proto.gateway.web.v1.ListModelReasoningRequest} returns this
31277
+ */
31278
+ proto.gateway.web.v1.ListModelReasoningRequest.prototype.setEffortGroupsList = function(value) {
31279
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
31280
+ };
31281
+
31282
+
31283
+ /**
31284
+ * @param {!proto.gateway.web.v1.EffortGroup=} opt_value
31285
+ * @param {number=} opt_index
31286
+ * @return {!proto.gateway.web.v1.EffortGroup}
31287
+ */
31288
+ proto.gateway.web.v1.ListModelReasoningRequest.prototype.addEffortGroups = function(opt_value, opt_index) {
31289
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.gateway.web.v1.EffortGroup, opt_index);
31290
+ };
31291
+
31292
+
31293
+ /**
31294
+ * Clears the list making it empty but non-null.
31295
+ * @return {!proto.gateway.web.v1.ListModelReasoningRequest} returns this
31296
+ */
31297
+ proto.gateway.web.v1.ListModelReasoningRequest.prototype.clearEffortGroupsList = function() {
31298
+ return this.setEffortGroupsList([]);
31299
+ };
31300
+
31301
+
31302
+ /**
31303
+ * optional google.protobuf.Timestamp start_time = 5;
31304
+ * @return {?proto.google.protobuf.Timestamp}
31305
+ */
31306
+ proto.gateway.web.v1.ListModelReasoningRequest.prototype.getStartTime = function() {
31307
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
31308
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
31309
+ };
31310
+
31311
+
31312
+ /**
31313
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
31314
+ * @return {!proto.gateway.web.v1.ListModelReasoningRequest} returns this
31315
+ */
31316
+ proto.gateway.web.v1.ListModelReasoningRequest.prototype.setStartTime = function(value) {
31317
+ return jspb.Message.setWrapperField(this, 5, value);
31318
+ };
31319
+
31320
+
31321
+ /**
31322
+ * Clears the message field making it undefined.
31323
+ * @return {!proto.gateway.web.v1.ListModelReasoningRequest} returns this
31324
+ */
31325
+ proto.gateway.web.v1.ListModelReasoningRequest.prototype.clearStartTime = function() {
31326
+ return this.setStartTime(undefined);
31327
+ };
31328
+
31329
+
31330
+ /**
31331
+ * Returns whether this field is set.
31332
+ * @return {boolean}
31333
+ */
31334
+ proto.gateway.web.v1.ListModelReasoningRequest.prototype.hasStartTime = function() {
31335
+ return jspb.Message.getField(this, 5) != null;
31336
+ };
31337
+
31338
+
31339
+ /**
31340
+ * optional google.protobuf.Timestamp end_time = 6;
31341
+ * @return {?proto.google.protobuf.Timestamp}
31342
+ */
31343
+ proto.gateway.web.v1.ListModelReasoningRequest.prototype.getEndTime = function() {
31344
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
31345
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
31346
+ };
31347
+
31348
+
31349
+ /**
31350
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
31351
+ * @return {!proto.gateway.web.v1.ListModelReasoningRequest} returns this
31352
+ */
31353
+ proto.gateway.web.v1.ListModelReasoningRequest.prototype.setEndTime = function(value) {
31354
+ return jspb.Message.setWrapperField(this, 6, value);
31355
+ };
31356
+
31357
+
31358
+ /**
31359
+ * Clears the message field making it undefined.
31360
+ * @return {!proto.gateway.web.v1.ListModelReasoningRequest} returns this
31361
+ */
31362
+ proto.gateway.web.v1.ListModelReasoningRequest.prototype.clearEndTime = function() {
31363
+ return this.setEndTime(undefined);
31364
+ };
31365
+
31366
+
31367
+ /**
31368
+ * Returns whether this field is set.
31369
+ * @return {boolean}
31370
+ */
31371
+ proto.gateway.web.v1.ListModelReasoningRequest.prototype.hasEndTime = function() {
31372
+ return jspb.Message.getField(this, 6) != null;
31373
+ };
31374
+
31375
+
31376
+
31377
+ /**
31378
+ * List of repeated fields within this message type.
31379
+ * @private {!Array<number>}
31380
+ * @const
31381
+ */
31382
+ proto.gateway.web.v1.EffortGroup.repeatedFields_ = [2];
31383
+
31384
+
31385
+
31386
+ if (jspb.Message.GENERATE_TO_OBJECT) {
31387
+ /**
31388
+ * Creates an object representation of this proto.
31389
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
31390
+ * Optional fields that are not set will be set to undefined.
31391
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
31392
+ * For the list of reserved names please see:
31393
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
31394
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
31395
+ * JSPB instance for transitional soy proto support:
31396
+ * http://goto/soy-param-migration
31397
+ * @return {!Object}
31398
+ */
31399
+ proto.gateway.web.v1.EffortGroup.prototype.toObject = function(opt_includeInstance) {
31400
+ return proto.gateway.web.v1.EffortGroup.toObject(opt_includeInstance, this);
31401
+ };
31402
+
31403
+
31404
+ /**
31405
+ * Static version of the {@see toObject} method.
31406
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
31407
+ * the JSPB instance for transitional soy proto support:
31408
+ * http://goto/soy-param-migration
31409
+ * @param {!proto.gateway.web.v1.EffortGroup} msg The msg instance to transform.
31410
+ * @return {!Object}
31411
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31412
+ */
31413
+ proto.gateway.web.v1.EffortGroup.toObject = function(includeInstance, msg) {
31414
+ var f, obj = {
31415
+ key: jspb.Message.getFieldWithDefault(msg, 1, ""),
31416
+ effortNamesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
31417
+ };
31418
+
31419
+ if (includeInstance) {
31420
+ obj.$jspbMessageInstance = msg;
31421
+ }
31422
+ return obj;
31423
+ };
31424
+ }
31425
+
31426
+
31427
+ /**
31428
+ * Deserializes binary data (in protobuf wire format).
31429
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
31430
+ * @return {!proto.gateway.web.v1.EffortGroup}
31431
+ */
31432
+ proto.gateway.web.v1.EffortGroup.deserializeBinary = function(bytes) {
31433
+ var reader = new jspb.BinaryReader(bytes);
31434
+ var msg = new proto.gateway.web.v1.EffortGroup;
31435
+ return proto.gateway.web.v1.EffortGroup.deserializeBinaryFromReader(msg, reader);
31436
+ };
31437
+
31438
+
31439
+ /**
31440
+ * Deserializes binary data (in protobuf wire format) from the
31441
+ * given reader into the given message object.
31442
+ * @param {!proto.gateway.web.v1.EffortGroup} msg The message object to deserialize into.
31443
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
31444
+ * @return {!proto.gateway.web.v1.EffortGroup}
31445
+ */
31446
+ proto.gateway.web.v1.EffortGroup.deserializeBinaryFromReader = function(msg, reader) {
31447
+ while (reader.nextField()) {
31448
+ if (reader.isEndGroup()) {
31449
+ break;
31450
+ }
31451
+ var field = reader.getFieldNumber();
31452
+ switch (field) {
31453
+ case 1:
31454
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
31455
+ msg.setKey(value);
31456
+ break;
31457
+ case 2:
31458
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
31459
+ msg.addEffortNames(value);
31460
+ break;
31461
+ default:
31462
+ reader.skipField();
31463
+ break;
31464
+ }
31465
+ }
31466
+ return msg;
31467
+ };
31468
+
31469
+
31470
+ /**
31471
+ * Serializes the message to binary data (in protobuf wire format).
31472
+ * @return {!Uint8Array}
31473
+ */
31474
+ proto.gateway.web.v1.EffortGroup.prototype.serializeBinary = function() {
31475
+ var writer = new jspb.BinaryWriter();
31476
+ proto.gateway.web.v1.EffortGroup.serializeBinaryToWriter(this, writer);
31477
+ return writer.getResultBuffer();
31478
+ };
31479
+
31480
+
31481
+ /**
31482
+ * Serializes the given message to binary data (in protobuf wire
31483
+ * format), writing to the given BinaryWriter.
31484
+ * @param {!proto.gateway.web.v1.EffortGroup} message
31485
+ * @param {!jspb.BinaryWriter} writer
31486
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31487
+ */
31488
+ proto.gateway.web.v1.EffortGroup.serializeBinaryToWriter = function(message, writer) {
31489
+ var f = undefined;
31490
+ f = message.getKey();
31491
+ if (f.length > 0) {
31492
+ writer.writeString(
31493
+ 1,
31494
+ f
31495
+ );
31496
+ }
31497
+ f = message.getEffortNamesList();
31498
+ if (f.length > 0) {
31499
+ writer.writeRepeatedString(
31500
+ 2,
31501
+ f
31502
+ );
31503
+ }
31504
+ };
31505
+
31506
+
31507
+ /**
31508
+ * optional string key = 1;
31509
+ * @return {string}
31510
+ */
31511
+ proto.gateway.web.v1.EffortGroup.prototype.getKey = function() {
31512
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
31513
+ };
31514
+
31515
+
31516
+ /**
31517
+ * @param {string} value
31518
+ * @return {!proto.gateway.web.v1.EffortGroup} returns this
31519
+ */
31520
+ proto.gateway.web.v1.EffortGroup.prototype.setKey = function(value) {
31521
+ return jspb.Message.setProto3StringField(this, 1, value);
31522
+ };
31523
+
31524
+
31525
+ /**
31526
+ * repeated string effort_names = 2;
31527
+ * @return {!Array<string>}
31528
+ */
31529
+ proto.gateway.web.v1.EffortGroup.prototype.getEffortNamesList = function() {
31530
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
31531
+ };
31532
+
31533
+
31534
+ /**
31535
+ * @param {!Array<string>} value
31536
+ * @return {!proto.gateway.web.v1.EffortGroup} returns this
31537
+ */
31538
+ proto.gateway.web.v1.EffortGroup.prototype.setEffortNamesList = function(value) {
31539
+ return jspb.Message.setField(this, 2, value || []);
31540
+ };
31541
+
31542
+
31543
+ /**
31544
+ * @param {string} value
31545
+ * @param {number=} opt_index
31546
+ * @return {!proto.gateway.web.v1.EffortGroup} returns this
31547
+ */
31548
+ proto.gateway.web.v1.EffortGroup.prototype.addEffortNames = function(value, opt_index) {
31549
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
31550
+ };
31551
+
31552
+
31553
+ /**
31554
+ * Clears the list making it empty but non-null.
31555
+ * @return {!proto.gateway.web.v1.EffortGroup} returns this
31556
+ */
31557
+ proto.gateway.web.v1.EffortGroup.prototype.clearEffortNamesList = function() {
31558
+ return this.setEffortNamesList([]);
31559
+ };
31560
+
31561
+
31562
+
31563
+ /**
31564
+ * List of repeated fields within this message type.
31565
+ * @private {!Array<number>}
31566
+ * @const
31567
+ */
31568
+ proto.gateway.web.v1.ListModelReasoningResponse.repeatedFields_ = [2];
31569
+
31570
+
31571
+
31572
+ if (jspb.Message.GENERATE_TO_OBJECT) {
31573
+ /**
31574
+ * Creates an object representation of this proto.
31575
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
31576
+ * Optional fields that are not set will be set to undefined.
31577
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
31578
+ * For the list of reserved names please see:
31579
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
31580
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
31581
+ * JSPB instance for transitional soy proto support:
31582
+ * http://goto/soy-param-migration
31583
+ * @return {!Object}
31584
+ */
31585
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.toObject = function(opt_includeInstance) {
31586
+ return proto.gateway.web.v1.ListModelReasoningResponse.toObject(opt_includeInstance, this);
31587
+ };
31588
+
31589
+
31590
+ /**
31591
+ * Static version of the {@see toObject} method.
31592
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
31593
+ * the JSPB instance for transitional soy proto support:
31594
+ * http://goto/soy-param-migration
31595
+ * @param {!proto.gateway.web.v1.ListModelReasoningResponse} msg The msg instance to transform.
31596
+ * @return {!Object}
31597
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31598
+ */
31599
+ proto.gateway.web.v1.ListModelReasoningResponse.toObject = function(includeInstance, msg) {
31600
+ var f, obj = {
31601
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
31602
+ modelsList: jspb.Message.toObjectList(msg.getModelsList(),
31603
+ proto.gateway.web.v1.ModelReasoning.toObject, includeInstance),
31604
+ coverage: (f = msg.getCoverage()) && proto.gateway.web.v1.ReasoningCoverage.toObject(includeInstance, f),
31605
+ servedModels: (f = msg.getServedModels()) && proto.gateway.web.v1.ReasoningServedModels.toObject(includeInstance, f),
31606
+ windowStart: (f = msg.getWindowStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
31607
+ windowEnd: (f = msg.getWindowEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
31608
+ };
31609
+
31610
+ if (includeInstance) {
31611
+ obj.$jspbMessageInstance = msg;
31612
+ }
31613
+ return obj;
31614
+ };
31615
+ }
31616
+
31617
+
31618
+ /**
31619
+ * Deserializes binary data (in protobuf wire format).
31620
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
31621
+ * @return {!proto.gateway.web.v1.ListModelReasoningResponse}
31622
+ */
31623
+ proto.gateway.web.v1.ListModelReasoningResponse.deserializeBinary = function(bytes) {
31624
+ var reader = new jspb.BinaryReader(bytes);
31625
+ var msg = new proto.gateway.web.v1.ListModelReasoningResponse;
31626
+ return proto.gateway.web.v1.ListModelReasoningResponse.deserializeBinaryFromReader(msg, reader);
31627
+ };
31628
+
31629
+
31630
+ /**
31631
+ * Deserializes binary data (in protobuf wire format) from the
31632
+ * given reader into the given message object.
31633
+ * @param {!proto.gateway.web.v1.ListModelReasoningResponse} msg The message object to deserialize into.
31634
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
31635
+ * @return {!proto.gateway.web.v1.ListModelReasoningResponse}
31636
+ */
31637
+ proto.gateway.web.v1.ListModelReasoningResponse.deserializeBinaryFromReader = function(msg, reader) {
31638
+ while (reader.nextField()) {
31639
+ if (reader.isEndGroup()) {
31640
+ break;
31641
+ }
31642
+ var field = reader.getFieldNumber();
31643
+ switch (field) {
31644
+ case 1:
31645
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
31646
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
31647
+ msg.setStatus(value);
31648
+ break;
31649
+ case 2:
31650
+ var value = new proto.gateway.web.v1.ModelReasoning;
31651
+ reader.readMessage(value,proto.gateway.web.v1.ModelReasoning.deserializeBinaryFromReader);
31652
+ msg.addModels(value);
31653
+ break;
31654
+ case 3:
31655
+ var value = new proto.gateway.web.v1.ReasoningCoverage;
31656
+ reader.readMessage(value,proto.gateway.web.v1.ReasoningCoverage.deserializeBinaryFromReader);
31657
+ msg.setCoverage(value);
31658
+ break;
31659
+ case 4:
31660
+ var value = new proto.gateway.web.v1.ReasoningServedModels;
31661
+ reader.readMessage(value,proto.gateway.web.v1.ReasoningServedModels.deserializeBinaryFromReader);
31662
+ msg.setServedModels(value);
31663
+ break;
31664
+ case 5:
31665
+ var value = new google_protobuf_timestamp_pb.Timestamp;
31666
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
31667
+ msg.setWindowStart(value);
31668
+ break;
31669
+ case 6:
31670
+ var value = new google_protobuf_timestamp_pb.Timestamp;
31671
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
31672
+ msg.setWindowEnd(value);
31673
+ break;
31674
+ default:
31675
+ reader.skipField();
31676
+ break;
31677
+ }
31678
+ }
31679
+ return msg;
31680
+ };
31681
+
31682
+
31683
+ /**
31684
+ * Serializes the message to binary data (in protobuf wire format).
31685
+ * @return {!Uint8Array}
31686
+ */
31687
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.serializeBinary = function() {
31688
+ var writer = new jspb.BinaryWriter();
31689
+ proto.gateway.web.v1.ListModelReasoningResponse.serializeBinaryToWriter(this, writer);
31690
+ return writer.getResultBuffer();
31691
+ };
31692
+
31693
+
31694
+ /**
31695
+ * Serializes the given message to binary data (in protobuf wire
31696
+ * format), writing to the given BinaryWriter.
31697
+ * @param {!proto.gateway.web.v1.ListModelReasoningResponse} message
31698
+ * @param {!jspb.BinaryWriter} writer
31699
+ * @suppress {unusedLocalVariables} f is only used for nested messages
31700
+ */
31701
+ proto.gateway.web.v1.ListModelReasoningResponse.serializeBinaryToWriter = function(message, writer) {
31702
+ var f = undefined;
31703
+ f = message.getStatus();
31704
+ if (f != null) {
31705
+ writer.writeMessage(
31706
+ 1,
31707
+ f,
31708
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
31709
+ );
31710
+ }
31711
+ f = message.getModelsList();
31712
+ if (f.length > 0) {
31713
+ writer.writeRepeatedMessage(
31714
+ 2,
31715
+ f,
31716
+ proto.gateway.web.v1.ModelReasoning.serializeBinaryToWriter
31717
+ );
31718
+ }
31719
+ f = message.getCoverage();
31720
+ if (f != null) {
31721
+ writer.writeMessage(
31722
+ 3,
31723
+ f,
31724
+ proto.gateway.web.v1.ReasoningCoverage.serializeBinaryToWriter
31725
+ );
31726
+ }
31727
+ f = message.getServedModels();
31728
+ if (f != null) {
31729
+ writer.writeMessage(
31730
+ 4,
31731
+ f,
31732
+ proto.gateway.web.v1.ReasoningServedModels.serializeBinaryToWriter
31733
+ );
31734
+ }
31735
+ f = message.getWindowStart();
31736
+ if (f != null) {
31737
+ writer.writeMessage(
31738
+ 5,
31739
+ f,
31740
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
31741
+ );
31742
+ }
31743
+ f = message.getWindowEnd();
31744
+ if (f != null) {
31745
+ writer.writeMessage(
31746
+ 6,
31747
+ f,
31748
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
31749
+ );
31750
+ }
31751
+ };
31752
+
31753
+
31754
+ /**
31755
+ * optional gateway.common.v1.ResponseStatus status = 1;
31756
+ * @return {?proto.gateway.common.v1.ResponseStatus}
31757
+ */
31758
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.getStatus = function() {
31759
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
31760
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
31761
+ };
31762
+
31763
+
31764
+ /**
31765
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
31766
+ * @return {!proto.gateway.web.v1.ListModelReasoningResponse} returns this
31767
+ */
31768
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.setStatus = function(value) {
31769
+ return jspb.Message.setWrapperField(this, 1, value);
31770
+ };
31771
+
31772
+
31773
+ /**
31774
+ * Clears the message field making it undefined.
31775
+ * @return {!proto.gateway.web.v1.ListModelReasoningResponse} returns this
31776
+ */
31777
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.clearStatus = function() {
31778
+ return this.setStatus(undefined);
31779
+ };
31780
+
31781
+
31782
+ /**
31783
+ * Returns whether this field is set.
31784
+ * @return {boolean}
31785
+ */
31786
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.hasStatus = function() {
31787
+ return jspb.Message.getField(this, 1) != null;
31788
+ };
31789
+
31790
+
31791
+ /**
31792
+ * repeated ModelReasoning models = 2;
31793
+ * @return {!Array<!proto.gateway.web.v1.ModelReasoning>}
31794
+ */
31795
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.getModelsList = function() {
31796
+ return /** @type{!Array<!proto.gateway.web.v1.ModelReasoning>} */ (
31797
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.ModelReasoning, 2));
31798
+ };
31799
+
31800
+
31801
+ /**
31802
+ * @param {!Array<!proto.gateway.web.v1.ModelReasoning>} value
31803
+ * @return {!proto.gateway.web.v1.ListModelReasoningResponse} returns this
31804
+ */
31805
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.setModelsList = function(value) {
31806
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
31807
+ };
31808
+
31809
+
31810
+ /**
31811
+ * @param {!proto.gateway.web.v1.ModelReasoning=} opt_value
31812
+ * @param {number=} opt_index
31813
+ * @return {!proto.gateway.web.v1.ModelReasoning}
31814
+ */
31815
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.addModels = function(opt_value, opt_index) {
31816
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.ModelReasoning, opt_index);
31817
+ };
31818
+
31819
+
31820
+ /**
31821
+ * Clears the list making it empty but non-null.
31822
+ * @return {!proto.gateway.web.v1.ListModelReasoningResponse} returns this
31823
+ */
31824
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.clearModelsList = function() {
31825
+ return this.setModelsList([]);
31826
+ };
31827
+
31828
+
31829
+ /**
31830
+ * optional ReasoningCoverage coverage = 3;
31831
+ * @return {?proto.gateway.web.v1.ReasoningCoverage}
31832
+ */
31833
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.getCoverage = function() {
31834
+ return /** @type{?proto.gateway.web.v1.ReasoningCoverage} */ (
31835
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.ReasoningCoverage, 3));
31836
+ };
31837
+
31838
+
31839
+ /**
31840
+ * @param {?proto.gateway.web.v1.ReasoningCoverage|undefined} value
31841
+ * @return {!proto.gateway.web.v1.ListModelReasoningResponse} returns this
31842
+ */
31843
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.setCoverage = function(value) {
31844
+ return jspb.Message.setWrapperField(this, 3, value);
31845
+ };
31846
+
31847
+
31848
+ /**
31849
+ * Clears the message field making it undefined.
31850
+ * @return {!proto.gateway.web.v1.ListModelReasoningResponse} returns this
31851
+ */
31852
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.clearCoverage = function() {
31853
+ return this.setCoverage(undefined);
31854
+ };
31855
+
31856
+
31857
+ /**
31858
+ * Returns whether this field is set.
31859
+ * @return {boolean}
31860
+ */
31861
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.hasCoverage = function() {
31862
+ return jspb.Message.getField(this, 3) != null;
31863
+ };
31864
+
31865
+
31866
+ /**
31867
+ * optional ReasoningServedModels served_models = 4;
31868
+ * @return {?proto.gateway.web.v1.ReasoningServedModels}
31869
+ */
31870
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.getServedModels = function() {
31871
+ return /** @type{?proto.gateway.web.v1.ReasoningServedModels} */ (
31872
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.ReasoningServedModels, 4));
31873
+ };
31874
+
31875
+
31876
+ /**
31877
+ * @param {?proto.gateway.web.v1.ReasoningServedModels|undefined} value
31878
+ * @return {!proto.gateway.web.v1.ListModelReasoningResponse} returns this
31879
+ */
31880
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.setServedModels = function(value) {
31881
+ return jspb.Message.setWrapperField(this, 4, value);
31882
+ };
31883
+
31884
+
31885
+ /**
31886
+ * Clears the message field making it undefined.
31887
+ * @return {!proto.gateway.web.v1.ListModelReasoningResponse} returns this
31888
+ */
31889
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.clearServedModels = function() {
31890
+ return this.setServedModels(undefined);
31891
+ };
31892
+
31893
+
31894
+ /**
31895
+ * Returns whether this field is set.
31896
+ * @return {boolean}
31897
+ */
31898
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.hasServedModels = function() {
31899
+ return jspb.Message.getField(this, 4) != null;
31900
+ };
31901
+
31902
+
31903
+ /**
31904
+ * optional google.protobuf.Timestamp window_start = 5;
31905
+ * @return {?proto.google.protobuf.Timestamp}
31906
+ */
31907
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.getWindowStart = function() {
31908
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
31909
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
31910
+ };
31911
+
31912
+
31913
+ /**
31914
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
31915
+ * @return {!proto.gateway.web.v1.ListModelReasoningResponse} returns this
31916
+ */
31917
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.setWindowStart = function(value) {
31918
+ return jspb.Message.setWrapperField(this, 5, value);
31919
+ };
31920
+
31921
+
31922
+ /**
31923
+ * Clears the message field making it undefined.
31924
+ * @return {!proto.gateway.web.v1.ListModelReasoningResponse} returns this
31925
+ */
31926
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.clearWindowStart = function() {
31927
+ return this.setWindowStart(undefined);
31928
+ };
31929
+
31930
+
31931
+ /**
31932
+ * Returns whether this field is set.
31933
+ * @return {boolean}
31934
+ */
31935
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.hasWindowStart = function() {
31936
+ return jspb.Message.getField(this, 5) != null;
31937
+ };
31938
+
31939
+
31940
+ /**
31941
+ * optional google.protobuf.Timestamp window_end = 6;
31942
+ * @return {?proto.google.protobuf.Timestamp}
31943
+ */
31944
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.getWindowEnd = function() {
31945
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
31946
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
31947
+ };
31948
+
31949
+
31950
+ /**
31951
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
31952
+ * @return {!proto.gateway.web.v1.ListModelReasoningResponse} returns this
31953
+ */
31954
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.setWindowEnd = function(value) {
31955
+ return jspb.Message.setWrapperField(this, 6, value);
31956
+ };
31957
+
31958
+
31959
+ /**
31960
+ * Clears the message field making it undefined.
31961
+ * @return {!proto.gateway.web.v1.ListModelReasoningResponse} returns this
31962
+ */
31963
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.clearWindowEnd = function() {
31964
+ return this.setWindowEnd(undefined);
31965
+ };
31966
+
31967
+
31968
+ /**
31969
+ * Returns whether this field is set.
31970
+ * @return {boolean}
31971
+ */
31972
+ proto.gateway.web.v1.ListModelReasoningResponse.prototype.hasWindowEnd = function() {
31973
+ return jspb.Message.getField(this, 6) != null;
31974
+ };
31975
+
31976
+
31977
+
31978
+ /**
31979
+ * List of repeated fields within this message type.
31980
+ * @private {!Array<number>}
31981
+ * @const
31982
+ */
31983
+ proto.gateway.web.v1.ModelReasoning.repeatedFields_ = [10];
31984
+
31985
+
31986
+
31987
+ if (jspb.Message.GENERATE_TO_OBJECT) {
31988
+ /**
31989
+ * Creates an object representation of this proto.
31990
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
31991
+ * Optional fields that are not set will be set to undefined.
31992
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
31993
+ * For the list of reserved names please see:
31994
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
31995
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
31996
+ * JSPB instance for transitional soy proto support:
31997
+ * http://goto/soy-param-migration
31998
+ * @return {!Object}
31999
+ */
32000
+ proto.gateway.web.v1.ModelReasoning.prototype.toObject = function(opt_includeInstance) {
32001
+ return proto.gateway.web.v1.ModelReasoning.toObject(opt_includeInstance, this);
32002
+ };
32003
+
32004
+
32005
+ /**
32006
+ * Static version of the {@see toObject} method.
32007
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
32008
+ * the JSPB instance for transitional soy proto support:
32009
+ * http://goto/soy-param-migration
32010
+ * @param {!proto.gateway.web.v1.ModelReasoning} msg The msg instance to transform.
32011
+ * @return {!Object}
32012
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32013
+ */
32014
+ proto.gateway.web.v1.ModelReasoning.toObject = function(includeInstance, msg) {
32015
+ var f, obj = {
32016
+ modelKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
32017
+ effortKey: jspb.Message.getFieldWithDefault(msg, 2, ""),
32018
+ calls: jspb.Message.getFieldWithDefault(msg, 3, 0),
32019
+ countedCalls: jspb.Message.getFieldWithDefault(msg, 4, 0),
32020
+ zeroThinkingCalls: jspb.Message.getFieldWithDefault(msg, 5, 0),
32021
+ medianPerCall: (f = jspb.Message.getField(msg, 6)) == null ? undefined : f,
32022
+ p90PerCall: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f,
32023
+ countedTurns: jspb.Message.getFieldWithDefault(msg, 8, 0),
32024
+ medianPerTurn: (f = jspb.Message.getField(msg, 9)) == null ? undefined : f,
32025
+ weeksList: jspb.Message.toObjectList(msg.getWeeksList(),
32026
+ proto.gateway.web.v1.ModelReasoningWeek.toObject, includeInstance)
32027
+ };
32028
+
32029
+ if (includeInstance) {
32030
+ obj.$jspbMessageInstance = msg;
32031
+ }
32032
+ return obj;
32033
+ };
32034
+ }
32035
+
32036
+
32037
+ /**
32038
+ * Deserializes binary data (in protobuf wire format).
32039
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
32040
+ * @return {!proto.gateway.web.v1.ModelReasoning}
32041
+ */
32042
+ proto.gateway.web.v1.ModelReasoning.deserializeBinary = function(bytes) {
32043
+ var reader = new jspb.BinaryReader(bytes);
32044
+ var msg = new proto.gateway.web.v1.ModelReasoning;
32045
+ return proto.gateway.web.v1.ModelReasoning.deserializeBinaryFromReader(msg, reader);
32046
+ };
32047
+
32048
+
32049
+ /**
32050
+ * Deserializes binary data (in protobuf wire format) from the
32051
+ * given reader into the given message object.
32052
+ * @param {!proto.gateway.web.v1.ModelReasoning} msg The message object to deserialize into.
32053
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
32054
+ * @return {!proto.gateway.web.v1.ModelReasoning}
32055
+ */
32056
+ proto.gateway.web.v1.ModelReasoning.deserializeBinaryFromReader = function(msg, reader) {
32057
+ while (reader.nextField()) {
32058
+ if (reader.isEndGroup()) {
32059
+ break;
32060
+ }
32061
+ var field = reader.getFieldNumber();
32062
+ switch (field) {
32063
+ case 1:
32064
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
32065
+ msg.setModelKey(value);
32066
+ break;
32067
+ case 2:
32068
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
32069
+ msg.setEffortKey(value);
32070
+ break;
32071
+ case 3:
32072
+ var value = /** @type {number} */ (reader.readUint64());
32073
+ msg.setCalls(value);
32074
+ break;
32075
+ case 4:
32076
+ var value = /** @type {number} */ (reader.readUint64());
32077
+ msg.setCountedCalls(value);
32078
+ break;
32079
+ case 5:
32080
+ var value = /** @type {number} */ (reader.readUint64());
32081
+ msg.setZeroThinkingCalls(value);
32082
+ break;
32083
+ case 6:
32084
+ var value = /** @type {number} */ (reader.readUint64());
32085
+ msg.setMedianPerCall(value);
32086
+ break;
32087
+ case 7:
32088
+ var value = /** @type {number} */ (reader.readUint64());
32089
+ msg.setP90PerCall(value);
32090
+ break;
32091
+ case 8:
32092
+ var value = /** @type {number} */ (reader.readUint64());
32093
+ msg.setCountedTurns(value);
32094
+ break;
32095
+ case 9:
32096
+ var value = /** @type {number} */ (reader.readUint64());
32097
+ msg.setMedianPerTurn(value);
32098
+ break;
32099
+ case 10:
32100
+ var value = new proto.gateway.web.v1.ModelReasoningWeek;
32101
+ reader.readMessage(value,proto.gateway.web.v1.ModelReasoningWeek.deserializeBinaryFromReader);
32102
+ msg.addWeeks(value);
32103
+ break;
32104
+ default:
32105
+ reader.skipField();
32106
+ break;
32107
+ }
32108
+ }
32109
+ return msg;
32110
+ };
32111
+
32112
+
32113
+ /**
32114
+ * Serializes the message to binary data (in protobuf wire format).
32115
+ * @return {!Uint8Array}
32116
+ */
32117
+ proto.gateway.web.v1.ModelReasoning.prototype.serializeBinary = function() {
32118
+ var writer = new jspb.BinaryWriter();
32119
+ proto.gateway.web.v1.ModelReasoning.serializeBinaryToWriter(this, writer);
32120
+ return writer.getResultBuffer();
32121
+ };
32122
+
32123
+
32124
+ /**
32125
+ * Serializes the given message to binary data (in protobuf wire
32126
+ * format), writing to the given BinaryWriter.
32127
+ * @param {!proto.gateway.web.v1.ModelReasoning} message
32128
+ * @param {!jspb.BinaryWriter} writer
32129
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32130
+ */
32131
+ proto.gateway.web.v1.ModelReasoning.serializeBinaryToWriter = function(message, writer) {
32132
+ var f = undefined;
32133
+ f = message.getModelKey();
32134
+ if (f.length > 0) {
32135
+ writer.writeString(
32136
+ 1,
32137
+ f
32138
+ );
32139
+ }
32140
+ f = message.getEffortKey();
32141
+ if (f.length > 0) {
32142
+ writer.writeString(
32143
+ 2,
32144
+ f
32145
+ );
32146
+ }
32147
+ f = message.getCalls();
32148
+ if (f !== 0) {
32149
+ writer.writeUint64(
32150
+ 3,
32151
+ f
32152
+ );
32153
+ }
32154
+ f = message.getCountedCalls();
32155
+ if (f !== 0) {
32156
+ writer.writeUint64(
32157
+ 4,
32158
+ f
32159
+ );
32160
+ }
32161
+ f = message.getZeroThinkingCalls();
32162
+ if (f !== 0) {
32163
+ writer.writeUint64(
32164
+ 5,
32165
+ f
32166
+ );
32167
+ }
32168
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
32169
+ if (f != null) {
32170
+ writer.writeUint64(
32171
+ 6,
32172
+ f
32173
+ );
32174
+ }
32175
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
32176
+ if (f != null) {
32177
+ writer.writeUint64(
32178
+ 7,
32179
+ f
32180
+ );
32181
+ }
32182
+ f = message.getCountedTurns();
32183
+ if (f !== 0) {
32184
+ writer.writeUint64(
32185
+ 8,
32186
+ f
32187
+ );
32188
+ }
32189
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
32190
+ if (f != null) {
32191
+ writer.writeUint64(
32192
+ 9,
32193
+ f
32194
+ );
32195
+ }
32196
+ f = message.getWeeksList();
32197
+ if (f.length > 0) {
32198
+ writer.writeRepeatedMessage(
32199
+ 10,
32200
+ f,
32201
+ proto.gateway.web.v1.ModelReasoningWeek.serializeBinaryToWriter
32202
+ );
32203
+ }
32204
+ };
32205
+
32206
+
32207
+ /**
32208
+ * optional string model_key = 1;
32209
+ * @return {string}
32210
+ */
32211
+ proto.gateway.web.v1.ModelReasoning.prototype.getModelKey = function() {
32212
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
32213
+ };
32214
+
32215
+
32216
+ /**
32217
+ * @param {string} value
32218
+ * @return {!proto.gateway.web.v1.ModelReasoning} returns this
32219
+ */
32220
+ proto.gateway.web.v1.ModelReasoning.prototype.setModelKey = function(value) {
32221
+ return jspb.Message.setProto3StringField(this, 1, value);
32222
+ };
32223
+
32224
+
32225
+ /**
32226
+ * optional string effort_key = 2;
32227
+ * @return {string}
32228
+ */
32229
+ proto.gateway.web.v1.ModelReasoning.prototype.getEffortKey = function() {
32230
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
32231
+ };
32232
+
32233
+
32234
+ /**
32235
+ * @param {string} value
32236
+ * @return {!proto.gateway.web.v1.ModelReasoning} returns this
32237
+ */
32238
+ proto.gateway.web.v1.ModelReasoning.prototype.setEffortKey = function(value) {
32239
+ return jspb.Message.setProto3StringField(this, 2, value);
32240
+ };
32241
+
32242
+
32243
+ /**
32244
+ * optional uint64 calls = 3;
32245
+ * @return {number}
32246
+ */
32247
+ proto.gateway.web.v1.ModelReasoning.prototype.getCalls = function() {
32248
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
32249
+ };
32250
+
32251
+
32252
+ /**
32253
+ * @param {number} value
32254
+ * @return {!proto.gateway.web.v1.ModelReasoning} returns this
32255
+ */
32256
+ proto.gateway.web.v1.ModelReasoning.prototype.setCalls = function(value) {
32257
+ return jspb.Message.setProto3IntField(this, 3, value);
32258
+ };
32259
+
32260
+
32261
+ /**
32262
+ * optional uint64 counted_calls = 4;
32263
+ * @return {number}
32264
+ */
32265
+ proto.gateway.web.v1.ModelReasoning.prototype.getCountedCalls = function() {
32266
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
32267
+ };
32268
+
32269
+
32270
+ /**
32271
+ * @param {number} value
32272
+ * @return {!proto.gateway.web.v1.ModelReasoning} returns this
32273
+ */
32274
+ proto.gateway.web.v1.ModelReasoning.prototype.setCountedCalls = function(value) {
32275
+ return jspb.Message.setProto3IntField(this, 4, value);
32276
+ };
32277
+
32278
+
32279
+ /**
32280
+ * optional uint64 zero_thinking_calls = 5;
32281
+ * @return {number}
32282
+ */
32283
+ proto.gateway.web.v1.ModelReasoning.prototype.getZeroThinkingCalls = function() {
32284
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
32285
+ };
32286
+
32287
+
32288
+ /**
32289
+ * @param {number} value
32290
+ * @return {!proto.gateway.web.v1.ModelReasoning} returns this
32291
+ */
32292
+ proto.gateway.web.v1.ModelReasoning.prototype.setZeroThinkingCalls = function(value) {
32293
+ return jspb.Message.setProto3IntField(this, 5, value);
32294
+ };
32295
+
32296
+
32297
+ /**
32298
+ * optional uint64 median_per_call = 6;
32299
+ * @return {number}
32300
+ */
32301
+ proto.gateway.web.v1.ModelReasoning.prototype.getMedianPerCall = function() {
32302
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
32303
+ };
32304
+
32305
+
32306
+ /**
32307
+ * @param {number} value
32308
+ * @return {!proto.gateway.web.v1.ModelReasoning} returns this
32309
+ */
32310
+ proto.gateway.web.v1.ModelReasoning.prototype.setMedianPerCall = function(value) {
32311
+ return jspb.Message.setField(this, 6, value);
32312
+ };
32313
+
32314
+
32315
+ /**
32316
+ * Clears the field making it undefined.
32317
+ * @return {!proto.gateway.web.v1.ModelReasoning} returns this
32318
+ */
32319
+ proto.gateway.web.v1.ModelReasoning.prototype.clearMedianPerCall = function() {
32320
+ return jspb.Message.setField(this, 6, undefined);
32321
+ };
32322
+
32323
+
32324
+ /**
32325
+ * Returns whether this field is set.
32326
+ * @return {boolean}
32327
+ */
32328
+ proto.gateway.web.v1.ModelReasoning.prototype.hasMedianPerCall = function() {
32329
+ return jspb.Message.getField(this, 6) != null;
32330
+ };
32331
+
32332
+
32333
+ /**
32334
+ * optional uint64 p90_per_call = 7;
32335
+ * @return {number}
32336
+ */
32337
+ proto.gateway.web.v1.ModelReasoning.prototype.getP90PerCall = function() {
32338
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
32339
+ };
32340
+
32341
+
32342
+ /**
32343
+ * @param {number} value
32344
+ * @return {!proto.gateway.web.v1.ModelReasoning} returns this
32345
+ */
32346
+ proto.gateway.web.v1.ModelReasoning.prototype.setP90PerCall = function(value) {
32347
+ return jspb.Message.setField(this, 7, value);
32348
+ };
32349
+
32350
+
32351
+ /**
32352
+ * Clears the field making it undefined.
32353
+ * @return {!proto.gateway.web.v1.ModelReasoning} returns this
32354
+ */
32355
+ proto.gateway.web.v1.ModelReasoning.prototype.clearP90PerCall = function() {
32356
+ return jspb.Message.setField(this, 7, undefined);
32357
+ };
32358
+
32359
+
32360
+ /**
32361
+ * Returns whether this field is set.
32362
+ * @return {boolean}
32363
+ */
32364
+ proto.gateway.web.v1.ModelReasoning.prototype.hasP90PerCall = function() {
32365
+ return jspb.Message.getField(this, 7) != null;
32366
+ };
32367
+
32368
+
32369
+ /**
32370
+ * optional uint64 counted_turns = 8;
32371
+ * @return {number}
32372
+ */
32373
+ proto.gateway.web.v1.ModelReasoning.prototype.getCountedTurns = function() {
32374
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
32375
+ };
32376
+
32377
+
32378
+ /**
32379
+ * @param {number} value
32380
+ * @return {!proto.gateway.web.v1.ModelReasoning} returns this
32381
+ */
32382
+ proto.gateway.web.v1.ModelReasoning.prototype.setCountedTurns = function(value) {
32383
+ return jspb.Message.setProto3IntField(this, 8, value);
32384
+ };
32385
+
32386
+
32387
+ /**
32388
+ * optional uint64 median_per_turn = 9;
32389
+ * @return {number}
32390
+ */
32391
+ proto.gateway.web.v1.ModelReasoning.prototype.getMedianPerTurn = function() {
32392
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
32393
+ };
32394
+
32395
+
32396
+ /**
32397
+ * @param {number} value
32398
+ * @return {!proto.gateway.web.v1.ModelReasoning} returns this
32399
+ */
32400
+ proto.gateway.web.v1.ModelReasoning.prototype.setMedianPerTurn = function(value) {
32401
+ return jspb.Message.setField(this, 9, value);
32402
+ };
32403
+
32404
+
32405
+ /**
32406
+ * Clears the field making it undefined.
32407
+ * @return {!proto.gateway.web.v1.ModelReasoning} returns this
32408
+ */
32409
+ proto.gateway.web.v1.ModelReasoning.prototype.clearMedianPerTurn = function() {
32410
+ return jspb.Message.setField(this, 9, undefined);
32411
+ };
32412
+
32413
+
32414
+ /**
32415
+ * Returns whether this field is set.
32416
+ * @return {boolean}
32417
+ */
32418
+ proto.gateway.web.v1.ModelReasoning.prototype.hasMedianPerTurn = function() {
32419
+ return jspb.Message.getField(this, 9) != null;
32420
+ };
32421
+
32422
+
32423
+ /**
32424
+ * repeated ModelReasoningWeek weeks = 10;
32425
+ * @return {!Array<!proto.gateway.web.v1.ModelReasoningWeek>}
32426
+ */
32427
+ proto.gateway.web.v1.ModelReasoning.prototype.getWeeksList = function() {
32428
+ return /** @type{!Array<!proto.gateway.web.v1.ModelReasoningWeek>} */ (
32429
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.ModelReasoningWeek, 10));
32430
+ };
32431
+
32432
+
32433
+ /**
32434
+ * @param {!Array<!proto.gateway.web.v1.ModelReasoningWeek>} value
32435
+ * @return {!proto.gateway.web.v1.ModelReasoning} returns this
32436
+ */
32437
+ proto.gateway.web.v1.ModelReasoning.prototype.setWeeksList = function(value) {
32438
+ return jspb.Message.setRepeatedWrapperField(this, 10, value);
32439
+ };
32440
+
32441
+
32442
+ /**
32443
+ * @param {!proto.gateway.web.v1.ModelReasoningWeek=} opt_value
32444
+ * @param {number=} opt_index
32445
+ * @return {!proto.gateway.web.v1.ModelReasoningWeek}
32446
+ */
32447
+ proto.gateway.web.v1.ModelReasoning.prototype.addWeeks = function(opt_value, opt_index) {
32448
+ return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.gateway.web.v1.ModelReasoningWeek, opt_index);
32449
+ };
32450
+
32451
+
32452
+ /**
32453
+ * Clears the list making it empty but non-null.
32454
+ * @return {!proto.gateway.web.v1.ModelReasoning} returns this
32455
+ */
32456
+ proto.gateway.web.v1.ModelReasoning.prototype.clearWeeksList = function() {
32457
+ return this.setWeeksList([]);
32458
+ };
32459
+
32460
+
32461
+
32462
+
32463
+
32464
+ if (jspb.Message.GENERATE_TO_OBJECT) {
32465
+ /**
32466
+ * Creates an object representation of this proto.
32467
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
32468
+ * Optional fields that are not set will be set to undefined.
32469
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
32470
+ * For the list of reserved names please see:
32471
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
32472
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
32473
+ * JSPB instance for transitional soy proto support:
32474
+ * http://goto/soy-param-migration
32475
+ * @return {!Object}
32476
+ */
32477
+ proto.gateway.web.v1.ModelReasoningWeek.prototype.toObject = function(opt_includeInstance) {
32478
+ return proto.gateway.web.v1.ModelReasoningWeek.toObject(opt_includeInstance, this);
32479
+ };
32480
+
32481
+
32482
+ /**
32483
+ * Static version of the {@see toObject} method.
32484
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
32485
+ * the JSPB instance for transitional soy proto support:
32486
+ * http://goto/soy-param-migration
32487
+ * @param {!proto.gateway.web.v1.ModelReasoningWeek} msg The msg instance to transform.
32488
+ * @return {!Object}
32489
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32490
+ */
32491
+ proto.gateway.web.v1.ModelReasoningWeek.toObject = function(includeInstance, msg) {
32492
+ var f, obj = {
32493
+ weekStart: (f = msg.getWeekStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
32494
+ countedCalls: jspb.Message.getFieldWithDefault(msg, 2, 0),
32495
+ medianPerCall: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
32496
+ medianCiLow: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f,
32497
+ medianCiHigh: (f = jspb.Message.getField(msg, 5)) == null ? undefined : f,
32498
+ baseline: (f = msg.getBaseline()) && proto.gateway.web.v1.ModelReasoningBaseline.toObject(includeInstance, f)
32499
+ };
32500
+
32501
+ if (includeInstance) {
32502
+ obj.$jspbMessageInstance = msg;
32503
+ }
32504
+ return obj;
32505
+ };
32506
+ }
32507
+
32508
+
32509
+ /**
32510
+ * Deserializes binary data (in protobuf wire format).
32511
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
32512
+ * @return {!proto.gateway.web.v1.ModelReasoningWeek}
32513
+ */
32514
+ proto.gateway.web.v1.ModelReasoningWeek.deserializeBinary = function(bytes) {
32515
+ var reader = new jspb.BinaryReader(bytes);
32516
+ var msg = new proto.gateway.web.v1.ModelReasoningWeek;
32517
+ return proto.gateway.web.v1.ModelReasoningWeek.deserializeBinaryFromReader(msg, reader);
32518
+ };
32519
+
32520
+
32521
+ /**
32522
+ * Deserializes binary data (in protobuf wire format) from the
32523
+ * given reader into the given message object.
32524
+ * @param {!proto.gateway.web.v1.ModelReasoningWeek} msg The message object to deserialize into.
32525
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
32526
+ * @return {!proto.gateway.web.v1.ModelReasoningWeek}
32527
+ */
32528
+ proto.gateway.web.v1.ModelReasoningWeek.deserializeBinaryFromReader = function(msg, reader) {
32529
+ while (reader.nextField()) {
32530
+ if (reader.isEndGroup()) {
32531
+ break;
32532
+ }
32533
+ var field = reader.getFieldNumber();
32534
+ switch (field) {
32535
+ case 1:
32536
+ var value = new google_protobuf_timestamp_pb.Timestamp;
32537
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
32538
+ msg.setWeekStart(value);
32539
+ break;
32540
+ case 2:
32541
+ var value = /** @type {number} */ (reader.readUint64());
32542
+ msg.setCountedCalls(value);
32543
+ break;
32544
+ case 3:
32545
+ var value = /** @type {number} */ (reader.readUint64());
32546
+ msg.setMedianPerCall(value);
32547
+ break;
32548
+ case 4:
32549
+ var value = /** @type {number} */ (reader.readUint64());
32550
+ msg.setMedianCiLow(value);
32551
+ break;
32552
+ case 5:
32553
+ var value = /** @type {number} */ (reader.readUint64());
32554
+ msg.setMedianCiHigh(value);
32555
+ break;
32556
+ case 6:
32557
+ var value = new proto.gateway.web.v1.ModelReasoningBaseline;
32558
+ reader.readMessage(value,proto.gateway.web.v1.ModelReasoningBaseline.deserializeBinaryFromReader);
32559
+ msg.setBaseline(value);
32560
+ break;
32561
+ default:
32562
+ reader.skipField();
32563
+ break;
32564
+ }
32565
+ }
32566
+ return msg;
32567
+ };
32568
+
32569
+
32570
+ /**
32571
+ * Serializes the message to binary data (in protobuf wire format).
32572
+ * @return {!Uint8Array}
32573
+ */
32574
+ proto.gateway.web.v1.ModelReasoningWeek.prototype.serializeBinary = function() {
32575
+ var writer = new jspb.BinaryWriter();
32576
+ proto.gateway.web.v1.ModelReasoningWeek.serializeBinaryToWriter(this, writer);
32577
+ return writer.getResultBuffer();
32578
+ };
32579
+
32580
+
32581
+ /**
32582
+ * Serializes the given message to binary data (in protobuf wire
32583
+ * format), writing to the given BinaryWriter.
32584
+ * @param {!proto.gateway.web.v1.ModelReasoningWeek} message
32585
+ * @param {!jspb.BinaryWriter} writer
32586
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32587
+ */
32588
+ proto.gateway.web.v1.ModelReasoningWeek.serializeBinaryToWriter = function(message, writer) {
32589
+ var f = undefined;
32590
+ f = message.getWeekStart();
32591
+ if (f != null) {
32592
+ writer.writeMessage(
32593
+ 1,
32594
+ f,
32595
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
32596
+ );
32597
+ }
32598
+ f = message.getCountedCalls();
32599
+ if (f !== 0) {
32600
+ writer.writeUint64(
32601
+ 2,
32602
+ f
32603
+ );
32604
+ }
32605
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
32606
+ if (f != null) {
32607
+ writer.writeUint64(
32608
+ 3,
32609
+ f
32610
+ );
32611
+ }
32612
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
32613
+ if (f != null) {
32614
+ writer.writeUint64(
32615
+ 4,
32616
+ f
32617
+ );
32618
+ }
32619
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
32620
+ if (f != null) {
32621
+ writer.writeUint64(
32622
+ 5,
32623
+ f
32624
+ );
32625
+ }
32626
+ f = message.getBaseline();
32627
+ if (f != null) {
32628
+ writer.writeMessage(
32629
+ 6,
32630
+ f,
32631
+ proto.gateway.web.v1.ModelReasoningBaseline.serializeBinaryToWriter
32632
+ );
32633
+ }
32634
+ };
32635
+
32636
+
32637
+ /**
32638
+ * optional google.protobuf.Timestamp week_start = 1;
32639
+ * @return {?proto.google.protobuf.Timestamp}
32640
+ */
32641
+ proto.gateway.web.v1.ModelReasoningWeek.prototype.getWeekStart = function() {
32642
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
32643
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
32644
+ };
32645
+
32646
+
32647
+ /**
32648
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
32649
+ * @return {!proto.gateway.web.v1.ModelReasoningWeek} returns this
32650
+ */
32651
+ proto.gateway.web.v1.ModelReasoningWeek.prototype.setWeekStart = function(value) {
32652
+ return jspb.Message.setWrapperField(this, 1, value);
32653
+ };
32654
+
32655
+
32656
+ /**
32657
+ * Clears the message field making it undefined.
32658
+ * @return {!proto.gateway.web.v1.ModelReasoningWeek} returns this
32659
+ */
32660
+ proto.gateway.web.v1.ModelReasoningWeek.prototype.clearWeekStart = function() {
32661
+ return this.setWeekStart(undefined);
32662
+ };
32663
+
32664
+
32665
+ /**
32666
+ * Returns whether this field is set.
32667
+ * @return {boolean}
32668
+ */
32669
+ proto.gateway.web.v1.ModelReasoningWeek.prototype.hasWeekStart = function() {
32670
+ return jspb.Message.getField(this, 1) != null;
32671
+ };
32672
+
32673
+
32674
+ /**
32675
+ * optional uint64 counted_calls = 2;
32676
+ * @return {number}
32677
+ */
32678
+ proto.gateway.web.v1.ModelReasoningWeek.prototype.getCountedCalls = function() {
32679
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
32680
+ };
32681
+
32682
+
32683
+ /**
32684
+ * @param {number} value
32685
+ * @return {!proto.gateway.web.v1.ModelReasoningWeek} returns this
32686
+ */
32687
+ proto.gateway.web.v1.ModelReasoningWeek.prototype.setCountedCalls = function(value) {
32688
+ return jspb.Message.setProto3IntField(this, 2, value);
32689
+ };
32690
+
32691
+
32692
+ /**
32693
+ * optional uint64 median_per_call = 3;
32694
+ * @return {number}
32695
+ */
32696
+ proto.gateway.web.v1.ModelReasoningWeek.prototype.getMedianPerCall = function() {
32697
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
32698
+ };
32699
+
32700
+
32701
+ /**
32702
+ * @param {number} value
32703
+ * @return {!proto.gateway.web.v1.ModelReasoningWeek} returns this
32704
+ */
32705
+ proto.gateway.web.v1.ModelReasoningWeek.prototype.setMedianPerCall = function(value) {
32706
+ return jspb.Message.setField(this, 3, value);
32707
+ };
32708
+
32709
+
32710
+ /**
32711
+ * Clears the field making it undefined.
32712
+ * @return {!proto.gateway.web.v1.ModelReasoningWeek} returns this
32713
+ */
32714
+ proto.gateway.web.v1.ModelReasoningWeek.prototype.clearMedianPerCall = function() {
32715
+ return jspb.Message.setField(this, 3, undefined);
32716
+ };
32717
+
32718
+
32719
+ /**
32720
+ * Returns whether this field is set.
32721
+ * @return {boolean}
32722
+ */
32723
+ proto.gateway.web.v1.ModelReasoningWeek.prototype.hasMedianPerCall = function() {
32724
+ return jspb.Message.getField(this, 3) != null;
32725
+ };
32726
+
32727
+
32728
+ /**
32729
+ * optional uint64 median_ci_low = 4;
32730
+ * @return {number}
32731
+ */
32732
+ proto.gateway.web.v1.ModelReasoningWeek.prototype.getMedianCiLow = function() {
32733
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
32734
+ };
32735
+
32736
+
32737
+ /**
32738
+ * @param {number} value
32739
+ * @return {!proto.gateway.web.v1.ModelReasoningWeek} returns this
32740
+ */
32741
+ proto.gateway.web.v1.ModelReasoningWeek.prototype.setMedianCiLow = function(value) {
32742
+ return jspb.Message.setField(this, 4, value);
32743
+ };
32744
+
32745
+
32746
+ /**
32747
+ * Clears the field making it undefined.
32748
+ * @return {!proto.gateway.web.v1.ModelReasoningWeek} returns this
32749
+ */
32750
+ proto.gateway.web.v1.ModelReasoningWeek.prototype.clearMedianCiLow = function() {
32751
+ return jspb.Message.setField(this, 4, undefined);
32752
+ };
32753
+
32754
+
32755
+ /**
32756
+ * Returns whether this field is set.
32757
+ * @return {boolean}
32758
+ */
32759
+ proto.gateway.web.v1.ModelReasoningWeek.prototype.hasMedianCiLow = function() {
32760
+ return jspb.Message.getField(this, 4) != null;
32761
+ };
32762
+
32763
+
32764
+ /**
32765
+ * optional uint64 median_ci_high = 5;
32766
+ * @return {number}
32767
+ */
32768
+ proto.gateway.web.v1.ModelReasoningWeek.prototype.getMedianCiHigh = function() {
32769
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
32770
+ };
32771
+
32772
+
32773
+ /**
32774
+ * @param {number} value
32775
+ * @return {!proto.gateway.web.v1.ModelReasoningWeek} returns this
32776
+ */
32777
+ proto.gateway.web.v1.ModelReasoningWeek.prototype.setMedianCiHigh = function(value) {
32778
+ return jspb.Message.setField(this, 5, value);
32779
+ };
32780
+
32781
+
32782
+ /**
32783
+ * Clears the field making it undefined.
32784
+ * @return {!proto.gateway.web.v1.ModelReasoningWeek} returns this
32785
+ */
32786
+ proto.gateway.web.v1.ModelReasoningWeek.prototype.clearMedianCiHigh = function() {
32787
+ return jspb.Message.setField(this, 5, undefined);
32788
+ };
32789
+
32790
+
32791
+ /**
32792
+ * Returns whether this field is set.
32793
+ * @return {boolean}
32794
+ */
32795
+ proto.gateway.web.v1.ModelReasoningWeek.prototype.hasMedianCiHigh = function() {
32796
+ return jspb.Message.getField(this, 5) != null;
32797
+ };
32798
+
32799
+
32800
+ /**
32801
+ * optional ModelReasoningBaseline baseline = 6;
32802
+ * @return {?proto.gateway.web.v1.ModelReasoningBaseline}
32803
+ */
32804
+ proto.gateway.web.v1.ModelReasoningWeek.prototype.getBaseline = function() {
32805
+ return /** @type{?proto.gateway.web.v1.ModelReasoningBaseline} */ (
32806
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.ModelReasoningBaseline, 6));
32807
+ };
32808
+
32809
+
32810
+ /**
32811
+ * @param {?proto.gateway.web.v1.ModelReasoningBaseline|undefined} value
32812
+ * @return {!proto.gateway.web.v1.ModelReasoningWeek} returns this
32813
+ */
32814
+ proto.gateway.web.v1.ModelReasoningWeek.prototype.setBaseline = function(value) {
32815
+ return jspb.Message.setWrapperField(this, 6, value);
32816
+ };
32817
+
32818
+
32819
+ /**
32820
+ * Clears the message field making it undefined.
32821
+ * @return {!proto.gateway.web.v1.ModelReasoningWeek} returns this
32822
+ */
32823
+ proto.gateway.web.v1.ModelReasoningWeek.prototype.clearBaseline = function() {
32824
+ return this.setBaseline(undefined);
32825
+ };
32826
+
32827
+
32828
+ /**
32829
+ * Returns whether this field is set.
32830
+ * @return {boolean}
32831
+ */
32832
+ proto.gateway.web.v1.ModelReasoningWeek.prototype.hasBaseline = function() {
32833
+ return jspb.Message.getField(this, 6) != null;
32834
+ };
32835
+
32836
+
32837
+
32838
+
32839
+
32840
+ if (jspb.Message.GENERATE_TO_OBJECT) {
32841
+ /**
32842
+ * Creates an object representation of this proto.
32843
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
32844
+ * Optional fields that are not set will be set to undefined.
32845
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
32846
+ * For the list of reserved names please see:
32847
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
32848
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
32849
+ * JSPB instance for transitional soy proto support:
32850
+ * http://goto/soy-param-migration
32851
+ * @return {!Object}
32852
+ */
32853
+ proto.gateway.web.v1.ModelReasoningBaseline.prototype.toObject = function(opt_includeInstance) {
32854
+ return proto.gateway.web.v1.ModelReasoningBaseline.toObject(opt_includeInstance, this);
32855
+ };
32856
+
32857
+
32858
+ /**
32859
+ * Static version of the {@see toObject} method.
32860
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
32861
+ * the JSPB instance for transitional soy proto support:
32862
+ * http://goto/soy-param-migration
32863
+ * @param {!proto.gateway.web.v1.ModelReasoningBaseline} msg The msg instance to transform.
32864
+ * @return {!Object}
32865
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32866
+ */
32867
+ proto.gateway.web.v1.ModelReasoningBaseline.toObject = function(includeInstance, msg) {
32868
+ var f, obj = {
32869
+ countedCalls: jspb.Message.getFieldWithDefault(msg, 1, 0),
32870
+ median: (f = jspb.Message.getField(msg, 2)) == null ? undefined : f,
32871
+ ciLow: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
32872
+ ciHigh: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f
32873
+ };
32874
+
32875
+ if (includeInstance) {
32876
+ obj.$jspbMessageInstance = msg;
32877
+ }
32878
+ return obj;
32879
+ };
32880
+ }
32881
+
32882
+
32883
+ /**
32884
+ * Deserializes binary data (in protobuf wire format).
32885
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
32886
+ * @return {!proto.gateway.web.v1.ModelReasoningBaseline}
32887
+ */
32888
+ proto.gateway.web.v1.ModelReasoningBaseline.deserializeBinary = function(bytes) {
32889
+ var reader = new jspb.BinaryReader(bytes);
32890
+ var msg = new proto.gateway.web.v1.ModelReasoningBaseline;
32891
+ return proto.gateway.web.v1.ModelReasoningBaseline.deserializeBinaryFromReader(msg, reader);
32892
+ };
32893
+
32894
+
32895
+ /**
32896
+ * Deserializes binary data (in protobuf wire format) from the
32897
+ * given reader into the given message object.
32898
+ * @param {!proto.gateway.web.v1.ModelReasoningBaseline} msg The message object to deserialize into.
32899
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
32900
+ * @return {!proto.gateway.web.v1.ModelReasoningBaseline}
32901
+ */
32902
+ proto.gateway.web.v1.ModelReasoningBaseline.deserializeBinaryFromReader = function(msg, reader) {
32903
+ while (reader.nextField()) {
32904
+ if (reader.isEndGroup()) {
32905
+ break;
32906
+ }
32907
+ var field = reader.getFieldNumber();
32908
+ switch (field) {
32909
+ case 1:
32910
+ var value = /** @type {number} */ (reader.readUint64());
32911
+ msg.setCountedCalls(value);
32912
+ break;
32913
+ case 2:
32914
+ var value = /** @type {number} */ (reader.readUint64());
32915
+ msg.setMedian(value);
32916
+ break;
32917
+ case 3:
32918
+ var value = /** @type {number} */ (reader.readUint64());
32919
+ msg.setCiLow(value);
32920
+ break;
32921
+ case 4:
32922
+ var value = /** @type {number} */ (reader.readUint64());
32923
+ msg.setCiHigh(value);
32924
+ break;
32925
+ default:
32926
+ reader.skipField();
32927
+ break;
32928
+ }
32929
+ }
32930
+ return msg;
32931
+ };
32932
+
32933
+
32934
+ /**
32935
+ * Serializes the message to binary data (in protobuf wire format).
32936
+ * @return {!Uint8Array}
32937
+ */
32938
+ proto.gateway.web.v1.ModelReasoningBaseline.prototype.serializeBinary = function() {
32939
+ var writer = new jspb.BinaryWriter();
32940
+ proto.gateway.web.v1.ModelReasoningBaseline.serializeBinaryToWriter(this, writer);
32941
+ return writer.getResultBuffer();
32942
+ };
32943
+
32944
+
32945
+ /**
32946
+ * Serializes the given message to binary data (in protobuf wire
32947
+ * format), writing to the given BinaryWriter.
32948
+ * @param {!proto.gateway.web.v1.ModelReasoningBaseline} message
32949
+ * @param {!jspb.BinaryWriter} writer
32950
+ * @suppress {unusedLocalVariables} f is only used for nested messages
32951
+ */
32952
+ proto.gateway.web.v1.ModelReasoningBaseline.serializeBinaryToWriter = function(message, writer) {
32953
+ var f = undefined;
32954
+ f = message.getCountedCalls();
32955
+ if (f !== 0) {
32956
+ writer.writeUint64(
32957
+ 1,
32958
+ f
32959
+ );
32960
+ }
32961
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
32962
+ if (f != null) {
32963
+ writer.writeUint64(
32964
+ 2,
32965
+ f
32966
+ );
32967
+ }
32968
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
32969
+ if (f != null) {
32970
+ writer.writeUint64(
32971
+ 3,
32972
+ f
32973
+ );
32974
+ }
32975
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
32976
+ if (f != null) {
32977
+ writer.writeUint64(
32978
+ 4,
32979
+ f
32980
+ );
32981
+ }
32982
+ };
32983
+
32984
+
32985
+ /**
32986
+ * optional uint64 counted_calls = 1;
32987
+ * @return {number}
32988
+ */
32989
+ proto.gateway.web.v1.ModelReasoningBaseline.prototype.getCountedCalls = function() {
32990
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
32991
+ };
32992
+
32993
+
32994
+ /**
32995
+ * @param {number} value
32996
+ * @return {!proto.gateway.web.v1.ModelReasoningBaseline} returns this
32997
+ */
32998
+ proto.gateway.web.v1.ModelReasoningBaseline.prototype.setCountedCalls = function(value) {
32999
+ return jspb.Message.setProto3IntField(this, 1, value);
33000
+ };
33001
+
33002
+
33003
+ /**
33004
+ * optional uint64 median = 2;
33005
+ * @return {number}
33006
+ */
33007
+ proto.gateway.web.v1.ModelReasoningBaseline.prototype.getMedian = function() {
33008
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
33009
+ };
33010
+
33011
+
33012
+ /**
33013
+ * @param {number} value
33014
+ * @return {!proto.gateway.web.v1.ModelReasoningBaseline} returns this
33015
+ */
33016
+ proto.gateway.web.v1.ModelReasoningBaseline.prototype.setMedian = function(value) {
33017
+ return jspb.Message.setField(this, 2, value);
33018
+ };
33019
+
33020
+
33021
+ /**
33022
+ * Clears the field making it undefined.
33023
+ * @return {!proto.gateway.web.v1.ModelReasoningBaseline} returns this
33024
+ */
33025
+ proto.gateway.web.v1.ModelReasoningBaseline.prototype.clearMedian = function() {
33026
+ return jspb.Message.setField(this, 2, undefined);
33027
+ };
33028
+
33029
+
33030
+ /**
33031
+ * Returns whether this field is set.
33032
+ * @return {boolean}
33033
+ */
33034
+ proto.gateway.web.v1.ModelReasoningBaseline.prototype.hasMedian = function() {
33035
+ return jspb.Message.getField(this, 2) != null;
33036
+ };
33037
+
33038
+
33039
+ /**
33040
+ * optional uint64 ci_low = 3;
33041
+ * @return {number}
33042
+ */
33043
+ proto.gateway.web.v1.ModelReasoningBaseline.prototype.getCiLow = function() {
33044
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
33045
+ };
33046
+
33047
+
33048
+ /**
33049
+ * @param {number} value
33050
+ * @return {!proto.gateway.web.v1.ModelReasoningBaseline} returns this
33051
+ */
33052
+ proto.gateway.web.v1.ModelReasoningBaseline.prototype.setCiLow = function(value) {
33053
+ return jspb.Message.setField(this, 3, value);
33054
+ };
33055
+
33056
+
33057
+ /**
33058
+ * Clears the field making it undefined.
33059
+ * @return {!proto.gateway.web.v1.ModelReasoningBaseline} returns this
33060
+ */
33061
+ proto.gateway.web.v1.ModelReasoningBaseline.prototype.clearCiLow = function() {
33062
+ return jspb.Message.setField(this, 3, undefined);
33063
+ };
33064
+
33065
+
33066
+ /**
33067
+ * Returns whether this field is set.
33068
+ * @return {boolean}
33069
+ */
33070
+ proto.gateway.web.v1.ModelReasoningBaseline.prototype.hasCiLow = function() {
33071
+ return jspb.Message.getField(this, 3) != null;
33072
+ };
33073
+
33074
+
33075
+ /**
33076
+ * optional uint64 ci_high = 4;
33077
+ * @return {number}
33078
+ */
33079
+ proto.gateway.web.v1.ModelReasoningBaseline.prototype.getCiHigh = function() {
33080
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
33081
+ };
33082
+
33083
+
33084
+ /**
33085
+ * @param {number} value
33086
+ * @return {!proto.gateway.web.v1.ModelReasoningBaseline} returns this
33087
+ */
33088
+ proto.gateway.web.v1.ModelReasoningBaseline.prototype.setCiHigh = function(value) {
33089
+ return jspb.Message.setField(this, 4, value);
33090
+ };
33091
+
33092
+
33093
+ /**
33094
+ * Clears the field making it undefined.
33095
+ * @return {!proto.gateway.web.v1.ModelReasoningBaseline} returns this
33096
+ */
33097
+ proto.gateway.web.v1.ModelReasoningBaseline.prototype.clearCiHigh = function() {
33098
+ return jspb.Message.setField(this, 4, undefined);
33099
+ };
33100
+
33101
+
33102
+ /**
33103
+ * Returns whether this field is set.
33104
+ * @return {boolean}
33105
+ */
33106
+ proto.gateway.web.v1.ModelReasoningBaseline.prototype.hasCiHigh = function() {
33107
+ return jspb.Message.getField(this, 4) != null;
33108
+ };
33109
+
33110
+
33111
+
33112
+ /**
33113
+ * List of repeated fields within this message type.
33114
+ * @private {!Array<number>}
33115
+ * @const
33116
+ */
33117
+ proto.gateway.web.v1.ReasoningCoverage.repeatedFields_ = [3];
33118
+
33119
+
33120
+
33121
+ if (jspb.Message.GENERATE_TO_OBJECT) {
33122
+ /**
33123
+ * Creates an object representation of this proto.
33124
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
33125
+ * Optional fields that are not set will be set to undefined.
33126
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
33127
+ * For the list of reserved names please see:
33128
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
33129
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
33130
+ * JSPB instance for transitional soy proto support:
33131
+ * http://goto/soy-param-migration
33132
+ * @return {!Object}
33133
+ */
33134
+ proto.gateway.web.v1.ReasoningCoverage.prototype.toObject = function(opt_includeInstance) {
33135
+ return proto.gateway.web.v1.ReasoningCoverage.toObject(opt_includeInstance, this);
33136
+ };
33137
+
33138
+
33139
+ /**
33140
+ * Static version of the {@see toObject} method.
33141
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
33142
+ * the JSPB instance for transitional soy proto support:
33143
+ * http://goto/soy-param-migration
33144
+ * @param {!proto.gateway.web.v1.ReasoningCoverage} msg The msg instance to transform.
33145
+ * @return {!Object}
33146
+ * @suppress {unusedLocalVariables} f is only used for nested messages
33147
+ */
33148
+ proto.gateway.web.v1.ReasoningCoverage.toObject = function(includeInstance, msg) {
33149
+ var f, obj = {
33150
+ calls: jspb.Message.getFieldWithDefault(msg, 1, 0),
33151
+ countedCalls: jspb.Message.getFieldWithDefault(msg, 2, 0),
33152
+ sourceSystemsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
33153
+ };
33154
+
33155
+ if (includeInstance) {
33156
+ obj.$jspbMessageInstance = msg;
33157
+ }
33158
+ return obj;
33159
+ };
33160
+ }
33161
+
33162
+
33163
+ /**
33164
+ * Deserializes binary data (in protobuf wire format).
33165
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
33166
+ * @return {!proto.gateway.web.v1.ReasoningCoverage}
33167
+ */
33168
+ proto.gateway.web.v1.ReasoningCoverage.deserializeBinary = function(bytes) {
33169
+ var reader = new jspb.BinaryReader(bytes);
33170
+ var msg = new proto.gateway.web.v1.ReasoningCoverage;
33171
+ return proto.gateway.web.v1.ReasoningCoverage.deserializeBinaryFromReader(msg, reader);
33172
+ };
33173
+
33174
+
33175
+ /**
33176
+ * Deserializes binary data (in protobuf wire format) from the
33177
+ * given reader into the given message object.
33178
+ * @param {!proto.gateway.web.v1.ReasoningCoverage} msg The message object to deserialize into.
33179
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
33180
+ * @return {!proto.gateway.web.v1.ReasoningCoverage}
33181
+ */
33182
+ proto.gateway.web.v1.ReasoningCoverage.deserializeBinaryFromReader = function(msg, reader) {
33183
+ while (reader.nextField()) {
33184
+ if (reader.isEndGroup()) {
33185
+ break;
33186
+ }
33187
+ var field = reader.getFieldNumber();
33188
+ switch (field) {
33189
+ case 1:
33190
+ var value = /** @type {number} */ (reader.readUint64());
33191
+ msg.setCalls(value);
33192
+ break;
33193
+ case 2:
33194
+ var value = /** @type {number} */ (reader.readUint64());
33195
+ msg.setCountedCalls(value);
33196
+ break;
33197
+ case 3:
33198
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
33199
+ msg.addSourceSystems(value);
33200
+ break;
33201
+ default:
33202
+ reader.skipField();
33203
+ break;
33204
+ }
33205
+ }
33206
+ return msg;
33207
+ };
33208
+
33209
+
33210
+ /**
33211
+ * Serializes the message to binary data (in protobuf wire format).
33212
+ * @return {!Uint8Array}
33213
+ */
33214
+ proto.gateway.web.v1.ReasoningCoverage.prototype.serializeBinary = function() {
33215
+ var writer = new jspb.BinaryWriter();
33216
+ proto.gateway.web.v1.ReasoningCoverage.serializeBinaryToWriter(this, writer);
33217
+ return writer.getResultBuffer();
33218
+ };
33219
+
33220
+
33221
+ /**
33222
+ * Serializes the given message to binary data (in protobuf wire
33223
+ * format), writing to the given BinaryWriter.
33224
+ * @param {!proto.gateway.web.v1.ReasoningCoverage} message
33225
+ * @param {!jspb.BinaryWriter} writer
33226
+ * @suppress {unusedLocalVariables} f is only used for nested messages
33227
+ */
33228
+ proto.gateway.web.v1.ReasoningCoverage.serializeBinaryToWriter = function(message, writer) {
33229
+ var f = undefined;
33230
+ f = message.getCalls();
33231
+ if (f !== 0) {
33232
+ writer.writeUint64(
33233
+ 1,
33234
+ f
33235
+ );
33236
+ }
33237
+ f = message.getCountedCalls();
33238
+ if (f !== 0) {
33239
+ writer.writeUint64(
33240
+ 2,
33241
+ f
33242
+ );
33243
+ }
33244
+ f = message.getSourceSystemsList();
33245
+ if (f.length > 0) {
33246
+ writer.writeRepeatedString(
33247
+ 3,
33248
+ f
33249
+ );
33250
+ }
33251
+ };
33252
+
33253
+
33254
+ /**
33255
+ * optional uint64 calls = 1;
33256
+ * @return {number}
33257
+ */
33258
+ proto.gateway.web.v1.ReasoningCoverage.prototype.getCalls = function() {
33259
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
33260
+ };
33261
+
33262
+
33263
+ /**
33264
+ * @param {number} value
33265
+ * @return {!proto.gateway.web.v1.ReasoningCoverage} returns this
33266
+ */
33267
+ proto.gateway.web.v1.ReasoningCoverage.prototype.setCalls = function(value) {
33268
+ return jspb.Message.setProto3IntField(this, 1, value);
33269
+ };
33270
+
33271
+
33272
+ /**
33273
+ * optional uint64 counted_calls = 2;
33274
+ * @return {number}
33275
+ */
33276
+ proto.gateway.web.v1.ReasoningCoverage.prototype.getCountedCalls = function() {
33277
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
33278
+ };
33279
+
33280
+
33281
+ /**
33282
+ * @param {number} value
33283
+ * @return {!proto.gateway.web.v1.ReasoningCoverage} returns this
33284
+ */
33285
+ proto.gateway.web.v1.ReasoningCoverage.prototype.setCountedCalls = function(value) {
33286
+ return jspb.Message.setProto3IntField(this, 2, value);
33287
+ };
33288
+
33289
+
33290
+ /**
33291
+ * repeated string source_systems = 3;
33292
+ * @return {!Array<string>}
33293
+ */
33294
+ proto.gateway.web.v1.ReasoningCoverage.prototype.getSourceSystemsList = function() {
33295
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
33296
+ };
33297
+
33298
+
33299
+ /**
33300
+ * @param {!Array<string>} value
33301
+ * @return {!proto.gateway.web.v1.ReasoningCoverage} returns this
33302
+ */
33303
+ proto.gateway.web.v1.ReasoningCoverage.prototype.setSourceSystemsList = function(value) {
33304
+ return jspb.Message.setField(this, 3, value || []);
33305
+ };
33306
+
33307
+
33308
+ /**
33309
+ * @param {string} value
33310
+ * @param {number=} opt_index
33311
+ * @return {!proto.gateway.web.v1.ReasoningCoverage} returns this
33312
+ */
33313
+ proto.gateway.web.v1.ReasoningCoverage.prototype.addSourceSystems = function(value, opt_index) {
33314
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
33315
+ };
33316
+
33317
+
33318
+ /**
33319
+ * Clears the list making it empty but non-null.
33320
+ * @return {!proto.gateway.web.v1.ReasoningCoverage} returns this
33321
+ */
33322
+ proto.gateway.web.v1.ReasoningCoverage.prototype.clearSourceSystemsList = function() {
33323
+ return this.setSourceSystemsList([]);
33324
+ };
33325
+
33326
+
33327
+
33328
+ /**
33329
+ * List of repeated fields within this message type.
33330
+ * @private {!Array<number>}
33331
+ * @const
33332
+ */
33333
+ proto.gateway.web.v1.ReasoningServedModels.repeatedFields_ = [3,4];
33334
+
33335
+
33336
+
33337
+ if (jspb.Message.GENERATE_TO_OBJECT) {
33338
+ /**
33339
+ * Creates an object representation of this proto.
33340
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
33341
+ * Optional fields that are not set will be set to undefined.
33342
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
33343
+ * For the list of reserved names please see:
33344
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
33345
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
33346
+ * JSPB instance for transitional soy proto support:
33347
+ * http://goto/soy-param-migration
33348
+ * @return {!Object}
33349
+ */
33350
+ proto.gateway.web.v1.ReasoningServedModels.prototype.toObject = function(opt_includeInstance) {
33351
+ return proto.gateway.web.v1.ReasoningServedModels.toObject(opt_includeInstance, this);
33352
+ };
33353
+
33354
+
33355
+ /**
33356
+ * Static version of the {@see toObject} method.
33357
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
33358
+ * the JSPB instance for transitional soy proto support:
33359
+ * http://goto/soy-param-migration
33360
+ * @param {!proto.gateway.web.v1.ReasoningServedModels} msg The msg instance to transform.
33361
+ * @return {!Object}
33362
+ * @suppress {unusedLocalVariables} f is only used for nested messages
33363
+ */
33364
+ proto.gateway.web.v1.ReasoningServedModels.toObject = function(includeInstance, msg) {
33365
+ var f, obj = {
33366
+ servedCalls: jspb.Message.getFieldWithDefault(msg, 1, 0),
33367
+ modelMismatchCalls: jspb.Message.getFieldWithDefault(msg, 2, 0),
33368
+ serviceTiersList: jspb.Message.toObjectList(msg.getServiceTiersList(),
33369
+ proto.gateway.web.v1.LabelCount.toObject, includeInstance),
33370
+ inferenceGeosList: jspb.Message.toObjectList(msg.getInferenceGeosList(),
33371
+ proto.gateway.web.v1.LabelCount.toObject, includeInstance)
33372
+ };
33373
+
33374
+ if (includeInstance) {
33375
+ obj.$jspbMessageInstance = msg;
33376
+ }
33377
+ return obj;
33378
+ };
33379
+ }
33380
+
33381
+
33382
+ /**
33383
+ * Deserializes binary data (in protobuf wire format).
33384
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
33385
+ * @return {!proto.gateway.web.v1.ReasoningServedModels}
33386
+ */
33387
+ proto.gateway.web.v1.ReasoningServedModels.deserializeBinary = function(bytes) {
33388
+ var reader = new jspb.BinaryReader(bytes);
33389
+ var msg = new proto.gateway.web.v1.ReasoningServedModels;
33390
+ return proto.gateway.web.v1.ReasoningServedModels.deserializeBinaryFromReader(msg, reader);
33391
+ };
33392
+
33393
+
33394
+ /**
33395
+ * Deserializes binary data (in protobuf wire format) from the
33396
+ * given reader into the given message object.
33397
+ * @param {!proto.gateway.web.v1.ReasoningServedModels} msg The message object to deserialize into.
33398
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
33399
+ * @return {!proto.gateway.web.v1.ReasoningServedModels}
33400
+ */
33401
+ proto.gateway.web.v1.ReasoningServedModels.deserializeBinaryFromReader = function(msg, reader) {
33402
+ while (reader.nextField()) {
33403
+ if (reader.isEndGroup()) {
33404
+ break;
33405
+ }
33406
+ var field = reader.getFieldNumber();
33407
+ switch (field) {
33408
+ case 1:
33409
+ var value = /** @type {number} */ (reader.readUint64());
33410
+ msg.setServedCalls(value);
33411
+ break;
33412
+ case 2:
33413
+ var value = /** @type {number} */ (reader.readUint64());
33414
+ msg.setModelMismatchCalls(value);
33415
+ break;
33416
+ case 3:
33417
+ var value = new proto.gateway.web.v1.LabelCount;
33418
+ reader.readMessage(value,proto.gateway.web.v1.LabelCount.deserializeBinaryFromReader);
33419
+ msg.addServiceTiers(value);
33420
+ break;
33421
+ case 4:
33422
+ var value = new proto.gateway.web.v1.LabelCount;
33423
+ reader.readMessage(value,proto.gateway.web.v1.LabelCount.deserializeBinaryFromReader);
33424
+ msg.addInferenceGeos(value);
33425
+ break;
33426
+ default:
33427
+ reader.skipField();
33428
+ break;
33429
+ }
33430
+ }
33431
+ return msg;
33432
+ };
33433
+
33434
+
33435
+ /**
33436
+ * Serializes the message to binary data (in protobuf wire format).
33437
+ * @return {!Uint8Array}
33438
+ */
33439
+ proto.gateway.web.v1.ReasoningServedModels.prototype.serializeBinary = function() {
33440
+ var writer = new jspb.BinaryWriter();
33441
+ proto.gateway.web.v1.ReasoningServedModels.serializeBinaryToWriter(this, writer);
33442
+ return writer.getResultBuffer();
33443
+ };
33444
+
33445
+
33446
+ /**
33447
+ * Serializes the given message to binary data (in protobuf wire
33448
+ * format), writing to the given BinaryWriter.
33449
+ * @param {!proto.gateway.web.v1.ReasoningServedModels} message
33450
+ * @param {!jspb.BinaryWriter} writer
33451
+ * @suppress {unusedLocalVariables} f is only used for nested messages
33452
+ */
33453
+ proto.gateway.web.v1.ReasoningServedModels.serializeBinaryToWriter = function(message, writer) {
33454
+ var f = undefined;
33455
+ f = message.getServedCalls();
33456
+ if (f !== 0) {
33457
+ writer.writeUint64(
33458
+ 1,
33459
+ f
33460
+ );
33461
+ }
33462
+ f = message.getModelMismatchCalls();
33463
+ if (f !== 0) {
33464
+ writer.writeUint64(
33465
+ 2,
33466
+ f
33467
+ );
33468
+ }
33469
+ f = message.getServiceTiersList();
33470
+ if (f.length > 0) {
33471
+ writer.writeRepeatedMessage(
33472
+ 3,
33473
+ f,
33474
+ proto.gateway.web.v1.LabelCount.serializeBinaryToWriter
33475
+ );
33476
+ }
33477
+ f = message.getInferenceGeosList();
33478
+ if (f.length > 0) {
33479
+ writer.writeRepeatedMessage(
33480
+ 4,
33481
+ f,
33482
+ proto.gateway.web.v1.LabelCount.serializeBinaryToWriter
33483
+ );
33484
+ }
33485
+ };
33486
+
33487
+
33488
+ /**
33489
+ * optional uint64 served_calls = 1;
33490
+ * @return {number}
33491
+ */
33492
+ proto.gateway.web.v1.ReasoningServedModels.prototype.getServedCalls = function() {
33493
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
33494
+ };
33495
+
33496
+
33497
+ /**
33498
+ * @param {number} value
33499
+ * @return {!proto.gateway.web.v1.ReasoningServedModels} returns this
33500
+ */
33501
+ proto.gateway.web.v1.ReasoningServedModels.prototype.setServedCalls = function(value) {
33502
+ return jspb.Message.setProto3IntField(this, 1, value);
33503
+ };
33504
+
33505
+
33506
+ /**
33507
+ * optional uint64 model_mismatch_calls = 2;
33508
+ * @return {number}
33509
+ */
33510
+ proto.gateway.web.v1.ReasoningServedModels.prototype.getModelMismatchCalls = function() {
33511
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
33512
+ };
33513
+
33514
+
33515
+ /**
33516
+ * @param {number} value
33517
+ * @return {!proto.gateway.web.v1.ReasoningServedModels} returns this
33518
+ */
33519
+ proto.gateway.web.v1.ReasoningServedModels.prototype.setModelMismatchCalls = function(value) {
33520
+ return jspb.Message.setProto3IntField(this, 2, value);
33521
+ };
33522
+
33523
+
33524
+ /**
33525
+ * repeated LabelCount service_tiers = 3;
33526
+ * @return {!Array<!proto.gateway.web.v1.LabelCount>}
33527
+ */
33528
+ proto.gateway.web.v1.ReasoningServedModels.prototype.getServiceTiersList = function() {
33529
+ return /** @type{!Array<!proto.gateway.web.v1.LabelCount>} */ (
33530
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.LabelCount, 3));
33531
+ };
33532
+
33533
+
33534
+ /**
33535
+ * @param {!Array<!proto.gateway.web.v1.LabelCount>} value
33536
+ * @return {!proto.gateway.web.v1.ReasoningServedModels} returns this
33537
+ */
33538
+ proto.gateway.web.v1.ReasoningServedModels.prototype.setServiceTiersList = function(value) {
33539
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
33540
+ };
33541
+
33542
+
33543
+ /**
33544
+ * @param {!proto.gateway.web.v1.LabelCount=} opt_value
33545
+ * @param {number=} opt_index
33546
+ * @return {!proto.gateway.web.v1.LabelCount}
33547
+ */
33548
+ proto.gateway.web.v1.ReasoningServedModels.prototype.addServiceTiers = function(opt_value, opt_index) {
33549
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gateway.web.v1.LabelCount, opt_index);
33550
+ };
33551
+
33552
+
33553
+ /**
33554
+ * Clears the list making it empty but non-null.
33555
+ * @return {!proto.gateway.web.v1.ReasoningServedModels} returns this
33556
+ */
33557
+ proto.gateway.web.v1.ReasoningServedModels.prototype.clearServiceTiersList = function() {
33558
+ return this.setServiceTiersList([]);
33559
+ };
33560
+
33561
+
33562
+ /**
33563
+ * repeated LabelCount inference_geos = 4;
33564
+ * @return {!Array<!proto.gateway.web.v1.LabelCount>}
33565
+ */
33566
+ proto.gateway.web.v1.ReasoningServedModels.prototype.getInferenceGeosList = function() {
33567
+ return /** @type{!Array<!proto.gateway.web.v1.LabelCount>} */ (
33568
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.LabelCount, 4));
33569
+ };
33570
+
33571
+
33572
+ /**
33573
+ * @param {!Array<!proto.gateway.web.v1.LabelCount>} value
33574
+ * @return {!proto.gateway.web.v1.ReasoningServedModels} returns this
33575
+ */
33576
+ proto.gateway.web.v1.ReasoningServedModels.prototype.setInferenceGeosList = function(value) {
33577
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
33578
+ };
33579
+
33580
+
33581
+ /**
33582
+ * @param {!proto.gateway.web.v1.LabelCount=} opt_value
33583
+ * @param {number=} opt_index
33584
+ * @return {!proto.gateway.web.v1.LabelCount}
33585
+ */
33586
+ proto.gateway.web.v1.ReasoningServedModels.prototype.addInferenceGeos = function(opt_value, opt_index) {
33587
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.gateway.web.v1.LabelCount, opt_index);
33588
+ };
33589
+
33590
+
33591
+ /**
33592
+ * Clears the list making it empty but non-null.
33593
+ * @return {!proto.gateway.web.v1.ReasoningServedModels} returns this
33594
+ */
33595
+ proto.gateway.web.v1.ReasoningServedModels.prototype.clearInferenceGeosList = function() {
33596
+ return this.setInferenceGeosList([]);
33597
+ };
33598
+
33599
+
33600
+
33601
+
33602
+
33603
+ if (jspb.Message.GENERATE_TO_OBJECT) {
33604
+ /**
33605
+ * Creates an object representation of this proto.
33606
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
33607
+ * Optional fields that are not set will be set to undefined.
33608
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
33609
+ * For the list of reserved names please see:
33610
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
33611
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
33612
+ * JSPB instance for transitional soy proto support:
33613
+ * http://goto/soy-param-migration
33614
+ * @return {!Object}
33615
+ */
33616
+ proto.gateway.web.v1.LabelCount.prototype.toObject = function(opt_includeInstance) {
33617
+ return proto.gateway.web.v1.LabelCount.toObject(opt_includeInstance, this);
33618
+ };
33619
+
33620
+
33621
+ /**
33622
+ * Static version of the {@see toObject} method.
33623
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
33624
+ * the JSPB instance for transitional soy proto support:
33625
+ * http://goto/soy-param-migration
33626
+ * @param {!proto.gateway.web.v1.LabelCount} msg The msg instance to transform.
33627
+ * @return {!Object}
33628
+ * @suppress {unusedLocalVariables} f is only used for nested messages
33629
+ */
33630
+ proto.gateway.web.v1.LabelCount.toObject = function(includeInstance, msg) {
33631
+ var f, obj = {
33632
+ label: jspb.Message.getFieldWithDefault(msg, 1, ""),
33633
+ calls: jspb.Message.getFieldWithDefault(msg, 2, 0)
33634
+ };
33635
+
33636
+ if (includeInstance) {
33637
+ obj.$jspbMessageInstance = msg;
33638
+ }
33639
+ return obj;
33640
+ };
33641
+ }
33642
+
33643
+
33644
+ /**
33645
+ * Deserializes binary data (in protobuf wire format).
33646
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
33647
+ * @return {!proto.gateway.web.v1.LabelCount}
33648
+ */
33649
+ proto.gateway.web.v1.LabelCount.deserializeBinary = function(bytes) {
33650
+ var reader = new jspb.BinaryReader(bytes);
33651
+ var msg = new proto.gateway.web.v1.LabelCount;
33652
+ return proto.gateway.web.v1.LabelCount.deserializeBinaryFromReader(msg, reader);
33653
+ };
33654
+
33655
+
33656
+ /**
33657
+ * Deserializes binary data (in protobuf wire format) from the
33658
+ * given reader into the given message object.
33659
+ * @param {!proto.gateway.web.v1.LabelCount} msg The message object to deserialize into.
33660
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
33661
+ * @return {!proto.gateway.web.v1.LabelCount}
33662
+ */
33663
+ proto.gateway.web.v1.LabelCount.deserializeBinaryFromReader = function(msg, reader) {
33664
+ while (reader.nextField()) {
33665
+ if (reader.isEndGroup()) {
33666
+ break;
33667
+ }
33668
+ var field = reader.getFieldNumber();
33669
+ switch (field) {
33670
+ case 1:
33671
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
33672
+ msg.setLabel(value);
33673
+ break;
33674
+ case 2:
33675
+ var value = /** @type {number} */ (reader.readUint64());
33676
+ msg.setCalls(value);
33677
+ break;
33678
+ default:
33679
+ reader.skipField();
33680
+ break;
33681
+ }
33682
+ }
33683
+ return msg;
33684
+ };
33685
+
33686
+
33687
+ /**
33688
+ * Serializes the message to binary data (in protobuf wire format).
33689
+ * @return {!Uint8Array}
33690
+ */
33691
+ proto.gateway.web.v1.LabelCount.prototype.serializeBinary = function() {
33692
+ var writer = new jspb.BinaryWriter();
33693
+ proto.gateway.web.v1.LabelCount.serializeBinaryToWriter(this, writer);
33694
+ return writer.getResultBuffer();
33695
+ };
33696
+
33697
+
33698
+ /**
33699
+ * Serializes the given message to binary data (in protobuf wire
33700
+ * format), writing to the given BinaryWriter.
33701
+ * @param {!proto.gateway.web.v1.LabelCount} message
33702
+ * @param {!jspb.BinaryWriter} writer
33703
+ * @suppress {unusedLocalVariables} f is only used for nested messages
33704
+ */
33705
+ proto.gateway.web.v1.LabelCount.serializeBinaryToWriter = function(message, writer) {
33706
+ var f = undefined;
33707
+ f = message.getLabel();
33708
+ if (f.length > 0) {
33709
+ writer.writeString(
33710
+ 1,
33711
+ f
33712
+ );
33713
+ }
33714
+ f = message.getCalls();
33715
+ if (f !== 0) {
33716
+ writer.writeUint64(
33717
+ 2,
33718
+ f
33719
+ );
33720
+ }
33721
+ };
33722
+
33723
+
33724
+ /**
33725
+ * optional string label = 1;
33726
+ * @return {string}
33727
+ */
33728
+ proto.gateway.web.v1.LabelCount.prototype.getLabel = function() {
33729
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
33730
+ };
33731
+
33732
+
33733
+ /**
33734
+ * @param {string} value
33735
+ * @return {!proto.gateway.web.v1.LabelCount} returns this
33736
+ */
33737
+ proto.gateway.web.v1.LabelCount.prototype.setLabel = function(value) {
33738
+ return jspb.Message.setProto3StringField(this, 1, value);
33739
+ };
33740
+
33741
+
33742
+ /**
33743
+ * optional uint64 calls = 2;
33744
+ * @return {number}
33745
+ */
33746
+ proto.gateway.web.v1.LabelCount.prototype.getCalls = function() {
33747
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
33748
+ };
33749
+
33750
+
33751
+ /**
33752
+ * @param {number} value
33753
+ * @return {!proto.gateway.web.v1.LabelCount} returns this
33754
+ */
33755
+ proto.gateway.web.v1.LabelCount.prototype.setCalls = function(value) {
33756
+ return jspb.Message.setProto3IntField(this, 2, value);
33757
+ };
33758
+
33759
+
33760
+
30804
33761
  /**
30805
33762
  * List of repeated fields within this message type.
30806
33763
  * @private {!Array<number>}