@marleena/trb-proto 1.0.57 → 1.0.58

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.
@@ -169,6 +169,92 @@ export class StrategySearchServiceClient {
169
169
  this.methodDescriptorGetBestTrials);
170
170
  }
171
171
 
172
+ methodDescriptorListSearchTrials = new grpcWeb.MethodDescriptor(
173
+ '/trb.strategysearch.v1.StrategySearchService/ListSearchTrials',
174
+ grpcWeb.MethodType.UNARY,
175
+ strategysearch_strategysearch_pb.ListSearchTrialsRequest,
176
+ strategysearch_strategysearch_pb.ListSearchTrialsResponse,
177
+ (request: strategysearch_strategysearch_pb.ListSearchTrialsRequest) => {
178
+ return request.serializeBinary();
179
+ },
180
+ strategysearch_strategysearch_pb.ListSearchTrialsResponse.deserializeBinary
181
+ );
182
+
183
+ listSearchTrials(
184
+ request: strategysearch_strategysearch_pb.ListSearchTrialsRequest,
185
+ metadata?: grpcWeb.Metadata | null): Promise<strategysearch_strategysearch_pb.ListSearchTrialsResponse>;
186
+
187
+ listSearchTrials(
188
+ request: strategysearch_strategysearch_pb.ListSearchTrialsRequest,
189
+ metadata: grpcWeb.Metadata | null,
190
+ callback: (err: grpcWeb.RpcError,
191
+ response: strategysearch_strategysearch_pb.ListSearchTrialsResponse) => void): grpcWeb.ClientReadableStream<strategysearch_strategysearch_pb.ListSearchTrialsResponse>;
192
+
193
+ listSearchTrials(
194
+ request: strategysearch_strategysearch_pb.ListSearchTrialsRequest,
195
+ metadata?: grpcWeb.Metadata | null,
196
+ callback?: (err: grpcWeb.RpcError,
197
+ response: strategysearch_strategysearch_pb.ListSearchTrialsResponse) => void) {
198
+ if (callback !== undefined) {
199
+ return this.client_.rpcCall(
200
+ this.hostname_ +
201
+ '/trb.strategysearch.v1.StrategySearchService/ListSearchTrials',
202
+ request,
203
+ metadata || {},
204
+ this.methodDescriptorListSearchTrials,
205
+ callback);
206
+ }
207
+ return this.client_.unaryCall(
208
+ this.hostname_ +
209
+ '/trb.strategysearch.v1.StrategySearchService/ListSearchTrials',
210
+ request,
211
+ metadata || {},
212
+ this.methodDescriptorListSearchTrials);
213
+ }
214
+
215
+ methodDescriptorGetParamImportances = new grpcWeb.MethodDescriptor(
216
+ '/trb.strategysearch.v1.StrategySearchService/GetParamImportances',
217
+ grpcWeb.MethodType.UNARY,
218
+ strategysearch_strategysearch_pb.GetParamImportancesRequest,
219
+ strategysearch_strategysearch_pb.GetParamImportancesResponse,
220
+ (request: strategysearch_strategysearch_pb.GetParamImportancesRequest) => {
221
+ return request.serializeBinary();
222
+ },
223
+ strategysearch_strategysearch_pb.GetParamImportancesResponse.deserializeBinary
224
+ );
225
+
226
+ getParamImportances(
227
+ request: strategysearch_strategysearch_pb.GetParamImportancesRequest,
228
+ metadata?: grpcWeb.Metadata | null): Promise<strategysearch_strategysearch_pb.GetParamImportancesResponse>;
229
+
230
+ getParamImportances(
231
+ request: strategysearch_strategysearch_pb.GetParamImportancesRequest,
232
+ metadata: grpcWeb.Metadata | null,
233
+ callback: (err: grpcWeb.RpcError,
234
+ response: strategysearch_strategysearch_pb.GetParamImportancesResponse) => void): grpcWeb.ClientReadableStream<strategysearch_strategysearch_pb.GetParamImportancesResponse>;
235
+
236
+ getParamImportances(
237
+ request: strategysearch_strategysearch_pb.GetParamImportancesRequest,
238
+ metadata?: grpcWeb.Metadata | null,
239
+ callback?: (err: grpcWeb.RpcError,
240
+ response: strategysearch_strategysearch_pb.GetParamImportancesResponse) => void) {
241
+ if (callback !== undefined) {
242
+ return this.client_.rpcCall(
243
+ this.hostname_ +
244
+ '/trb.strategysearch.v1.StrategySearchService/GetParamImportances',
245
+ request,
246
+ metadata || {},
247
+ this.methodDescriptorGetParamImportances,
248
+ callback);
249
+ }
250
+ return this.client_.unaryCall(
251
+ this.hostname_ +
252
+ '/trb.strategysearch.v1.StrategySearchService/GetParamImportances',
253
+ request,
254
+ metadata || {},
255
+ this.methodDescriptorGetParamImportances);
256
+ }
257
+
172
258
  methodDescriptorListSearches = new grpcWeb.MethodDescriptor(
173
259
  '/trb.strategysearch.v1.StrategySearchService/ListSearches',
174
260
  grpcWeb.MethodType.UNARY,
@@ -1088,6 +1088,28 @@ export namespace Trial {
1088
1088
  }
1089
1089
  }
1090
1090
 
