@marleena/trb-proto 1.0.56 → 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,
@@ -255,5 +341,134 @@ export class StrategySearchServiceClient {
255
341
  this.methodDescriptorCancelSearch);
256
342
  }
257
343
 
344
+ methodDescriptorCreateSearchPreset = new grpcWeb.MethodDescriptor(
345
+ '/trb.strategysearch.v1.StrategySearchService/CreateSearchPreset',
346
+ grpcWeb.MethodType.UNARY,
347
+ strategysearch_strategysearch_pb.CreateSearchPresetRequest,
348
+ strategysearch_strategysearch_pb.SearchPreset,
349
+ (request: strategysearch_strategysearch_pb.CreateSearchPresetRequest) => {
350
+ return request.serializeBinary();
351
+ },
352
+ strategysearch_strategysearch_pb.SearchPreset.deserializeBinary
353
+ );
354
+
355
+ createSearchPreset(
356
+ request: strategysearch_strategysearch_pb.CreateSearchPresetRequest,
357
+ metadata?: grpcWeb.Metadata | null): Promise<strategysearch_strategysearch_pb.SearchPreset>;
358
+
359
+ createSearchPreset(
360
+ request: strategysearch_strategysearch_pb.CreateSearchPresetRequest,
361
+ metadata: grpcWeb.Metadata | null,
362
+ callback: (err: grpcWeb.RpcError,
363
+ response: strategysearch_strategysearch_pb.SearchPreset) => void): grpcWeb.ClientReadableStream<strategysearch_strategysearch_pb.SearchPreset>;
364
+
365
+ createSearchPreset(
366
+ request: strategysearch_strategysearch_pb.CreateSearchPresetRequest,
367
+ metadata?: grpcWeb.Metadata | null,
368
+ callback?: (err: grpcWeb.RpcError,
369
+ response: strategysearch_strategysearch_pb.SearchPreset) => void) {
370
+ if (callback !== undefined) {
371
+ return this.client_.rpcCall(
372
+ this.hostname_ +
373
+ '/trb.strategysearch.v1.StrategySearchService/CreateSearchPreset',
374
+ request,
375
+ metadata || {},
376
+ this.methodDescriptorCreateSearchPreset,
377
+ callback);
378
+ }
379
+ return this.client_.unaryCall(
380
+ this.hostname_ +
381
+ '/trb.strategysearch.v1.StrategySearchService/CreateSearchPreset',
382
+ request,
383
+ metadata || {},
384
+ this.methodDescriptorCreateSearchPreset);
385
+ }
386
+
387
+ methodDescriptorListSearchPresets = new grpcWeb.MethodDescriptor(
388
+ '/trb.strategysearch.v1.StrategySearchService/ListSearchPresets',
389
+ grpcWeb.MethodType.UNARY,
390
+ strategysearch_strategysearch_pb.ListSearchPresetsRequest,
391
+ strategysearch_strategysearch_pb.ListSearchPresetsResponse,
392
+ (request: strategysearch_strategysearch_pb.ListSearchPresetsRequest) => {
393
+ return request.serializeBinary();
394
+ },
395
+ strategysearch_strategysearch_pb.ListSearchPresetsResponse.deserializeBinary
396
+ );
397
+
398
+ listSearchPresets(
399
+ request: strategysearch_strategysearch_pb.ListSearchPresetsRequest,
400
+ metadata?: grpcWeb.Metadata | null): Promise<strategysearch_strategysearch_pb.ListSearchPresetsResponse>;
401
+
402
+ listSearchPresets(
403
+ request: strategysearch_strategysearch_pb.ListSearchPresetsRequest,
404
+ metadata: grpcWeb.Metadata | null,
405
+ callback: (err: grpcWeb.RpcError,
406
+ response: strategysearch_strategysearch_pb.ListSearchPresetsResponse) => void): grpcWeb.ClientReadableStream<strategysearch_strategysearch_pb.ListSearchPresetsResponse>;
407
+
408
+ listSearchPresets(
409
+ request: strategysearch_strategysearch_pb.ListSearchPresetsRequest,
410
+ metadata?: grpcWeb.Metadata | null,
411
+ callback?: (err: grpcWeb.RpcError,
412
+ response: strategysearch_strategysearch_pb.ListSearchPresetsResponse) => void) {
413
+ if (callback !== undefined) {
414
+ return this.client_.rpcCall(
415
+ this.hostname_ +
416
+ '/trb.strategysearch.v1.StrategySearchService/ListSearchPresets',
417
+ request,
418
+ metadata || {},
419
+ this.methodDescriptorListSearchPresets,
420
+ callback);
421
+ }
422
+ return this.client_.unaryCall(
423
+ this.hostname_ +
424
+ '/trb.strategysearch.v1.StrategySearchService/ListSearchPresets',
425
+ request,
426
+ metadata || {},
427
+ this.methodDescriptorListSearchPresets);
428
+ }
429
+
430
+ methodDescriptorDeleteSearchPreset = new grpcWeb.MethodDescriptor(
431
+ '/trb.strategysearch.v1.StrategySearchService/DeleteSearchPreset',
432
+ grpcWeb.MethodType.UNARY,
433
+ strategysearch_strategysearch_pb.DeleteSearchPresetRequest,
434
+ strategysearch_strategysearch_pb.DeleteSearchPresetResponse,
435
+ (request: strategysearch_strategysearch_pb.DeleteSearchPresetRequest) => {
436
+ return request.serializeBinary();
437
+ },
438
+ strategysearch_strategysearch_pb.DeleteSearchPresetResponse.deserializeBinary
439
+ );
440
+
441
+ deleteSearchPreset(
442
+ request: strategysearch_strategysearch_pb.DeleteSearchPresetRequest,
443
+ metadata?: grpcWeb.Metadata | null): Promise<strategysearch_strategysearch_pb.DeleteSearchPresetResponse>;
444
+
445
+ deleteSearchPreset(
446
+ request: strategysearch_strategysearch_pb.DeleteSearchPresetRequest,
447
+ metadata: grpcWeb.Metadata | null,
448
+ callback: (err: grpcWeb.RpcError,
449
+ response: strategysearch_strategysearch_pb.DeleteSearchPresetResponse) => void): grpcWeb.ClientReadableStream<strategysearch_strategysearch_pb.DeleteSearchPresetResponse>;
450
+
451
+ deleteSearchPreset(
452
+ request: strategysearch_strategysearch_pb.DeleteSearchPresetRequest,
453
+ metadata?: grpcWeb.Metadata | null,
454
+ callback?: (err: grpcWeb.RpcError,
455
+ response: strategysearch_strategysearch_pb.DeleteSearchPresetResponse) => void) {
456
+ if (callback !== undefined) {
457
+ return this.client_.rpcCall(
458
+ this.hostname_ +
459
+ '/trb.strategysearch.v1.StrategySearchService/DeleteSearchPreset',
460
+ request,
461
+ metadata || {},
462
+ this.methodDescriptorDeleteSearchPreset,
463
+ callback);
464
+ }
465
+ return this.client_.unaryCall(
466
+ this.hostname_ +
467
+ '/trb.strategysearch.v1.StrategySearchService/DeleteSearchPreset',
468
+ request,
469
+ metadata || {},
470
+ this.methodDescriptorDeleteSearchPreset);
471
+ }
472
+
258
473
  }
259
474
 
@@ -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>}