1091
+ export class ParamImportance extends jspb.Message {
1092
+ getPath(): string;
1093
+ setPath(value: string): ParamImportance;
1094
+
1095
+ getImportance(): number;
1096
+ setImportance(value: number): ParamImportance;
1097
+
1098
+ serializeBinary(): Uint8Array;
1099
+ toObject(includeInstance?: boolean): ParamImportance.AsObject;
1100
+ static toObject(includeInstance: boolean, msg: ParamImportance): ParamImportance.AsObject;
1101
+ static serializeBinaryToWriter(message: ParamImportance, writer: jspb.BinaryWriter): void;
1102
+ static deserializeBinary(bytes: Uint8Array): ParamImportance;
1103
+ static deserializeBinaryFromReader(message: ParamImportance, reader: jspb.BinaryReader): ParamImportance;
1104
+ }
1105
+
1106
+ export namespace ParamImportance {
1107
+ export type AsObject = {
1108
+ path: string,
1109
+ importance: number,
1110
+ }
1111
+ }
1112
+
1091
1113
  export class SearchProgress extends jspb.Message {
1092
1114
  getStatus(): strategysearch_backtest_pb.RunStatus;
1093
1115
  setStatus(value: strategysearch_backtest_pb.RunStatus): SearchProgress;
@@ -43,6 +43,7 @@ goog.exportSymbol('proto.trb.strategysearch.v1.NopPrunerParams', null, global);
43
43
  goog.exportSymbol('proto.trb.strategysearch.v1.NsgaIiSamplerParams', null, global);
44
44
  goog.exportSymbol('proto.trb.strategysearch.v1.Objective', null, global);
45
45
  goog.exportSymbol('proto.trb.strategysearch.v1.ObjectiveMetric', null, global);
46
+ goog.exportSymbol('proto.trb.strategysearch.v1.ParamImportance', null, global);
46
47
  goog.exportSymbol('proto.trb.strategysearch.v1.ParamRange', null, global);
47
48
  goog.exportSymbol('proto.trb.strategysearch.v1.ParamRange.RangeCase', null, global);
48
49
  goog.exportSymbol('proto.trb.strategysearch.v1.PatientPrunerParams', null, global);
@@ -760,6 +761,27 @@ if (goog.DEBUG && !COMPILED) {
760
761
  */
761
762
  proto.trb.strategysearch.v1.Trial.displayName = 'proto.trb.strategysearch.v1.Trial';
762
763
  }
764
+ /**
765
+ * Generated by JsPbCodeGenerator.
766
+ * @param {Array=} opt_data Optional initial data array, typically from a
767
+ * server response, or constructed directly in Javascript. The array is used
768
+ * in place and becomes part of the constructed object. It is not cloned.
769
+ * If no data is provided, the constructed object will be empty, but still
770
+ * valid.
771
+ * @extends {jspb.Message}
772
+ * @constructor
773
+ */
774
+ proto.trb.strategysearch.v1.ParamImportance = function(opt_data) {
775
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
776
+ };
777
+ goog.inherits(proto.trb.strategysearch.v1.ParamImportance, jspb.Message);
778
+ if (goog.DEBUG && !COMPILED) {
779
+ /**
780
+ * @public
781
+ * @override
782
+ */
783
+ proto.trb.strategysearch.v1.ParamImportance.displayName = 'proto.trb.strategysearch.v1.ParamImportance';
784
+ }
763
785
  /**
764
786
  * Generated by JsPbCodeGenerator.
765
787
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -8868,6 +8890,166 @@ proto.trb.strategysearch.v1.Trial.prototype.hasCompletedAt = function() {
8868
8890
 
8869
8891
 
8870
8892
 
8893
+
8894
+
8895
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8896
+ /**
8897
+ * Creates an object representation of this proto.
8898
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8899
+ * Optional fields that are not set will be set to undefined.
8900
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8901
+ * For the list of reserved names please see:
8902
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8903
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8904
+ * JSPB instance for transitional soy proto support:
8905
+ * http://goto/soy-param-migration
8906
+ * @return {!Object}
8907
+ */
8908
+ proto.trb.strategysearch.v1.ParamImportance.prototype.toObject = function(opt_includeInstance) {
8909
+ return proto.trb.strategysearch.v1.ParamImportance.toObject(opt_includeInstance, this);
8910
+ };
8911
+
8912
+
8913
+ /**
8914
+ * Static version of the {@see toObject} method.
8915
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8916
+ * the JSPB instance for transitional soy proto support:
8917
+ * http://goto/soy-param-migration
8918
+ * @param {!proto.trb.strategysearch.v1.ParamImportance} msg The msg instance to transform.
8919
+ * @return {!Object}
8920
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8921
+ */
8922
+ proto.trb.strategysearch.v1.ParamImportance.toObject = function(includeInstance, msg) {
8923
+ var f, obj = {
8924
+ path: jspb.Message.getFieldWithDefault(msg, 1, ""),
8925
+ importance: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
8926
+ };
8927
+
8928
+ if (includeInstance) {
8929
+ obj.$jspbMessageInstance = msg;
8930
+ }
8931
+ return obj;
8932
+ };
8933
+ }
8934
+
8935
+
8936
+ /**
8937
+ * Deserializes binary data (in protobuf wire format).
8938
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8939
+ * @return {!proto.trb.strategysearch.v1.ParamImportance}
8940
+ */
8941
+ proto.trb.strategysearch.v1.ParamImportance.deserializeBinary = function(bytes) {
8942
+ var reader = new jspb.BinaryReader(bytes);
8943
+ var msg = new proto.trb.strategysearch.v1.ParamImportance;
8944
+ return proto.trb.strategysearch.v1.ParamImportance.deserializeBinaryFromReader(msg, reader);
8945
+ };
8946
+
8947
+
8948
+ /**
8949
+ * Deserializes binary data (in protobuf wire format) from the
8950
+ * given reader into the given message object.
8951
+ * @param {!proto.trb.strategysearch.v1.ParamImportance} msg The message object to deserialize into.
8952
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8953
+ * @return {!proto.trb.strategysearch.v1.ParamImportance}
8954
+ */
8955
+ proto.trb.strategysearch.v1.ParamImportance.deserializeBinaryFromReader = function(msg, reader) {
8956
+ while (reader.nextField()) {
8957
+ if (reader.isEndGroup()) {
8958
+ break;
8959
+ }
8960
+ var field = reader.getFieldNumber();
8961
+ switch (field) {
8962
+ case 1:
8963
+ var value = /** @type {string} */ (reader.readString());
8964
+ msg.setPath(value);
8965
+ break;
8966
+ case 2:
8967
+ var value = /** @type {number} */ (reader.readDouble());
8968
+ msg.setImportance(value);
8969
+ break;
8970
+ default:
8971
+ reader.skipField();
8972
+ break;
8973
+ }
8974
+ }
8975
+ return msg;
8976
+ };
8977
+
8978
+
8979
+ /**
8980
+ * Serializes the message to binary data (in protobuf wire format).
8981
+ * @return {!Uint8Array}
8982
+ */
8983
+ proto.trb.strategysearch.v1.ParamImportance.prototype.serializeBinary = function() {
8984
+ var writer = new jspb.BinaryWriter();
8985
+ proto.trb.strategysearch.v1.ParamImportance.serializeBinaryToWriter(this, writer);
8986
+ return writer.getResultBuffer();
8987
+ };
8988
+
8989
+
8990
+ /**
8991
+ * Serializes the given message to binary data (in protobuf wire
8992
+ * format), writing to the given BinaryWriter.
8993
+ * @param {!proto.trb.strategysearch.v1.ParamImportance} message
8994
+ * @param {!jspb.BinaryWriter} writer
8995
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8996
+ */
8997
+ proto.trb.strategysearch.v1.ParamImportance.serializeBinaryToWriter = function(message, writer) {
8998
+ var f = undefined;
8999
+ f = message.getPath();
9000
+ if (f.length > 0) {
9001
+ writer.writeString(
9002
+ 1,
9003
+ f
9004
+ );
9005
+ }
9006
+ f = message.getImportance();
9007
+ if (f !== 0.0) {
9008
+ writer.writeDouble(
9009
+ 2,
9010
+ f
9011
+ );
9012
+ }
9013
+ };
9014
+
9015
+
9016
+ /**
9017
+ * optional string path = 1;
9018
+ * @return {string}
9019
+ */
9020
+ proto.trb.strategysearch.v1.ParamImportance.prototype.getPath = function() {
9021
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
9022
+ };
9023
+
9024
+
9025
+ /**
9026
+ * @param {string} value
9027
+ * @return {!proto.trb.strategysearch.v1.ParamImportance} returns this
9028
+ */
9029
+ proto.trb.strategysearch.v1.ParamImportance.prototype.setPath = function(value) {
9030
+ return jspb.Message.setProto3StringField(this, 1, value);
9031
+ };
9032
+
9033
+
9034
+ /**
9035
+ * optional double importance = 2;
9036
+ * @return {number}
9037
+ */
9038
+ proto.trb.strategysearch.v1.ParamImportance.prototype.getImportance = function() {
9039
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
9040
+ };
9041
+
9042
+
9043
+ /**
9044
+ * @param {number} value
9045
+ * @return {!proto.trb.strategysearch.v1.ParamImportance} returns this
9046
+ */
9047
+ proto.trb.strategysearch.v1.ParamImportance.prototype.setImportance = function(value) {
9048
+ return jspb.Message.setProto3FloatField(this, 2, value);
9049
+ };
9050
+
9051
+
9052
+
8871
9053
  /**
8872
9054
  * List of repeated fields within this message type.
8873
9055
  * @private {!Array<number>}
@@ -131,6 +131,98 @@ export namespace GetBestTrialsResponse {
131
131
  }
132
132
  }
133
133
 
134
+ export class ListSearchTrialsRequest extends jspb.Message {
135
+ getSearchId(): string;
136
+ setSearchId(value: string): ListSearchTrialsRequest;
137
+
138
+ getLimit(): number;
139
+ setLimit(value: number): ListSearchTrialsRequest;
140
+
141
+ getOffset(): number;
142
+ setOffset(value: number): ListSearchTrialsRequest;
143
+
144
+ serializeBinary(): Uint8Array;
145
+ toObject(includeInstance?: boolean): ListSearchTrialsRequest.AsObject;
146
+ static toObject(includeInstance: boolean, msg: ListSearchTrialsRequest): ListSearchTrialsRequest.AsObject;
147
+ static serializeBinaryToWriter(message: ListSearchTrialsRequest, writer: jspb.BinaryWriter): void;
148
+ static deserializeBinary(bytes: Uint8Array): ListSearchTrialsRequest;
149
+ static deserializeBinaryFromReader(message: ListSearchTrialsRequest, reader: jspb.BinaryReader): ListSearchTrialsRequest;
150
+ }
151
+
152
+ export namespace ListSearchTrialsRequest {
153
+ export type AsObject = {
154
+ searchId: string,
155
+ limit: number,
156
+ offset: number,
157
+ }
158
+ }
159
+
160
+ export class ListSearchTrialsResponse extends jspb.Message {
161
+ getItemsList(): Array<strategysearch_search_pb.Trial>;
162
+ setItemsList(value: Array<strategysearch_search_pb.Trial>): ListSearchTrialsResponse;
163
+ clearItemsList(): ListSearchTrialsResponse;
164
+ addItems(value?: strategysearch_search_pb.Trial, index?: number): strategysearch_search_pb.Trial;
165
+
166
+ getTotal(): number;
167
+ setTotal(value: number): ListSearchTrialsResponse;
168
+
169
+ serializeBinary(): Uint8Array;
170
+ toObject(includeInstance?: boolean): ListSearchTrialsResponse.AsObject;
171
+ static toObject(includeInstance: boolean, msg: ListSearchTrialsResponse): ListSearchTrialsResponse.AsObject;
172
+ static serializeBinaryToWriter(message: ListSearchTrialsResponse, writer: jspb.BinaryWriter): void;
173
+ static deserializeBinary(bytes: Uint8Array): ListSearchTrialsResponse;
174
+ static deserializeBinaryFromReader(message: ListSearchTrialsResponse, reader: jspb.BinaryReader): ListSearchTrialsResponse;
175
+ }
176
+
177
+ export namespace ListSearchTrialsResponse {
178
+ export type AsObject = {
179
+ itemsList: Array<strategysearch_search_pb.Trial.AsObject>,
180
+ total: number,
181
+ }
182
+ }
183
+
184
+ export class GetParamImportancesRequest extends jspb.Message {
185
+ getSearchId(): string;
186
+ setSearchId(value: string): GetParamImportancesRequest;
187
+
188
+ getMetric(): string;
189
+ setMetric(value: string): GetParamImportancesRequest;
190
+
191
+ serializeBinary(): Uint8Array;
192
+ toObject(includeInstance?: boolean): GetParamImportancesRequest.AsObject;
193
+ static toObject(includeInstance: boolean, msg: GetParamImportancesRequest): GetParamImportancesRequest.AsObject;
194
+ static serializeBinaryToWriter(message: GetParamImportancesRequest, writer: jspb.BinaryWriter): void;
195
+ static deserializeBinary(bytes: Uint8Array): GetParamImportancesRequest;
196
+ static deserializeBinaryFromReader(message: GetParamImportancesRequest, reader: jspb.BinaryReader): GetParamImportancesRequest;
197
+ }
198
+
199
+ export namespace GetParamImportancesRequest {
200
+ export type AsObject = {
201
+ searchId: string,
202
+ metric: string,
203
+ }
204
+ }
205
+
206
+ export class GetParamImportancesResponse extends jspb.Message {
207
+ getItemsList(): Array<strategysearch_search_pb.ParamImportance>;
208
+ setItemsList(value: Array<strategysearch_search_pb.ParamImportance>): GetParamImportancesResponse;
209
+ clearItemsList(): GetParamImportancesResponse;
210
+ addItems(value?: strategysearch_search_pb.ParamImportance, index?: number): strategysearch_search_pb.ParamImportance;
211
+
212
+ serializeBinary(): Uint8Array;
213
+ toObject(includeInstance?: boolean): GetParamImportancesResponse.AsObject;
214
+ static toObject(includeInstance: boolean, msg: GetParamImportancesResponse): GetParamImportancesResponse.AsObject;
215
+ static serializeBinaryToWriter(message: GetParamImportancesResponse, writer: jspb.BinaryWriter): void;
216
+ static deserializeBinary(bytes: Uint8Array): GetParamImportancesResponse;
217
+ static deserializeBinaryFromReader(message: GetParamImportancesResponse, reader: jspb.BinaryReader): GetParamImportancesResponse;
218
+ }
219
+
220
+ export namespace GetParamImportancesResponse {
221
+ export type AsObject = {
222
+ itemsList: Array<strategysearch_search_pb.ParamImportance.AsObject>,
223
+ }
224
+ }
225
+
134
226
  export class ListSearchesRequest extends jspb.Message {
135
227
  getStatus(): strategysearch_backtest_pb.RunStatus;
136
228
  setStatus(value: strategysearch_backtest_pb.RunStatus): ListSearchesRequest;
@@ -37,9 +37,13 @@ goog.exportSymbol('proto.trb.strategysearch.v1.DeleteSearchPresetRequest', null,
37
37
  goog.exportSymbol('proto.trb.strategysearch.v1.DeleteSearchPresetResponse', null, global);
38
38
  goog.exportSymbol('proto.trb.strategysearch.v1.GetBestTrialsRequest', null, global);
39
39
  goog.exportSymbol('proto.trb.strategysearch.v1.GetBestTrialsResponse', null, global);
40
+ goog.exportSymbol('proto.trb.strategysearch.v1.GetParamImportancesRequest', null, global);
41
+ goog.exportSymbol('proto.trb.strategysearch.v1.GetParamImportancesResponse', null, global);
40
42
  goog.exportSymbol('proto.trb.strategysearch.v1.GetSearchProgressRequest', null, global);
41
43
  goog.exportSymbol('proto.trb.strategysearch.v1.ListSearchPresetsRequest', null, global);
42
44
  goog.exportSymbol('proto.trb.strategysearch.v1.ListSearchPresetsResponse', null, global);
45
+ goog.exportSymbol('proto.trb.strategysearch.v1.ListSearchTrialsRequest', null, global);
46
+ goog.exportSymbol('proto.trb.strategysearch.v1.ListSearchTrialsResponse', null, global);
43
47
  goog.exportSymbol('proto.trb.strategysearch.v1.ListSearchesRequest', null, global);
44
48
  goog.exportSymbol('proto.trb.strategysearch.v1.ListSearchesResponse', null, global);
45
49
  goog.exportSymbol('proto.trb.strategysearch.v1.SearchPreset', null, global);
@@ -150,6 +154,90 @@ if (goog.DEBUG && !COMPILED) {
150
154
  */
151
155
  proto.trb.strategysearch.v1.GetBestTrialsResponse.displayName = 'proto.trb.strategysearch.v1.GetBestTrialsResponse';
152
156
  }
157
+ /**
158
+ * Generated by JsPbCodeGenerator.
159
+ * @param {Array=} opt_data Optional initial data array, typically from a
160
+ * server response, or constructed directly in Javascript. The array is used
161
+ * in place and becomes part of the constructed object. It is not cloned.
162
+ * If no data is provided, the constructed object will be empty, but still
163
+ * valid.
164
+ * @extends {jspb.Message}
165
+ * @constructor
166
+ */
167
+ proto.trb.strategysearch.v1.ListSearchTrialsRequest = function(opt_data) {
168
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
169
+ };
170
+ goog.inherits(proto.trb.strategysearch.v1.ListSearchTrialsRequest, jspb.Message);
171
+ if (goog.DEBUG && !COMPILED) {
172
+ /**
173
+ * @public
174
+ * @override
175
+ */
176
+ proto.trb.strategysearch.v1.ListSearchTrialsRequest.displayName = 'proto.trb.strategysearch.v1.ListSearchTrialsRequest';
177
+ }
178
+ /**
179
+ * Generated by JsPbCodeGenerator.
180
+ * @param {Array=} opt_data Optional initial data array, typically from a
181
+ * server response, or constructed directly in Javascript. The array is used
182
+ * in place and becomes part of the constructed object. It is not cloned.
183
+ * If no data is provided, the constructed object will be empty, but still
184
+ * valid.
185
+ * @extends {jspb.Message}
186
+ * @constructor
187
+ */
188
+ proto.trb.strategysearch.v1.ListSearchTrialsResponse = function(opt_data) {
189
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.strategysearch.v1.ListSearchTrialsResponse.repeatedFields_, null);
190
+ };
191
+ goog.inherits(proto.trb.strategysearch.v1.ListSearchTrialsResponse, jspb.Message);
192
+ if (goog.DEBUG && !COMPILED) {
193
+ /**
194
+ * @public
195
+ * @override
196
+ */
197
+ proto.trb.strategysearch.v1.ListSearchTrialsResponse.displayName = 'proto.trb.strategysearch.v1.ListSearchTrialsResponse';
198
+ }
199
+ /**
200
+ * Generated by JsPbCodeGenerator.
201
+ * @param {Array=} opt_data Optional initial data array, typically from a
202
+ * server response, or constructed directly in Javascript. The array is used
203
+ * in place and becomes part of the constructed object. It is not cloned.
204
+ * If no data is provided, the constructed object will be empty, but still
205
+ * valid.
206
+ * @extends {jspb.Message}
207
+ * @constructor
208
+ */
209
+ proto.trb.strategysearch.v1.GetParamImportancesRequest = function(opt_data) {
210
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
211
+ };
212
+ goog.inherits(proto.trb.strategysearch.v1.GetParamImportancesRequest, jspb.Message);
213
+ if (goog.DEBUG && !COMPILED) {
214
+ /**
215
+ * @public
216
+ * @override
217
+ */
218
+ proto.trb.strategysearch.v1.GetParamImportancesRequest.displayName = 'proto.trb.strategysearch.v1.GetParamImportancesRequest';
219
+ }
220
+ /**
221
+ * Generated by JsPbCodeGenerator.
222
+ * @param {Array=} opt_data Optional initial data array, typically from a
223
+ * server response, or constructed directly in Javascript. The array is used
224
+ * in place and becomes part of the constructed object. It is not cloned.
225
+ * If no data is provided, the constructed object will be empty, but still
226
+ * valid.
227
+ * @extends {jspb.Message}
228
+ * @constructor
229
+ */
230
+ proto.trb.strategysearch.v1.GetParamImportancesResponse = function(opt_data) {
231
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.strategysearch.v1.GetParamImportancesResponse.repeatedFields_, null);
232
+ };
233
+ goog.inherits(proto.trb.strategysearch.v1.GetParamImportancesResponse, jspb.Message);
234
+ if (goog.DEBUG && !COMPILED) {
235
+ /**
236
+ * @public
237
+ * @override
238
+ */
239
+ proto.trb.strategysearch.v1.GetParamImportancesResponse.displayName = 'proto.trb.strategysearch.v1.GetParamImportancesResponse';
240
+ }
153
241
  /**
154
242
  * Generated by JsPbCodeGenerator.
155
243
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1295,6 +1383,706 @@ proto.trb.strategysearch.v1.GetBestTrialsResponse.prototype.clearItemsList = fun
1295
1383
 
1296
1384
 
1297
1385
 
1386
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1387
+ /**
1388
+ * Creates an object representation of this proto.
1389
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1390
+ * Optional fields that are not set will be set to undefined.
1391
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1392
+ * For the list of reserved names please see:
1393
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1394
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1395
+ * JSPB instance for transitional soy proto support:
1396
+ * http://goto/soy-param-migration
1397
+ * @return {!Object}
1398
+ */
1399
+ proto.trb.strategysearch.v1.ListSearchTrialsRequest.prototype.toObject = function(opt_includeInstance) {
1400
+ return proto.trb.strategysearch.v1.ListSearchTrialsRequest.toObject(opt_includeInstance, this);
1401
+ };
1402
+
1403
+
1404
+ /**
1405
+ * Static version of the {@see toObject} method.
1406
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1407
+ * the JSPB instance for transitional soy proto support:
1408
+ * http://goto/soy-param-migration
1409
+ * @param {!proto.trb.strategysearch.v1.ListSearchTrialsRequest} msg The msg instance to transform.
1410
+ * @return {!Object}
1411
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1412
+ */
1413
+ proto.trb.strategysearch.v1.ListSearchTrialsRequest.toObject = function(includeInstance, msg) {
1414
+ var f, obj = {
1415
+ searchId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1416
+ limit: jspb.Message.getFieldWithDefault(msg, 2, 0),
1417
+ offset: jspb.Message.getFieldWithDefault(msg, 3, 0)
1418
+ };
1419
+
1420
+ if (includeInstance) {
1421
+ obj.$jspbMessageInstance = msg;
1422
+ }
1423
+ return obj;
1424
+ };
1425
+ }
1426
+
1427
+
1428
+ /**
1429
+ * Deserializes binary data (in protobuf wire format).
1430
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1431
+ * @return {!proto.trb.strategysearch.v1.ListSearchTrialsRequest}
1432
+ */
1433
+ proto.trb.strategysearch.v1.ListSearchTrialsRequest.deserializeBinary = function(bytes) {
1434
+ var reader = new jspb.BinaryReader(bytes);
1435
+ var msg = new proto.trb.strategysearch.v1.ListSearchTrialsRequest;
1436
+ return proto.trb.strategysearch.v1.ListSearchTrialsRequest.deserializeBinaryFromReader(msg, reader);
1437
+ };
1438
+
1439
+
1440
+ /**
1441
+ * Deserializes binary data (in protobuf wire format) from the
1442
+ * given reader into the given message object.
1443
+ * @param {!proto.trb.strategysearch.v1.ListSearchTrialsRequest} msg The message object to deserialize into.
1444
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1445
+ * @return {!proto.trb.strategysearch.v1.ListSearchTrialsRequest}
1446
+ */
1447
+ proto.trb.strategysearch.v1.ListSearchTrialsRequest.deserializeBinaryFromReader = function(msg, reader) {
1448
+ while (reader.nextField()) {
1449
+ if (reader.isEndGroup()) {
1450
+ break;
1451
+ }
1452
+ var field = reader.getFieldNumber();
1453
+ switch (field) {
1454
+ case 1:
1455
+ var value = /** @type {string} */ (reader.readString());
1456
+ msg.setSearchId(value);
1457
+ break;
1458
+ case 2:
1459
+ var value = /** @type {number} */ (reader.readInt32());
1460
+ msg.setLimit(value);
1461
+ break;
1462
+ case 3:
1463
+ var value = /** @type {number} */ (reader.readInt32());
1464
+ msg.setOffset(value);
1465
+ break;
1466
+ default:
1467
+ reader.skipField();
1468
+ break;
1469
+ }
1470
+ }
1471
+ return msg;
1472
+ };
1473
+
1474
+
1475
+ /**
1476
+ * Serializes the message to binary data (in protobuf wire format).
1477
+ * @return {!Uint8Array}
1478
+ */
1479
+ proto.trb.strategysearch.v1.ListSearchTrialsRequest.prototype.serializeBinary = function() {
1480
+ var writer = new jspb.BinaryWriter();
1481
+ proto.trb.strategysearch.v1.ListSearchTrialsRequest.serializeBinaryToWriter(this, writer);
1482
+ return writer.getResultBuffer();
1483
+ };
1484
+
1485
+
1486
+ /**
1487
+ * Serializes the given message to binary data (in protobuf wire
1488
+ * format), writing to the given BinaryWriter.
1489
+ * @param {!proto.trb.strategysearch.v1.ListSearchTrialsRequest} message
1490
+ * @param {!jspb.BinaryWriter} writer
1491
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1492
+ */
1493
+ proto.trb.strategysearch.v1.ListSearchTrialsRequest.serializeBinaryToWriter = function(message, writer) {
1494
+ var f = undefined;
1495
+ f = message.getSearchId();
1496
+ if (f.length > 0) {
1497
+ writer.writeString(
1498
+ 1,
1499
+ f
1500
+ );
1501
+ }
1502
+ f = message.getLimit();
1503
+ if (f !== 0) {
1504
+ writer.writeInt32(
1505
+ 2,
1506
+ f
1507
+ );
1508
+ }
1509
+ f = message.getOffset();
1510
+ if (f !== 0) {
1511
+ writer.writeInt32(
1512
+ 3,
1513
+ f
1514
+ );
1515
+ }
1516
+ };
1517
+
1518
+
1519
+ /**
1520
+ * optional string search_id = 1;
1521
+ * @return {string}
1522
+ */
1523
+ proto.trb.strategysearch.v1.ListSearchTrialsRequest.prototype.getSearchId = function() {
1524
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1525
+ };
1526
+
1527
+
1528
+ /**
1529
+ * @param {string} value
1530
+ * @return {!proto.trb.strategysearch.v1.ListSearchTrialsRequest} returns this
1531
+ */
1532
+ proto.trb.strategysearch.v1.ListSearchTrialsRequest.prototype.setSearchId = function(value) {
1533
+ return jspb.Message.setProto3StringField(this, 1, value);
1534
+ };
1535
+
1536
+
1537
+ /**
1538
+ * optional int32 limit = 2;
1539
+ * @return {number}
1540
+ */
1541
+ proto.trb.strategysearch.v1.ListSearchTrialsRequest.prototype.getLimit = function() {
1542
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1543
+ };
1544
+
1545
+
1546
+ /**
1547
+ * @param {number} value
1548
+ * @return {!proto.trb.strategysearch.v1.ListSearchTrialsRequest} returns this
1549
+ */
1550
+ proto.trb.strategysearch.v1.ListSearchTrialsRequest.prototype.setLimit = function(value) {
1551
+ return jspb.Message.setProto3IntField(this, 2, value);
1552
+ };
1553
+
1554
+
1555
+ /**
1556
+ * optional int32 offset = 3;
1557
+ * @return {number}
1558
+ */
1559
+ proto.trb.strategysearch.v1.ListSearchTrialsRequest.prototype.getOffset = function() {
1560
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1561
+ };
1562
+
1563
+
1564
+ /**
1565
+ * @param {number} value
1566
+ * @return {!proto.trb.strategysearch.v1.ListSearchTrialsRequest} returns this
1567
+ */
1568
+ proto.trb.strategysearch.v1.ListSearchTrialsRequest.prototype.setOffset = function(value) {
1569
+ return jspb.Message.setProto3IntField(this, 3, value);
1570
+ };
1571
+
1572
+
1573
+
1574
+ /**
1575
+ * List of repeated fields within this message type.
1576
+ * @private {!Array<number>}
1577
+ * @const
1578
+ */
1579
+ proto.trb.strategysearch.v1.ListSearchTrialsResponse.repeatedFields_ = [1];
1580
+
1581
+
1582
+
1583
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1584
+ /**
1585
+ * Creates an object representation of this proto.
1586
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1587
+ * Optional fields that are not set will be set to undefined.
1588
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1589
+ * For the list of reserved names please see:
1590
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1591
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1592
+ * JSPB instance for transitional soy proto support:
1593
+ * http://goto/soy-param-migration
1594
+ * @return {!Object}
1595
+ */
1596
+ proto.trb.strategysearch.v1.ListSearchTrialsResponse.prototype.toObject = function(opt_includeInstance) {
1597
+ return proto.trb.strategysearch.v1.ListSearchTrialsResponse.toObject(opt_includeInstance, this);
1598
+ };
1599
+
1600
+
1601
+ /**
1602
+ * Static version of the {@see toObject} method.
1603
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1604
+ * the JSPB instance for transitional soy proto support:
1605
+ * http://goto/soy-param-migration
1606
+ * @param {!proto.trb.strategysearch.v1.ListSearchTrialsResponse} msg The msg instance to transform.
1607
+ * @return {!Object}
1608
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1609
+ */
1610
+ proto.trb.strategysearch.v1.ListSearchTrialsResponse.toObject = function(includeInstance, msg) {
1611
+ var f, obj = {
1612
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
1613
+ strategysearch_search_pb.Trial.toObject, includeInstance),
1614
+ total: jspb.Message.getFieldWithDefault(msg, 2, 0)
1615
+ };
1616
+
1617
+ if (includeInstance) {
1618
+ obj.$jspbMessageInstance = msg;
1619
+ }
1620
+ return obj;
1621
+ };
1622
+ }
1623
+
1624
+
1625
+ /**
1626
+ * Deserializes binary data (in protobuf wire format).
1627
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1628
+ * @return {!proto.trb.strategysearch.v1.ListSearchTrialsResponse}
1629
+ */
1630
+ proto.trb.strategysearch.v1.ListSearchTrialsResponse.deserializeBinary = function(bytes) {
1631
+ var reader = new jspb.BinaryReader(bytes);
1632
+ var msg = new proto.trb.strategysearch.v1.ListSearchTrialsResponse;
1633
+ return proto.trb.strategysearch.v1.ListSearchTrialsResponse.deserializeBinaryFromReader(msg, reader);
1634
+ };
1635
+
1636
+
1637
+ /**
1638
+ * Deserializes binary data (in protobuf wire format) from the
1639
+ * given reader into the given message object.
1640
+ * @param {!proto.trb.strategysearch.v1.ListSearchTrialsResponse} msg The message object to deserialize into.
1641
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1642
+ * @return {!proto.trb.strategysearch.v1.ListSearchTrialsResponse}
1643
+ */
1644
+ proto.trb.strategysearch.v1.ListSearchTrialsResponse.deserializeBinaryFromReader = function(msg, reader) {
1645
+ while (reader.nextField()) {
1646
+ if (reader.isEndGroup()) {
1647
+ break;
1648
+ }
1649
+ var field = reader.getFieldNumber();
1650
+ switch (field) {
1651
+ case 1:
1652
+ var value = new strategysearch_search_pb.Trial;
1653
+ reader.readMessage(value,strategysearch_search_pb.Trial.deserializeBinaryFromReader);
1654
+ msg.addItems(value);
1655
+ break;
1656
+ case 2:
1657
+ var value = /** @type {number} */ (reader.readInt32());
1658
+ msg.setTotal(value);
1659
+ break;
1660
+ default:
1661
+ reader.skipField();
1662
+ break;
1663
+ }
1664
+ }
1665
+ return msg;
1666
+ };
1667
+
1668
+
1669
+ /**
1670
+ * Serializes the message to binary data (in protobuf wire format).
1671
+ * @return {!Uint8Array}
1672
+ */
1673
+ proto.trb.strategysearch.v1.ListSearchTrialsResponse.prototype.serializeBinary = function() {
1674
+ var writer = new jspb.BinaryWriter();
1675
+ proto.trb.strategysearch.v1.ListSearchTrialsResponse.serializeBinaryToWriter(this, writer);
1676
+ return writer.getResultBuffer();
1677
+ };
1678
+
1679
+
1680
+ /**
1681
+ * Serializes the given message to binary data (in protobuf wire
1682
+ * format), writing to the given BinaryWriter.
1683
+ * @param {!proto.trb.strategysearch.v1.ListSearchTrialsResponse} message
1684
+ * @param {!jspb.BinaryWriter} writer
1685
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1686
+ */
1687
+ proto.trb.strategysearch.v1.ListSearchTrialsResponse.serializeBinaryToWriter = function(message, writer) {
1688
+ var f = undefined;
1689
+ f = message.getItemsList();
1690
+ if (f.length > 0) {
1691
+ writer.writeRepeatedMessage(
1692
+ 1,
1693
+ f,
1694
+ strategysearch_search_pb.Trial.serializeBinaryToWriter
1695
+ );
1696
+ }
1697
+ f = message.getTotal();
1698
+ if (f !== 0) {
1699
+ writer.writeInt32(
1700
+ 2,
1701
+ f
1702
+ );
1703
+ }
1704
+ };
1705
+
1706
+
1707
+ /**
1708
+ * repeated Trial items = 1;
1709
+ * @return {!Array<!proto.trb.strategysearch.v1.Trial>}
1710
+ */
1711
+ proto.trb.strategysearch.v1.ListSearchTrialsResponse.prototype.getItemsList = function() {
1712
+ return /** @type{!Array<!proto.trb.strategysearch.v1.Trial>} */ (
1713
+ jspb.Message.getRepeatedWrapperField(this, strategysearch_search_pb.Trial, 1));
1714
+ };
1715
+
1716
+
1717
+ /**
1718
+ * @param {!Array<!proto.trb.strategysearch.v1.Trial>} value
1719
+ * @return {!proto.trb.strategysearch.v1.ListSearchTrialsResponse} returns this
1720
+ */
1721
+ proto.trb.strategysearch.v1.ListSearchTrialsResponse.prototype.setItemsList = function(value) {
1722
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1723
+ };
1724
+
1725
+
1726
+ /**
1727
+ * @param {!proto.trb.strategysearch.v1.Trial=} opt_value
1728
+ * @param {number=} opt_index
1729
+ * @return {!proto.trb.strategysearch.v1.Trial}
1730
+ */
1731
+ proto.trb.strategysearch.v1.ListSearchTrialsResponse.prototype.addItems = function(opt_value, opt_index) {
1732
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.trb.strategysearch.v1.Trial, opt_index);
1733
+ };
1734
+
1735
+
1736
+ /**
1737
+ * Clears the list making it empty but non-null.
1738
+ * @return {!proto.trb.strategysearch.v1.ListSearchTrialsResponse} returns this
1739
+ */
1740
+ proto.trb.strategysearch.v1.ListSearchTrialsResponse.prototype.clearItemsList = function() {
1741
+ return this.setItemsList([]);
1742
+ };
1743
+
1744
+
1745
+ /**
1746
+ * optional int32 total = 2;
1747
+ * @return {number}
1748
+ */
1749
+ proto.trb.strategysearch.v1.ListSearchTrialsResponse.prototype.getTotal = function() {
1750
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1751
+ };
1752
+
1753
+
1754
+ /**
1755
+ * @param {number} value
1756
+ * @return {!proto.trb.strategysearch.v1.ListSearchTrialsResponse} returns this
1757
+ */
1758
+ proto.trb.strategysearch.v1.ListSearchTrialsResponse.prototype.setTotal = function(value) {
1759
+ return jspb.Message.setProto3IntField(this, 2, value);
1760
+ };
1761
+
1762
+
1763
+
1764
+
1765
+
1766
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1767
+ /**
1768
+ * Creates an object representation of this proto.
1769
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1770
+ * Optional fields that are not set will be set to undefined.
1771
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1772
+ * For the list of reserved names please see:
1773
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1774
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1775
+ * JSPB instance for transitional soy proto support:
1776
+ * http://goto/soy-param-migration
1777
+ * @return {!Object}
1778
+ */
1779
+ proto.trb.strategysearch.v1.GetParamImportancesRequest.prototype.toObject = function(opt_includeInstance) {
1780
+ return proto.trb.strategysearch.v1.GetParamImportancesRequest.toObject(opt_includeInstance, this);
1781
+ };
1782
+
1783
+
1784
+ /**
1785
+ * Static version of the {@see toObject} method.
1786
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1787
+ * the JSPB instance for transitional soy proto support:
1788
+ * http://goto/soy-param-migration
1789
+ * @param {!proto.trb.strategysearch.v1.GetParamImportancesRequest} msg The msg instance to transform.
1790
+ * @return {!Object}
1791
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1792
+ */
1793
+ proto.trb.strategysearch.v1.GetParamImportancesRequest.toObject = function(includeInstance, msg) {
1794
+ var f, obj = {
1795
+ searchId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1796
+ metric: jspb.Message.getFieldWithDefault(msg, 2, "")
1797
+ };
1798
+
1799
+ if (includeInstance) {
1800
+ obj.$jspbMessageInstance = msg;
1801
+ }
1802
+ return obj;
1803
+ };
1804
+ }
1805
+
1806
+
1807
+ /**
1808
+ * Deserializes binary data (in protobuf wire format).
1809
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1810
+ * @return {!proto.trb.strategysearch.v1.GetParamImportancesRequest}
1811
+ */
1812
+ proto.trb.strategysearch.v1.GetParamImportancesRequest.deserializeBinary = function(bytes) {
1813
+ var reader = new jspb.BinaryReader(bytes);
1814
+ var msg = new proto.trb.strategysearch.v1.GetParamImportancesRequest;
1815
+ return proto.trb.strategysearch.v1.GetParamImportancesRequest.deserializeBinaryFromReader(msg, reader);
1816
+ };
1817
+
1818
+
1819
+ /**
1820
+ * Deserializes binary data (in protobuf wire format) from the
1821
+ * given reader into the given message object.
1822
+ * @param {!proto.trb.strategysearch.v1.GetParamImportancesRequest} msg The message object to deserialize into.
1823
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1824
+ * @return {!proto.trb.strategysearch.v1.GetParamImportancesRequest}
1825
+ */
1826
+ proto.trb.strategysearch.v1.GetParamImportancesRequest.deserializeBinaryFromReader = function(msg, reader) {
1827
+ while (reader.nextField()) {
1828
+ if (reader.isEndGroup()) {
1829
+ break;
1830
+ }
1831
+ var field = reader.getFieldNumber();
1832
+ switch (field) {
1833
+ case 1:
1834
+ var value = /** @type {string} */ (reader.readString());
1835
+ msg.setSearchId(value);
1836
+ break;
1837
+ case 2:
1838
+ var value = /** @type {string} */ (reader.readString());
1839
+ msg.setMetric(value);
1840
+ break;
1841
+ default:
1842
+ reader.skipField();
1843
+ break;
1844
+ }
1845
+ }
1846
+ return msg;
1847
+ };
1848
+
1849
+
1850
+ /**
1851
+ * Serializes the message to binary data (in protobuf wire format).
1852
+ * @return {!Uint8Array}
1853
+ */
1854
+ proto.trb.strategysearch.v1.GetParamImportancesRequest.prototype.serializeBinary = function() {
1855
+ var writer = new jspb.BinaryWriter();
1856
+ proto.trb.strategysearch.v1.GetParamImportancesRequest.serializeBinaryToWriter(this, writer);
1857
+ return writer.getResultBuffer();
1858
+ };
1859
+
1860
+
1861
+ /**
1862
+ * Serializes the given message to binary data (in protobuf wire
1863
+ * format), writing to the given BinaryWriter.
1864
+ * @param {!proto.trb.strategysearch.v1.GetParamImportancesRequest} message
1865
+ * @param {!jspb.BinaryWriter} writer
1866
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1867
+ */
1868
+ proto.trb.strategysearch.v1.GetParamImportancesRequest.serializeBinaryToWriter = function(message, writer) {
1869
+ var f = undefined;
1870
+ f = message.getSearchId();
1871
+ if (f.length > 0) {
1872
+ writer.writeString(
1873
+ 1,
1874
+ f
1875
+ );
1876
+ }
1877
+ f = message.getMetric();
1878
+ if (f.length > 0) {
1879
+ writer.writeString(
1880
+ 2,
1881
+ f
1882
+ );
1883
+ }
1884
+ };
1885
+
1886
+
1887
+ /**
1888
+ * optional string search_id = 1;
1889
+ * @return {string}
1890
+ */
1891
+ proto.trb.strategysearch.v1.GetParamImportancesRequest.prototype.getSearchId = function() {
1892
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1893
+ };
1894
+
1895
+
1896
+ /**
1897
+ * @param {string} value
1898
+ * @return {!proto.trb.strategysearch.v1.GetParamImportancesRequest} returns this
1899
+ */
1900
+ proto.trb.strategysearch.v1.GetParamImportancesRequest.prototype.setSearchId = function(value) {
1901
+ return jspb.Message.setProto3StringField(this, 1, value);
1902
+ };
1903
+
1904
+
1905
+ /**
1906
+ * optional string metric = 2;
1907
+ * @return {string}
1908
+ */
1909
+ proto.trb.strategysearch.v1.GetParamImportancesRequest.prototype.getMetric = function() {
1910
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1911
+ };
1912
+
1913
+
1914
+ /**
1915
+ * @param {string} value
1916
+ * @return {!proto.trb.strategysearch.v1.GetParamImportancesRequest} returns this
1917
+ */
1918
+ proto.trb.strategysearch.v1.GetParamImportancesRequest.prototype.setMetric = function(value) {
1919
+ return jspb.Message.setProto3StringField(this, 2, value);
1920
+ };
1921
+
1922
+
1923
+
1924
+ /**
1925
+ * List of repeated fields within this message type.
1926
+ * @private {!Array<number>}
1927
+ * @const
1928
+ */
1929
+ proto.trb.strategysearch.v1.GetParamImportancesResponse.repeatedFields_ = [1];
1930
+
1931
+
1932
+
1933
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1934
+ /**
1935
+ * Creates an object representation of this proto.
1936
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1937
+ * Optional fields that are not set will be set to undefined.
1938
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1939
+ * For the list of reserved names please see:
1940
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1941
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1942
+ * JSPB instance for transitional soy proto support:
1943
+ * http://goto/soy-param-migration
1944
+ * @return {!Object}
1945
+ */
1946
+ proto.trb.strategysearch.v1.GetParamImportancesResponse.prototype.toObject = function(opt_includeInstance) {
1947
+ return proto.trb.strategysearch.v1.GetParamImportancesResponse.toObject(opt_includeInstance, this);
1948
+ };
1949
+
1950
+
1951
+ /**
1952
+ * Static version of the {@see toObject} method.
1953
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1954
+ * the JSPB instance for transitional soy proto support:
1955
+ * http://goto/soy-param-migration
1956
+ * @param {!proto.trb.strategysearch.v1.GetParamImportancesResponse} msg The msg instance to transform.
1957
+ * @return {!Object}
1958
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1959
+ */
1960
+ proto.trb.strategysearch.v1.GetParamImportancesResponse.toObject = function(includeInstance, msg) {
1961
+ var f, obj = {
1962
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
1963
+ strategysearch_search_pb.ParamImportance.toObject, includeInstance)
1964
+ };
1965
+
1966
+ if (includeInstance) {
1967
+ obj.$jspbMessageInstance = msg;
1968
+ }
1969
+ return obj;
1970
+ };
1971
+ }
1972
+
1973
+
1974
+ /**
1975
+ * Deserializes binary data (in protobuf wire format).
1976
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1977
+ * @return {!proto.trb.strategysearch.v1.GetParamImportancesResponse}
1978
+ */
1979
+ proto.trb.strategysearch.v1.GetParamImportancesResponse.deserializeBinary = function(bytes) {
1980
+ var reader = new jspb.BinaryReader(bytes);
1981
+ var msg = new proto.trb.strategysearch.v1.GetParamImportancesResponse;
1982
+ return proto.trb.strategysearch.v1.GetParamImportancesResponse.deserializeBinaryFromReader(msg, reader);
1983
+ };
1984
+
1985
+
1986
+ /**
1987
+ * Deserializes binary data (in protobuf wire format) from the
1988
+ * given reader into the given message object.
1989
+ * @param {!proto.trb.strategysearch.v1.GetParamImportancesResponse} msg The message object to deserialize into.
1990
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1991
+ * @return {!proto.trb.strategysearch.v1.GetParamImportancesResponse}
1992
+ */
1993
+ proto.trb.strategysearch.v1.GetParamImportancesResponse.deserializeBinaryFromReader = function(msg, reader) {
1994
+ while (reader.nextField()) {
1995
+ if (reader.isEndGroup()) {
1996
+ break;
1997
+ }
1998
+ var field = reader.getFieldNumber();
1999
+ switch (field) {
2000
+ case 1:
2001
+ var value = new strategysearch_search_pb.ParamImportance;
2002
+ reader.readMessage(value,strategysearch_search_pb.ParamImportance.deserializeBinaryFromReader);
2003
+ msg.addItems(value);
2004
+ break;
2005
+ default:
2006
+ reader.skipField();
2007
+ break;
2008
+ }
2009
+ }
2010
+ return msg;
2011
+ };
2012
+
2013
+
2014
+ /**
2015
+ * Serializes the message to binary data (in protobuf wire format).
2016
+ * @return {!Uint8Array}
2017
+ */
2018
+ proto.trb.strategysearch.v1.GetParamImportancesResponse.prototype.serializeBinary = function() {
2019
+ var writer = new jspb.BinaryWriter();
2020
+ proto.trb.strategysearch.v1.GetParamImportancesResponse.serializeBinaryToWriter(this, writer);
2021
+ return writer.getResultBuffer();
2022
+ };
2023
+
2024
+
2025
+ /**
2026
+ * Serializes the given message to binary data (in protobuf wire
2027
+ * format), writing to the given BinaryWriter.
2028
+ * @param {!proto.trb.strategysearch.v1.GetParamImportancesResponse} message
2029
+ * @param {!jspb.BinaryWriter} writer
2030
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2031
+ */
2032
+ proto.trb.strategysearch.v1.GetParamImportancesResponse.serializeBinaryToWriter = function(message, writer) {
2033
+ var f = undefined;
2034
+ f = message.getItemsList();
2035
+ if (f.length > 0) {
2036
+ writer.writeRepeatedMessage(
2037
+ 1,
2038
+ f,
2039
+ strategysearch_search_pb.ParamImportance.serializeBinaryToWriter
2040
+ );
2041
+ }
2042
+ };
2043
+
2044
+
2045
+ /**
2046
+ * repeated ParamImportance items = 1;
2047
+ * @return {!Array<!proto.trb.strategysearch.v1.ParamImportance>}
2048
+ */
2049
+ proto.trb.strategysearch.v1.GetParamImportancesResponse.prototype.getItemsList = function() {
2050
+ return /** @type{!Array<!proto.trb.strategysearch.v1.ParamImportance>} */ (
2051
+ jspb.Message.getRepeatedWrapperField(this, strategysearch_search_pb.ParamImportance, 1));
2052
+ };
2053
+
2054
+
2055
+ /**
2056
+ * @param {!Array<!proto.trb.strategysearch.v1.ParamImportance>} value
2057
+ * @return {!proto.trb.strategysearch.v1.GetParamImportancesResponse} returns this
2058
+ */
2059
+ proto.trb.strategysearch.v1.GetParamImportancesResponse.prototype.setItemsList = function(value) {
2060
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2061
+ };
2062
+
2063
+
2064
+ /**
2065
+ * @param {!proto.trb.strategysearch.v1.ParamImportance=} opt_value
2066
+ * @param {number=} opt_index
2067
+ * @return {!proto.trb.strategysearch.v1.ParamImportance}
2068
+ */
2069
+ proto.trb.strategysearch.v1.GetParamImportancesResponse.prototype.addItems = function(opt_value, opt_index) {
2070
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.trb.strategysearch.v1.ParamImportance, opt_index);
2071
+ };
2072
+
2073
+
2074
+ /**
2075
+ * Clears the list making it empty but non-null.
2076
+ * @return {!proto.trb.strategysearch.v1.GetParamImportancesResponse} returns this
2077
+ */
2078
+ proto.trb.strategysearch.v1.GetParamImportancesResponse.prototype.clearItemsList = function() {
2079
+ return this.setItemsList([]);
2080
+ };
2081
+
2082
+
2083
+
2084
+
2085
+
1298
2086
  if (jspb.Message.GENERATE_TO_OBJECT) {
1299
2087
  /**
1300
2088
  * Creates an object representation of this proto.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marleena/trb-proto",
3
- "version": "1.0.57",
3
+ "version": "1.0.58",
4
4
  "description": "Generated protobuf messages and gRPC-Web clients for TrB services",
5
5
  "license": "MIT",
6
6
  "repository": {