@marleena/trb-proto 1.0.62 → 1.0.64
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.
- package/gen/js-ts/strategysearch/StrategysearchServiceClientPb.ts +475 -0
- package/gen/js-ts/strategysearch/backtest_pb.d.ts +283 -0
- package/gen/js-ts/strategysearch/backtest_pb.js +2321 -0
- package/gen/js-ts/strategysearch/strategy_pb.d.ts +300 -0
- package/gen/js-ts/strategysearch/strategy_pb.js +2486 -0
- package/gen/js-ts/strategysearch/strategysearch_pb.d.ts +241 -0
- package/gen/js-ts/strategysearch/strategysearch_pb.js +2008 -0
- package/package.json +1 -1
|
@@ -27,19 +27,27 @@ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/time
|
|
|
27
27
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
28
28
|
var strategysearch_spec_pb = require('../strategysearch/spec_pb.js');
|
|
29
29
|
goog.object.extend(proto, strategysearch_spec_pb);
|
|
30
|
+
var strategysearch_strategy_pb = require('../strategysearch/strategy_pb.js');
|
|
31
|
+
goog.object.extend(proto, strategysearch_strategy_pb);
|
|
30
32
|
var strategysearch_backtest_pb = require('../strategysearch/backtest_pb.js');
|
|
31
33
|
goog.object.extend(proto, strategysearch_backtest_pb);
|
|
32
34
|
var strategysearch_search_pb = require('../strategysearch/search_pb.js');
|
|
33
35
|
goog.object.extend(proto, strategysearch_search_pb);
|
|
36
|
+
goog.exportSymbol('proto.trb.strategysearch.v1.CancelBacktestRequest', null, global);
|
|
34
37
|
goog.exportSymbol('proto.trb.strategysearch.v1.CancelSearchRequest', null, global);
|
|
35
38
|
goog.exportSymbol('proto.trb.strategysearch.v1.CreateSearchPresetRequest', null, global);
|
|
36
39
|
goog.exportSymbol('proto.trb.strategysearch.v1.DeleteSearchPresetRequest', null, global);
|
|
37
40
|
goog.exportSymbol('proto.trb.strategysearch.v1.DeleteSearchPresetResponse', null, global);
|
|
41
|
+
goog.exportSymbol('proto.trb.strategysearch.v1.GetBacktestResultRequest', null, global);
|
|
42
|
+
goog.exportSymbol('proto.trb.strategysearch.v1.GetBacktestResultResponse', null, global);
|
|
43
|
+
goog.exportSymbol('proto.trb.strategysearch.v1.GetBacktestStatusRequest', null, global);
|
|
38
44
|
goog.exportSymbol('proto.trb.strategysearch.v1.GetBestTrialsRequest', null, global);
|
|
39
45
|
goog.exportSymbol('proto.trb.strategysearch.v1.GetBestTrialsResponse', null, global);
|
|
40
46
|
goog.exportSymbol('proto.trb.strategysearch.v1.GetParamImportancesRequest', null, global);
|
|
41
47
|
goog.exportSymbol('proto.trb.strategysearch.v1.GetParamImportancesResponse', null, global);
|
|
42
48
|
goog.exportSymbol('proto.trb.strategysearch.v1.GetSearchProgressRequest', null, global);
|
|
49
|
+
goog.exportSymbol('proto.trb.strategysearch.v1.ListBacktestRunsRequest', null, global);
|
|
50
|
+
goog.exportSymbol('proto.trb.strategysearch.v1.ListBacktestRunsResponse', null, global);
|
|
43
51
|
goog.exportSymbol('proto.trb.strategysearch.v1.ListSearchPresetsRequest', null, global);
|
|
44
52
|
goog.exportSymbol('proto.trb.strategysearch.v1.ListSearchPresetsResponse', null, global);
|
|
45
53
|
goog.exportSymbol('proto.trb.strategysearch.v1.ListSearchTrialsRequest', null, global);
|
|
@@ -47,8 +55,178 @@ goog.exportSymbol('proto.trb.strategysearch.v1.ListSearchTrialsResponse', null,
|
|
|
47
55
|
goog.exportSymbol('proto.trb.strategysearch.v1.ListSearchesRequest', null, global);
|
|
48
56
|
goog.exportSymbol('proto.trb.strategysearch.v1.ListSearchesResponse', null, global);
|
|
49
57
|
goog.exportSymbol('proto.trb.strategysearch.v1.SearchPreset', null, global);
|
|
58
|
+
goog.exportSymbol('proto.trb.strategysearch.v1.SubmitBacktestRequest', null, global);
|
|
59
|
+
goog.exportSymbol('proto.trb.strategysearch.v1.SubmitBacktestResponse', null, global);
|
|
50
60
|
goog.exportSymbol('proto.trb.strategysearch.v1.SubmitSearchRequest', null, global);
|
|
51
61
|
goog.exportSymbol('proto.trb.strategysearch.v1.SubmitSearchResponse', null, global);
|
|
62
|
+
/**
|
|
63
|
+
* Generated by JsPbCodeGenerator.
|
|
64
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
65
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
66
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
67
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
68
|
+
* valid.
|
|
69
|
+
* @extends {jspb.Message}
|
|
70
|
+
* @constructor
|
|
71
|
+
*/
|
|
72
|
+
proto.trb.strategysearch.v1.SubmitBacktestRequest = function(opt_data) {
|
|
73
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
74
|
+
};
|
|
75
|
+
goog.inherits(proto.trb.strategysearch.v1.SubmitBacktestRequest, jspb.Message);
|
|
76
|
+
if (goog.DEBUG && !COMPILED) {
|
|
77
|
+
/**
|
|
78
|
+
* @public
|
|
79
|
+
* @override
|
|
80
|
+
*/
|
|
81
|
+
proto.trb.strategysearch.v1.SubmitBacktestRequest.displayName = 'proto.trb.strategysearch.v1.SubmitBacktestRequest';
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Generated by JsPbCodeGenerator.
|
|
85
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
86
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
87
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
88
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
89
|
+
* valid.
|
|
90
|
+
* @extends {jspb.Message}
|
|
91
|
+
* @constructor
|
|
92
|
+
*/
|
|
93
|
+
proto.trb.strategysearch.v1.SubmitBacktestResponse = function(opt_data) {
|
|
94
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
95
|
+
};
|
|
96
|
+
goog.inherits(proto.trb.strategysearch.v1.SubmitBacktestResponse, jspb.Message);
|
|
97
|
+
if (goog.DEBUG && !COMPILED) {
|
|
98
|
+
/**
|
|
99
|
+
* @public
|
|
100
|
+
* @override
|
|
101
|
+
*/
|
|
102
|
+
proto.trb.strategysearch.v1.SubmitBacktestResponse.displayName = 'proto.trb.strategysearch.v1.SubmitBacktestResponse';
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Generated by JsPbCodeGenerator.
|
|
106
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
107
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
108
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
109
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
110
|
+
* valid.
|
|
111
|
+
* @extends {jspb.Message}
|
|
112
|
+
* @constructor
|
|
113
|
+
*/
|
|
114
|
+
proto.trb.strategysearch.v1.GetBacktestStatusRequest = function(opt_data) {
|
|
115
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
116
|
+
};
|
|
117
|
+
goog.inherits(proto.trb.strategysearch.v1.GetBacktestStatusRequest, jspb.Message);
|
|
118
|
+
if (goog.DEBUG && !COMPILED) {
|
|
119
|
+
/**
|
|
120
|
+
* @public
|
|
121
|
+
* @override
|
|
122
|
+
*/
|
|
123
|
+
proto.trb.strategysearch.v1.GetBacktestStatusRequest.displayName = 'proto.trb.strategysearch.v1.GetBacktestStatusRequest';
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Generated by JsPbCodeGenerator.
|
|
127
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
128
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
129
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
130
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
131
|
+
* valid.
|
|
132
|
+
* @extends {jspb.Message}
|
|
133
|
+
* @constructor
|
|
134
|
+
*/
|
|
135
|
+
proto.trb.strategysearch.v1.GetBacktestResultRequest = function(opt_data) {
|
|
136
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
137
|
+
};
|
|
138
|
+
goog.inherits(proto.trb.strategysearch.v1.GetBacktestResultRequest, jspb.Message);
|
|
139
|
+
if (goog.DEBUG && !COMPILED) {
|
|
140
|
+
/**
|
|
141
|
+
* @public
|
|
142
|
+
* @override
|
|
143
|
+
*/
|
|
144
|
+
proto.trb.strategysearch.v1.GetBacktestResultRequest.displayName = 'proto.trb.strategysearch.v1.GetBacktestResultRequest';
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Generated by JsPbCodeGenerator.
|
|
148
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
149
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
150
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
151
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
152
|
+
* valid.
|
|
153
|
+
* @extends {jspb.Message}
|
|
154
|
+
* @constructor
|
|
155
|
+
*/
|
|
156
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse = function(opt_data) {
|
|
157
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.strategysearch.v1.GetBacktestResultResponse.repeatedFields_, null);
|
|
158
|
+
};
|
|
159
|
+
goog.inherits(proto.trb.strategysearch.v1.GetBacktestResultResponse, jspb.Message);
|
|
160
|
+
if (goog.DEBUG && !COMPILED) {
|
|
161
|
+
/**
|
|
162
|
+
* @public
|
|
163
|
+
* @override
|
|
164
|
+
*/
|
|
165
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.displayName = 'proto.trb.strategysearch.v1.GetBacktestResultResponse';
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Generated by JsPbCodeGenerator.
|
|
169
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
170
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
171
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
172
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
173
|
+
* valid.
|
|
174
|
+
* @extends {jspb.Message}
|
|
175
|
+
* @constructor
|
|
176
|
+
*/
|
|
177
|
+
proto.trb.strategysearch.v1.ListBacktestRunsRequest = function(opt_data) {
|
|
178
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
179
|
+
};
|
|
180
|
+
goog.inherits(proto.trb.strategysearch.v1.ListBacktestRunsRequest, jspb.Message);
|
|
181
|
+
if (goog.DEBUG && !COMPILED) {
|
|
182
|
+
/**
|
|
183
|
+
* @public
|
|
184
|
+
* @override
|
|
185
|
+
*/
|
|
186
|
+
proto.trb.strategysearch.v1.ListBacktestRunsRequest.displayName = 'proto.trb.strategysearch.v1.ListBacktestRunsRequest';
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Generated by JsPbCodeGenerator.
|
|
190
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
191
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
192
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
193
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
194
|
+
* valid.
|
|
195
|
+
* @extends {jspb.Message}
|
|
196
|
+
* @constructor
|
|
197
|
+
*/
|
|
198
|
+
proto.trb.strategysearch.v1.ListBacktestRunsResponse = function(opt_data) {
|
|
199
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.strategysearch.v1.ListBacktestRunsResponse.repeatedFields_, null);
|
|
200
|
+
};
|
|
201
|
+
goog.inherits(proto.trb.strategysearch.v1.ListBacktestRunsResponse, jspb.Message);
|
|
202
|
+
if (goog.DEBUG && !COMPILED) {
|
|
203
|
+
/**
|
|
204
|
+
* @public
|
|
205
|
+
* @override
|
|
206
|
+
*/
|
|
207
|
+
proto.trb.strategysearch.v1.ListBacktestRunsResponse.displayName = 'proto.trb.strategysearch.v1.ListBacktestRunsResponse';
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Generated by JsPbCodeGenerator.
|
|
211
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
212
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
213
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
214
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
215
|
+
* valid.
|
|
216
|
+
* @extends {jspb.Message}
|
|
217
|
+
* @constructor
|
|
218
|
+
*/
|
|
219
|
+
proto.trb.strategysearch.v1.CancelBacktestRequest = function(opt_data) {
|
|
220
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
221
|
+
};
|
|
222
|
+
goog.inherits(proto.trb.strategysearch.v1.CancelBacktestRequest, jspb.Message);
|
|
223
|
+
if (goog.DEBUG && !COMPILED) {
|
|
224
|
+
/**
|
|
225
|
+
* @public
|
|
226
|
+
* @override
|
|
227
|
+
*/
|
|
228
|
+
proto.trb.strategysearch.v1.CancelBacktestRequest.displayName = 'proto.trb.strategysearch.v1.CancelBacktestRequest';
|
|
229
|
+
}
|
|
52
230
|
/**
|
|
53
231
|
* Generated by JsPbCodeGenerator.
|
|
54
232
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -428,6 +606,1836 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
428
606
|
proto.trb.strategysearch.v1.DeleteSearchPresetResponse.displayName = 'proto.trb.strategysearch.v1.DeleteSearchPresetResponse';
|
|
429
607
|
}
|
|
430
608
|
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
612
|
+
/**
|
|
613
|
+
* Creates an object representation of this proto.
|
|
614
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
615
|
+
* Optional fields that are not set will be set to undefined.
|
|
616
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
617
|
+
* For the list of reserved names please see:
|
|
618
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
619
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
620
|
+
* JSPB instance for transitional soy proto support:
|
|
621
|
+
* http://goto/soy-param-migration
|
|
622
|
+
* @return {!Object}
|
|
623
|
+
*/
|
|
624
|
+
proto.trb.strategysearch.v1.SubmitBacktestRequest.prototype.toObject = function(opt_includeInstance) {
|
|
625
|
+
return proto.trb.strategysearch.v1.SubmitBacktestRequest.toObject(opt_includeInstance, this);
|
|
626
|
+
};
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Static version of the {@see toObject} method.
|
|
631
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
632
|
+
* the JSPB instance for transitional soy proto support:
|
|
633
|
+
* http://goto/soy-param-migration
|
|
634
|
+
* @param {!proto.trb.strategysearch.v1.SubmitBacktestRequest} msg The msg instance to transform.
|
|
635
|
+
* @return {!Object}
|
|
636
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
637
|
+
*/
|
|
638
|
+
proto.trb.strategysearch.v1.SubmitBacktestRequest.toObject = function(includeInstance, msg) {
|
|
639
|
+
var f, obj = {
|
|
640
|
+
strategyId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
641
|
+
spec: (f = msg.getSpec()) && strategysearch_spec_pb.StrategySearchSpec.toObject(includeInstance, f),
|
|
642
|
+
config: (f = msg.getConfig()) && strategysearch_backtest_pb.BacktestConfig.toObject(includeInstance, f),
|
|
643
|
+
force: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
|
|
644
|
+
};
|
|
645
|
+
|
|
646
|
+
if (includeInstance) {
|
|
647
|
+
obj.$jspbMessageInstance = msg;
|
|
648
|
+
}
|
|
649
|
+
return obj;
|
|
650
|
+
};
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* Deserializes binary data (in protobuf wire format).
|
|
656
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
657
|
+
* @return {!proto.trb.strategysearch.v1.SubmitBacktestRequest}
|
|
658
|
+
*/
|
|
659
|
+
proto.trb.strategysearch.v1.SubmitBacktestRequest.deserializeBinary = function(bytes) {
|
|
660
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
661
|
+
var msg = new proto.trb.strategysearch.v1.SubmitBacktestRequest;
|
|
662
|
+
return proto.trb.strategysearch.v1.SubmitBacktestRequest.deserializeBinaryFromReader(msg, reader);
|
|
663
|
+
};
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
668
|
+
* given reader into the given message object.
|
|
669
|
+
* @param {!proto.trb.strategysearch.v1.SubmitBacktestRequest} msg The message object to deserialize into.
|
|
670
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
671
|
+
* @return {!proto.trb.strategysearch.v1.SubmitBacktestRequest}
|
|
672
|
+
*/
|
|
673
|
+
proto.trb.strategysearch.v1.SubmitBacktestRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
674
|
+
while (reader.nextField()) {
|
|
675
|
+
if (reader.isEndGroup()) {
|
|
676
|
+
break;
|
|
677
|
+
}
|
|
678
|
+
var field = reader.getFieldNumber();
|
|
679
|
+
switch (field) {
|
|
680
|
+
case 1:
|
|
681
|
+
var value = /** @type {string} */ (reader.readString());
|
|
682
|
+
msg.setStrategyId(value);
|
|
683
|
+
break;
|
|
684
|
+
case 2:
|
|
685
|
+
var value = new strategysearch_spec_pb.StrategySearchSpec;
|
|
686
|
+
reader.readMessage(value,strategysearch_spec_pb.StrategySearchSpec.deserializeBinaryFromReader);
|
|
687
|
+
msg.setSpec(value);
|
|
688
|
+
break;
|
|
689
|
+
case 3:
|
|
690
|
+
var value = new strategysearch_backtest_pb.BacktestConfig;
|
|
691
|
+
reader.readMessage(value,strategysearch_backtest_pb.BacktestConfig.deserializeBinaryFromReader);
|
|
692
|
+
msg.setConfig(value);
|
|
693
|
+
break;
|
|
694
|
+
case 4:
|
|
695
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
696
|
+
msg.setForce(value);
|
|
697
|
+
break;
|
|
698
|
+
default:
|
|
699
|
+
reader.skipField();
|
|
700
|
+
break;
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
return msg;
|
|
704
|
+
};
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
709
|
+
* @return {!Uint8Array}
|
|
710
|
+
*/
|
|
711
|
+
proto.trb.strategysearch.v1.SubmitBacktestRequest.prototype.serializeBinary = function() {
|
|
712
|
+
var writer = new jspb.BinaryWriter();
|
|
713
|
+
proto.trb.strategysearch.v1.SubmitBacktestRequest.serializeBinaryToWriter(this, writer);
|
|
714
|
+
return writer.getResultBuffer();
|
|
715
|
+
};
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
720
|
+
* format), writing to the given BinaryWriter.
|
|
721
|
+
* @param {!proto.trb.strategysearch.v1.SubmitBacktestRequest} message
|
|
722
|
+
* @param {!jspb.BinaryWriter} writer
|
|
723
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
724
|
+
*/
|
|
725
|
+
proto.trb.strategysearch.v1.SubmitBacktestRequest.serializeBinaryToWriter = function(message, writer) {
|
|
726
|
+
var f = undefined;
|
|
727
|
+
f = message.getStrategyId();
|
|
728
|
+
if (f.length > 0) {
|
|
729
|
+
writer.writeString(
|
|
730
|
+
1,
|
|
731
|
+
f
|
|
732
|
+
);
|
|
733
|
+
}
|
|
734
|
+
f = message.getSpec();
|
|
735
|
+
if (f != null) {
|
|
736
|
+
writer.writeMessage(
|
|
737
|
+
2,
|
|
738
|
+
f,
|
|
739
|
+
strategysearch_spec_pb.StrategySearchSpec.serializeBinaryToWriter
|
|
740
|
+
);
|
|
741
|
+
}
|
|
742
|
+
f = message.getConfig();
|
|
743
|
+
if (f != null) {
|
|
744
|
+
writer.writeMessage(
|
|
745
|
+
3,
|
|
746
|
+
f,
|
|
747
|
+
strategysearch_backtest_pb.BacktestConfig.serializeBinaryToWriter
|
|
748
|
+
);
|
|
749
|
+
}
|
|
750
|
+
f = message.getForce();
|
|
751
|
+
if (f) {
|
|
752
|
+
writer.writeBool(
|
|
753
|
+
4,
|
|
754
|
+
f
|
|
755
|
+
);
|
|
756
|
+
}
|
|
757
|
+
};
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* optional string strategy_id = 1;
|
|
762
|
+
* @return {string}
|
|
763
|
+
*/
|
|
764
|
+
proto.trb.strategysearch.v1.SubmitBacktestRequest.prototype.getStrategyId = function() {
|
|
765
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
766
|
+
};
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* @param {string} value
|
|
771
|
+
* @return {!proto.trb.strategysearch.v1.SubmitBacktestRequest} returns this
|
|
772
|
+
*/
|
|
773
|
+
proto.trb.strategysearch.v1.SubmitBacktestRequest.prototype.setStrategyId = function(value) {
|
|
774
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
775
|
+
};
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* optional StrategySearchSpec spec = 2;
|
|
780
|
+
* @return {?proto.trb.strategysearch.v1.StrategySearchSpec}
|
|
781
|
+
*/
|
|
782
|
+
proto.trb.strategysearch.v1.SubmitBacktestRequest.prototype.getSpec = function() {
|
|
783
|
+
return /** @type{?proto.trb.strategysearch.v1.StrategySearchSpec} */ (
|
|
784
|
+
jspb.Message.getWrapperField(this, strategysearch_spec_pb.StrategySearchSpec, 2));
|
|
785
|
+
};
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* @param {?proto.trb.strategysearch.v1.StrategySearchSpec|undefined} value
|
|
790
|
+
* @return {!proto.trb.strategysearch.v1.SubmitBacktestRequest} returns this
|
|
791
|
+
*/
|
|
792
|
+
proto.trb.strategysearch.v1.SubmitBacktestRequest.prototype.setSpec = function(value) {
|
|
793
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
794
|
+
};
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* Clears the message field making it undefined.
|
|
799
|
+
* @return {!proto.trb.strategysearch.v1.SubmitBacktestRequest} returns this
|
|
800
|
+
*/
|
|
801
|
+
proto.trb.strategysearch.v1.SubmitBacktestRequest.prototype.clearSpec = function() {
|
|
802
|
+
return this.setSpec(undefined);
|
|
803
|
+
};
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* Returns whether this field is set.
|
|
808
|
+
* @return {boolean}
|
|
809
|
+
*/
|
|
810
|
+
proto.trb.strategysearch.v1.SubmitBacktestRequest.prototype.hasSpec = function() {
|
|
811
|
+
return jspb.Message.getField(this, 2) != null;
|
|
812
|
+
};
|
|
813
|
+
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* optional BacktestConfig config = 3;
|
|
817
|
+
* @return {?proto.trb.strategysearch.v1.BacktestConfig}
|
|
818
|
+
*/
|
|
819
|
+
proto.trb.strategysearch.v1.SubmitBacktestRequest.prototype.getConfig = function() {
|
|
820
|
+
return /** @type{?proto.trb.strategysearch.v1.BacktestConfig} */ (
|
|
821
|
+
jspb.Message.getWrapperField(this, strategysearch_backtest_pb.BacktestConfig, 3));
|
|
822
|
+
};
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* @param {?proto.trb.strategysearch.v1.BacktestConfig|undefined} value
|
|
827
|
+
* @return {!proto.trb.strategysearch.v1.SubmitBacktestRequest} returns this
|
|
828
|
+
*/
|
|
829
|
+
proto.trb.strategysearch.v1.SubmitBacktestRequest.prototype.setConfig = function(value) {
|
|
830
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
831
|
+
};
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
/**
|
|
835
|
+
* Clears the message field making it undefined.
|
|
836
|
+
* @return {!proto.trb.strategysearch.v1.SubmitBacktestRequest} returns this
|
|
837
|
+
*/
|
|
838
|
+
proto.trb.strategysearch.v1.SubmitBacktestRequest.prototype.clearConfig = function() {
|
|
839
|
+
return this.setConfig(undefined);
|
|
840
|
+
};
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
/**
|
|
844
|
+
* Returns whether this field is set.
|
|
845
|
+
* @return {boolean}
|
|
846
|
+
*/
|
|
847
|
+
proto.trb.strategysearch.v1.SubmitBacktestRequest.prototype.hasConfig = function() {
|
|
848
|
+
return jspb.Message.getField(this, 3) != null;
|
|
849
|
+
};
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* optional bool force = 4;
|
|
854
|
+
* @return {boolean}
|
|
855
|
+
*/
|
|
856
|
+
proto.trb.strategysearch.v1.SubmitBacktestRequest.prototype.getForce = function() {
|
|
857
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
|
858
|
+
};
|
|
859
|
+
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* @param {boolean} value
|
|
863
|
+
* @return {!proto.trb.strategysearch.v1.SubmitBacktestRequest} returns this
|
|
864
|
+
*/
|
|
865
|
+
proto.trb.strategysearch.v1.SubmitBacktestRequest.prototype.setForce = function(value) {
|
|
866
|
+
return jspb.Message.setProto3BooleanField(this, 4, value);
|
|
867
|
+
};
|
|
868
|
+
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
874
|
+
/**
|
|
875
|
+
* Creates an object representation of this proto.
|
|
876
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
877
|
+
* Optional fields that are not set will be set to undefined.
|
|
878
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
879
|
+
* For the list of reserved names please see:
|
|
880
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
881
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
882
|
+
* JSPB instance for transitional soy proto support:
|
|
883
|
+
* http://goto/soy-param-migration
|
|
884
|
+
* @return {!Object}
|
|
885
|
+
*/
|
|
886
|
+
proto.trb.strategysearch.v1.SubmitBacktestResponse.prototype.toObject = function(opt_includeInstance) {
|
|
887
|
+
return proto.trb.strategysearch.v1.SubmitBacktestResponse.toObject(opt_includeInstance, this);
|
|
888
|
+
};
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* Static version of the {@see toObject} method.
|
|
893
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
894
|
+
* the JSPB instance for transitional soy proto support:
|
|
895
|
+
* http://goto/soy-param-migration
|
|
896
|
+
* @param {!proto.trb.strategysearch.v1.SubmitBacktestResponse} msg The msg instance to transform.
|
|
897
|
+
* @return {!Object}
|
|
898
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
899
|
+
*/
|
|
900
|
+
proto.trb.strategysearch.v1.SubmitBacktestResponse.toObject = function(includeInstance, msg) {
|
|
901
|
+
var f, obj = {
|
|
902
|
+
runId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
903
|
+
status: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
904
|
+
reused: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
|
|
905
|
+
};
|
|
906
|
+
|
|
907
|
+
if (includeInstance) {
|
|
908
|
+
obj.$jspbMessageInstance = msg;
|
|
909
|
+
}
|
|
910
|
+
return obj;
|
|
911
|
+
};
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
/**
|
|
916
|
+
* Deserializes binary data (in protobuf wire format).
|
|
917
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
918
|
+
* @return {!proto.trb.strategysearch.v1.SubmitBacktestResponse}
|
|
919
|
+
*/
|
|
920
|
+
proto.trb.strategysearch.v1.SubmitBacktestResponse.deserializeBinary = function(bytes) {
|
|
921
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
922
|
+
var msg = new proto.trb.strategysearch.v1.SubmitBacktestResponse;
|
|
923
|
+
return proto.trb.strategysearch.v1.SubmitBacktestResponse.deserializeBinaryFromReader(msg, reader);
|
|
924
|
+
};
|
|
925
|
+
|
|
926
|
+
|
|
927
|
+
/**
|
|
928
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
929
|
+
* given reader into the given message object.
|
|
930
|
+
* @param {!proto.trb.strategysearch.v1.SubmitBacktestResponse} msg The message object to deserialize into.
|
|
931
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
932
|
+
* @return {!proto.trb.strategysearch.v1.SubmitBacktestResponse}
|
|
933
|
+
*/
|
|
934
|
+
proto.trb.strategysearch.v1.SubmitBacktestResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
935
|
+
while (reader.nextField()) {
|
|
936
|
+
if (reader.isEndGroup()) {
|
|
937
|
+
break;
|
|
938
|
+
}
|
|
939
|
+
var field = reader.getFieldNumber();
|
|
940
|
+
switch (field) {
|
|
941
|
+
case 1:
|
|
942
|
+
var value = /** @type {string} */ (reader.readString());
|
|
943
|
+
msg.setRunId(value);
|
|
944
|
+
break;
|
|
945
|
+
case 2:
|
|
946
|
+
var value = /** @type {!proto.trb.strategysearch.v1.RunStatus} */ (reader.readEnum());
|
|
947
|
+
msg.setStatus(value);
|
|
948
|
+
break;
|
|
949
|
+
case 3:
|
|
950
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
951
|
+
msg.setReused(value);
|
|
952
|
+
break;
|
|
953
|
+
default:
|
|
954
|
+
reader.skipField();
|
|
955
|
+
break;
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
return msg;
|
|
959
|
+
};
|
|
960
|
+
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
964
|
+
* @return {!Uint8Array}
|
|
965
|
+
*/
|
|
966
|
+
proto.trb.strategysearch.v1.SubmitBacktestResponse.prototype.serializeBinary = function() {
|
|
967
|
+
var writer = new jspb.BinaryWriter();
|
|
968
|
+
proto.trb.strategysearch.v1.SubmitBacktestResponse.serializeBinaryToWriter(this, writer);
|
|
969
|
+
return writer.getResultBuffer();
|
|
970
|
+
};
|
|
971
|
+
|
|
972
|
+
|
|
973
|
+
/**
|
|
974
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
975
|
+
* format), writing to the given BinaryWriter.
|
|
976
|
+
* @param {!proto.trb.strategysearch.v1.SubmitBacktestResponse} message
|
|
977
|
+
* @param {!jspb.BinaryWriter} writer
|
|
978
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
979
|
+
*/
|
|
980
|
+
proto.trb.strategysearch.v1.SubmitBacktestResponse.serializeBinaryToWriter = function(message, writer) {
|
|
981
|
+
var f = undefined;
|
|
982
|
+
f = message.getRunId();
|
|
983
|
+
if (f.length > 0) {
|
|
984
|
+
writer.writeString(
|
|
985
|
+
1,
|
|
986
|
+
f
|
|
987
|
+
);
|
|
988
|
+
}
|
|
989
|
+
f = message.getStatus();
|
|
990
|
+
if (f !== 0.0) {
|
|
991
|
+
writer.writeEnum(
|
|
992
|
+
2,
|
|
993
|
+
f
|
|
994
|
+
);
|
|
995
|
+
}
|
|
996
|
+
f = message.getReused();
|
|
997
|
+
if (f) {
|
|
998
|
+
writer.writeBool(
|
|
999
|
+
3,
|
|
1000
|
+
f
|
|
1001
|
+
);
|
|
1002
|
+
}
|
|
1003
|
+
};
|
|
1004
|
+
|
|
1005
|
+
|
|
1006
|
+
/**
|
|
1007
|
+
* optional string run_id = 1;
|
|
1008
|
+
* @return {string}
|
|
1009
|
+
*/
|
|
1010
|
+
proto.trb.strategysearch.v1.SubmitBacktestResponse.prototype.getRunId = function() {
|
|
1011
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1012
|
+
};
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* @param {string} value
|
|
1017
|
+
* @return {!proto.trb.strategysearch.v1.SubmitBacktestResponse} returns this
|
|
1018
|
+
*/
|
|
1019
|
+
proto.trb.strategysearch.v1.SubmitBacktestResponse.prototype.setRunId = function(value) {
|
|
1020
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1021
|
+
};
|
|
1022
|
+
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* optional RunStatus status = 2;
|
|
1026
|
+
* @return {!proto.trb.strategysearch.v1.RunStatus}
|
|
1027
|
+
*/
|
|
1028
|
+
proto.trb.strategysearch.v1.SubmitBacktestResponse.prototype.getStatus = function() {
|
|
1029
|
+
return /** @type {!proto.trb.strategysearch.v1.RunStatus} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1030
|
+
};
|
|
1031
|
+
|
|
1032
|
+
|
|
1033
|
+
/**
|
|
1034
|
+
* @param {!proto.trb.strategysearch.v1.RunStatus} value
|
|
1035
|
+
* @return {!proto.trb.strategysearch.v1.SubmitBacktestResponse} returns this
|
|
1036
|
+
*/
|
|
1037
|
+
proto.trb.strategysearch.v1.SubmitBacktestResponse.prototype.setStatus = function(value) {
|
|
1038
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
1039
|
+
};
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* optional bool reused = 3;
|
|
1044
|
+
* @return {boolean}
|
|
1045
|
+
*/
|
|
1046
|
+
proto.trb.strategysearch.v1.SubmitBacktestResponse.prototype.getReused = function() {
|
|
1047
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
|
1048
|
+
};
|
|
1049
|
+
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* @param {boolean} value
|
|
1053
|
+
* @return {!proto.trb.strategysearch.v1.SubmitBacktestResponse} returns this
|
|
1054
|
+
*/
|
|
1055
|
+
proto.trb.strategysearch.v1.SubmitBacktestResponse.prototype.setReused = function(value) {
|
|
1056
|
+
return jspb.Message.setProto3BooleanField(this, 3, value);
|
|
1057
|
+
};
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
|
|
1062
|
+
|
|
1063
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1064
|
+
/**
|
|
1065
|
+
* Creates an object representation of this proto.
|
|
1066
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1067
|
+
* Optional fields that are not set will be set to undefined.
|
|
1068
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1069
|
+
* For the list of reserved names please see:
|
|
1070
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1071
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1072
|
+
* JSPB instance for transitional soy proto support:
|
|
1073
|
+
* http://goto/soy-param-migration
|
|
1074
|
+
* @return {!Object}
|
|
1075
|
+
*/
|
|
1076
|
+
proto.trb.strategysearch.v1.GetBacktestStatusRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1077
|
+
return proto.trb.strategysearch.v1.GetBacktestStatusRequest.toObject(opt_includeInstance, this);
|
|
1078
|
+
};
|
|
1079
|
+
|
|
1080
|
+
|
|
1081
|
+
/**
|
|
1082
|
+
* Static version of the {@see toObject} method.
|
|
1083
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1084
|
+
* the JSPB instance for transitional soy proto support:
|
|
1085
|
+
* http://goto/soy-param-migration
|
|
1086
|
+
* @param {!proto.trb.strategysearch.v1.GetBacktestStatusRequest} msg The msg instance to transform.
|
|
1087
|
+
* @return {!Object}
|
|
1088
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1089
|
+
*/
|
|
1090
|
+
proto.trb.strategysearch.v1.GetBacktestStatusRequest.toObject = function(includeInstance, msg) {
|
|
1091
|
+
var f, obj = {
|
|
1092
|
+
runId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1093
|
+
};
|
|
1094
|
+
|
|
1095
|
+
if (includeInstance) {
|
|
1096
|
+
obj.$jspbMessageInstance = msg;
|
|
1097
|
+
}
|
|
1098
|
+
return obj;
|
|
1099
|
+
};
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1105
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1106
|
+
* @return {!proto.trb.strategysearch.v1.GetBacktestStatusRequest}
|
|
1107
|
+
*/
|
|
1108
|
+
proto.trb.strategysearch.v1.GetBacktestStatusRequest.deserializeBinary = function(bytes) {
|
|
1109
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1110
|
+
var msg = new proto.trb.strategysearch.v1.GetBacktestStatusRequest;
|
|
1111
|
+
return proto.trb.strategysearch.v1.GetBacktestStatusRequest.deserializeBinaryFromReader(msg, reader);
|
|
1112
|
+
};
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
/**
|
|
1116
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1117
|
+
* given reader into the given message object.
|
|
1118
|
+
* @param {!proto.trb.strategysearch.v1.GetBacktestStatusRequest} msg The message object to deserialize into.
|
|
1119
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1120
|
+
* @return {!proto.trb.strategysearch.v1.GetBacktestStatusRequest}
|
|
1121
|
+
*/
|
|
1122
|
+
proto.trb.strategysearch.v1.GetBacktestStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1123
|
+
while (reader.nextField()) {
|
|
1124
|
+
if (reader.isEndGroup()) {
|
|
1125
|
+
break;
|
|
1126
|
+
}
|
|
1127
|
+
var field = reader.getFieldNumber();
|
|
1128
|
+
switch (field) {
|
|
1129
|
+
case 1:
|
|
1130
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1131
|
+
msg.setRunId(value);
|
|
1132
|
+
break;
|
|
1133
|
+
default:
|
|
1134
|
+
reader.skipField();
|
|
1135
|
+
break;
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
return msg;
|
|
1139
|
+
};
|
|
1140
|
+
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1144
|
+
* @return {!Uint8Array}
|
|
1145
|
+
*/
|
|
1146
|
+
proto.trb.strategysearch.v1.GetBacktestStatusRequest.prototype.serializeBinary = function() {
|
|
1147
|
+
var writer = new jspb.BinaryWriter();
|
|
1148
|
+
proto.trb.strategysearch.v1.GetBacktestStatusRequest.serializeBinaryToWriter(this, writer);
|
|
1149
|
+
return writer.getResultBuffer();
|
|
1150
|
+
};
|
|
1151
|
+
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1155
|
+
* format), writing to the given BinaryWriter.
|
|
1156
|
+
* @param {!proto.trb.strategysearch.v1.GetBacktestStatusRequest} message
|
|
1157
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1158
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1159
|
+
*/
|
|
1160
|
+
proto.trb.strategysearch.v1.GetBacktestStatusRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1161
|
+
var f = undefined;
|
|
1162
|
+
f = message.getRunId();
|
|
1163
|
+
if (f.length > 0) {
|
|
1164
|
+
writer.writeString(
|
|
1165
|
+
1,
|
|
1166
|
+
f
|
|
1167
|
+
);
|
|
1168
|
+
}
|
|
1169
|
+
};
|
|
1170
|
+
|
|
1171
|
+
|
|
1172
|
+
/**
|
|
1173
|
+
* optional string run_id = 1;
|
|
1174
|
+
* @return {string}
|
|
1175
|
+
*/
|
|
1176
|
+
proto.trb.strategysearch.v1.GetBacktestStatusRequest.prototype.getRunId = function() {
|
|
1177
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1178
|
+
};
|
|
1179
|
+
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* @param {string} value
|
|
1183
|
+
* @return {!proto.trb.strategysearch.v1.GetBacktestStatusRequest} returns this
|
|
1184
|
+
*/
|
|
1185
|
+
proto.trb.strategysearch.v1.GetBacktestStatusRequest.prototype.setRunId = function(value) {
|
|
1186
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1187
|
+
};
|
|
1188
|
+
|
|
1189
|
+
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
|
|
1193
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1194
|
+
/**
|
|
1195
|
+
* Creates an object representation of this proto.
|
|
1196
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1197
|
+
* Optional fields that are not set will be set to undefined.
|
|
1198
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1199
|
+
* For the list of reserved names please see:
|
|
1200
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1201
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1202
|
+
* JSPB instance for transitional soy proto support:
|
|
1203
|
+
* http://goto/soy-param-migration
|
|
1204
|
+
* @return {!Object}
|
|
1205
|
+
*/
|
|
1206
|
+
proto.trb.strategysearch.v1.GetBacktestResultRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1207
|
+
return proto.trb.strategysearch.v1.GetBacktestResultRequest.toObject(opt_includeInstance, this);
|
|
1208
|
+
};
|
|
1209
|
+
|
|
1210
|
+
|
|
1211
|
+
/**
|
|
1212
|
+
* Static version of the {@see toObject} method.
|
|
1213
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1214
|
+
* the JSPB instance for transitional soy proto support:
|
|
1215
|
+
* http://goto/soy-param-migration
|
|
1216
|
+
* @param {!proto.trb.strategysearch.v1.GetBacktestResultRequest} msg The msg instance to transform.
|
|
1217
|
+
* @return {!Object}
|
|
1218
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1219
|
+
*/
|
|
1220
|
+
proto.trb.strategysearch.v1.GetBacktestResultRequest.toObject = function(includeInstance, msg) {
|
|
1221
|
+
var f, obj = {
|
|
1222
|
+
runId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1223
|
+
includeEquity: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
1224
|
+
includeTrades: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
|
1225
|
+
equityMaxPoints: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
1226
|
+
includeIndicators: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
|
|
1227
|
+
};
|
|
1228
|
+
|
|
1229
|
+
if (includeInstance) {
|
|
1230
|
+
obj.$jspbMessageInstance = msg;
|
|
1231
|
+
}
|
|
1232
|
+
return obj;
|
|
1233
|
+
};
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
|
|
1237
|
+
/**
|
|
1238
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1239
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1240
|
+
* @return {!proto.trb.strategysearch.v1.GetBacktestResultRequest}
|
|
1241
|
+
*/
|
|
1242
|
+
proto.trb.strategysearch.v1.GetBacktestResultRequest.deserializeBinary = function(bytes) {
|
|
1243
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1244
|
+
var msg = new proto.trb.strategysearch.v1.GetBacktestResultRequest;
|
|
1245
|
+
return proto.trb.strategysearch.v1.GetBacktestResultRequest.deserializeBinaryFromReader(msg, reader);
|
|
1246
|
+
};
|
|
1247
|
+
|
|
1248
|
+
|
|
1249
|
+
/**
|
|
1250
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1251
|
+
* given reader into the given message object.
|
|
1252
|
+
* @param {!proto.trb.strategysearch.v1.GetBacktestResultRequest} msg The message object to deserialize into.
|
|
1253
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1254
|
+
* @return {!proto.trb.strategysearch.v1.GetBacktestResultRequest}
|
|
1255
|
+
*/
|
|
1256
|
+
proto.trb.strategysearch.v1.GetBacktestResultRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1257
|
+
while (reader.nextField()) {
|
|
1258
|
+
if (reader.isEndGroup()) {
|
|
1259
|
+
break;
|
|
1260
|
+
}
|
|
1261
|
+
var field = reader.getFieldNumber();
|
|
1262
|
+
switch (field) {
|
|
1263
|
+
case 1:
|
|
1264
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1265
|
+
msg.setRunId(value);
|
|
1266
|
+
break;
|
|
1267
|
+
case 2:
|
|
1268
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1269
|
+
msg.setIncludeEquity(value);
|
|
1270
|
+
break;
|
|
1271
|
+
case 3:
|
|
1272
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1273
|
+
msg.setIncludeTrades(value);
|
|
1274
|
+
break;
|
|
1275
|
+
case 4:
|
|
1276
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1277
|
+
msg.setEquityMaxPoints(value);
|
|
1278
|
+
break;
|
|
1279
|
+
case 5:
|
|
1280
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1281
|
+
msg.setIncludeIndicators(value);
|
|
1282
|
+
break;
|
|
1283
|
+
default:
|
|
1284
|
+
reader.skipField();
|
|
1285
|
+
break;
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
return msg;
|
|
1289
|
+
};
|
|
1290
|
+
|
|
1291
|
+
|
|
1292
|
+
/**
|
|
1293
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1294
|
+
* @return {!Uint8Array}
|
|
1295
|
+
*/
|
|
1296
|
+
proto.trb.strategysearch.v1.GetBacktestResultRequest.prototype.serializeBinary = function() {
|
|
1297
|
+
var writer = new jspb.BinaryWriter();
|
|
1298
|
+
proto.trb.strategysearch.v1.GetBacktestResultRequest.serializeBinaryToWriter(this, writer);
|
|
1299
|
+
return writer.getResultBuffer();
|
|
1300
|
+
};
|
|
1301
|
+
|
|
1302
|
+
|
|
1303
|
+
/**
|
|
1304
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1305
|
+
* format), writing to the given BinaryWriter.
|
|
1306
|
+
* @param {!proto.trb.strategysearch.v1.GetBacktestResultRequest} message
|
|
1307
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1308
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1309
|
+
*/
|
|
1310
|
+
proto.trb.strategysearch.v1.GetBacktestResultRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1311
|
+
var f = undefined;
|
|
1312
|
+
f = message.getRunId();
|
|
1313
|
+
if (f.length > 0) {
|
|
1314
|
+
writer.writeString(
|
|
1315
|
+
1,
|
|
1316
|
+
f
|
|
1317
|
+
);
|
|
1318
|
+
}
|
|
1319
|
+
f = message.getIncludeEquity();
|
|
1320
|
+
if (f) {
|
|
1321
|
+
writer.writeBool(
|
|
1322
|
+
2,
|
|
1323
|
+
f
|
|
1324
|
+
);
|
|
1325
|
+
}
|
|
1326
|
+
f = message.getIncludeTrades();
|
|
1327
|
+
if (f) {
|
|
1328
|
+
writer.writeBool(
|
|
1329
|
+
3,
|
|
1330
|
+
f
|
|
1331
|
+
);
|
|
1332
|
+
}
|
|
1333
|
+
f = message.getEquityMaxPoints();
|
|
1334
|
+
if (f !== 0) {
|
|
1335
|
+
writer.writeInt32(
|
|
1336
|
+
4,
|
|
1337
|
+
f
|
|
1338
|
+
);
|
|
1339
|
+
}
|
|
1340
|
+
f = message.getIncludeIndicators();
|
|
1341
|
+
if (f) {
|
|
1342
|
+
writer.writeBool(
|
|
1343
|
+
5,
|
|
1344
|
+
f
|
|
1345
|
+
);
|
|
1346
|
+
}
|
|
1347
|
+
};
|
|
1348
|
+
|
|
1349
|
+
|
|
1350
|
+
/**
|
|
1351
|
+
* optional string run_id = 1;
|
|
1352
|
+
* @return {string}
|
|
1353
|
+
*/
|
|
1354
|
+
proto.trb.strategysearch.v1.GetBacktestResultRequest.prototype.getRunId = function() {
|
|
1355
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1356
|
+
};
|
|
1357
|
+
|
|
1358
|
+
|
|
1359
|
+
/**
|
|
1360
|
+
* @param {string} value
|
|
1361
|
+
* @return {!proto.trb.strategysearch.v1.GetBacktestResultRequest} returns this
|
|
1362
|
+
*/
|
|
1363
|
+
proto.trb.strategysearch.v1.GetBacktestResultRequest.prototype.setRunId = function(value) {
|
|
1364
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1365
|
+
};
|
|
1366
|
+
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* optional bool include_equity = 2;
|
|
1370
|
+
* @return {boolean}
|
|
1371
|
+
*/
|
|
1372
|
+
proto.trb.strategysearch.v1.GetBacktestResultRequest.prototype.getIncludeEquity = function() {
|
|
1373
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
1374
|
+
};
|
|
1375
|
+
|
|
1376
|
+
|
|
1377
|
+
/**
|
|
1378
|
+
* @param {boolean} value
|
|
1379
|
+
* @return {!proto.trb.strategysearch.v1.GetBacktestResultRequest} returns this
|
|
1380
|
+
*/
|
|
1381
|
+
proto.trb.strategysearch.v1.GetBacktestResultRequest.prototype.setIncludeEquity = function(value) {
|
|
1382
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
1383
|
+
};
|
|
1384
|
+
|
|
1385
|
+
|
|
1386
|
+
/**
|
|
1387
|
+
* optional bool include_trades = 3;
|
|
1388
|
+
* @return {boolean}
|
|
1389
|
+
*/
|
|
1390
|
+
proto.trb.strategysearch.v1.GetBacktestResultRequest.prototype.getIncludeTrades = function() {
|
|
1391
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
|
1392
|
+
};
|
|
1393
|
+
|
|
1394
|
+
|
|
1395
|
+
/**
|
|
1396
|
+
* @param {boolean} value
|
|
1397
|
+
* @return {!proto.trb.strategysearch.v1.GetBacktestResultRequest} returns this
|
|
1398
|
+
*/
|
|
1399
|
+
proto.trb.strategysearch.v1.GetBacktestResultRequest.prototype.setIncludeTrades = function(value) {
|
|
1400
|
+
return jspb.Message.setProto3BooleanField(this, 3, value);
|
|
1401
|
+
};
|
|
1402
|
+
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* optional int32 equity_max_points = 4;
|
|
1406
|
+
* @return {number}
|
|
1407
|
+
*/
|
|
1408
|
+
proto.trb.strategysearch.v1.GetBacktestResultRequest.prototype.getEquityMaxPoints = function() {
|
|
1409
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
1410
|
+
};
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
/**
|
|
1414
|
+
* @param {number} value
|
|
1415
|
+
* @return {!proto.trb.strategysearch.v1.GetBacktestResultRequest} returns this
|
|
1416
|
+
*/
|
|
1417
|
+
proto.trb.strategysearch.v1.GetBacktestResultRequest.prototype.setEquityMaxPoints = function(value) {
|
|
1418
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
1419
|
+
};
|
|
1420
|
+
|
|
1421
|
+
|
|
1422
|
+
/**
|
|
1423
|
+
* optional bool include_indicators = 5;
|
|
1424
|
+
* @return {boolean}
|
|
1425
|
+
*/
|
|
1426
|
+
proto.trb.strategysearch.v1.GetBacktestResultRequest.prototype.getIncludeIndicators = function() {
|
|
1427
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
|
|
1428
|
+
};
|
|
1429
|
+
|
|
1430
|
+
|
|
1431
|
+
/**
|
|
1432
|
+
* @param {boolean} value
|
|
1433
|
+
* @return {!proto.trb.strategysearch.v1.GetBacktestResultRequest} returns this
|
|
1434
|
+
*/
|
|
1435
|
+
proto.trb.strategysearch.v1.GetBacktestResultRequest.prototype.setIncludeIndicators = function(value) {
|
|
1436
|
+
return jspb.Message.setProto3BooleanField(this, 5, value);
|
|
1437
|
+
};
|
|
1438
|
+
|
|
1439
|
+
|
|
1440
|
+
|
|
1441
|
+
/**
|
|
1442
|
+
* List of repeated fields within this message type.
|
|
1443
|
+
* @private {!Array<number>}
|
|
1444
|
+
* @const
|
|
1445
|
+
*/
|
|
1446
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.repeatedFields_ = [3,4,5];
|
|
1447
|
+
|
|
1448
|
+
|
|
1449
|
+
|
|
1450
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1451
|
+
/**
|
|
1452
|
+
* Creates an object representation of this proto.
|
|
1453
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1454
|
+
* Optional fields that are not set will be set to undefined.
|
|
1455
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1456
|
+
* For the list of reserved names please see:
|
|
1457
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1458
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1459
|
+
* JSPB instance for transitional soy proto support:
|
|
1460
|
+
* http://goto/soy-param-migration
|
|
1461
|
+
* @return {!Object}
|
|
1462
|
+
*/
|
|
1463
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1464
|
+
return proto.trb.strategysearch.v1.GetBacktestResultResponse.toObject(opt_includeInstance, this);
|
|
1465
|
+
};
|
|
1466
|
+
|
|
1467
|
+
|
|
1468
|
+
/**
|
|
1469
|
+
* Static version of the {@see toObject} method.
|
|
1470
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1471
|
+
* the JSPB instance for transitional soy proto support:
|
|
1472
|
+
* http://goto/soy-param-migration
|
|
1473
|
+
* @param {!proto.trb.strategysearch.v1.GetBacktestResultResponse} msg The msg instance to transform.
|
|
1474
|
+
* @return {!Object}
|
|
1475
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1476
|
+
*/
|
|
1477
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.toObject = function(includeInstance, msg) {
|
|
1478
|
+
var f, obj = {
|
|
1479
|
+
run: (f = msg.getRun()) && strategysearch_backtest_pb.BacktestRun.toObject(includeInstance, f),
|
|
1480
|
+
metrics: (f = msg.getMetrics()) && strategysearch_backtest_pb.BacktestMetrics.toObject(includeInstance, f),
|
|
1481
|
+
equityList: jspb.Message.toObjectList(msg.getEquityList(),
|
|
1482
|
+
strategysearch_backtest_pb.EquityPoint.toObject, includeInstance),
|
|
1483
|
+
tradesList: jspb.Message.toObjectList(msg.getTradesList(),
|
|
1484
|
+
strategysearch_backtest_pb.TradeRecord.toObject, includeInstance),
|
|
1485
|
+
indicatorsList: jspb.Message.toObjectList(msg.getIndicatorsList(),
|
|
1486
|
+
strategysearch_backtest_pb.BacktestIndicatorSeries.toObject, includeInstance)
|
|
1487
|
+
};
|
|
1488
|
+
|
|
1489
|
+
if (includeInstance) {
|
|
1490
|
+
obj.$jspbMessageInstance = msg;
|
|
1491
|
+
}
|
|
1492
|
+
return obj;
|
|
1493
|
+
};
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
|
|
1497
|
+
/**
|
|
1498
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1499
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1500
|
+
* @return {!proto.trb.strategysearch.v1.GetBacktestResultResponse}
|
|
1501
|
+
*/
|
|
1502
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.deserializeBinary = function(bytes) {
|
|
1503
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1504
|
+
var msg = new proto.trb.strategysearch.v1.GetBacktestResultResponse;
|
|
1505
|
+
return proto.trb.strategysearch.v1.GetBacktestResultResponse.deserializeBinaryFromReader(msg, reader);
|
|
1506
|
+
};
|
|
1507
|
+
|
|
1508
|
+
|
|
1509
|
+
/**
|
|
1510
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1511
|
+
* given reader into the given message object.
|
|
1512
|
+
* @param {!proto.trb.strategysearch.v1.GetBacktestResultResponse} msg The message object to deserialize into.
|
|
1513
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1514
|
+
* @return {!proto.trb.strategysearch.v1.GetBacktestResultResponse}
|
|
1515
|
+
*/
|
|
1516
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1517
|
+
while (reader.nextField()) {
|
|
1518
|
+
if (reader.isEndGroup()) {
|
|
1519
|
+
break;
|
|
1520
|
+
}
|
|
1521
|
+
var field = reader.getFieldNumber();
|
|
1522
|
+
switch (field) {
|
|
1523
|
+
case 1:
|
|
1524
|
+
var value = new strategysearch_backtest_pb.BacktestRun;
|
|
1525
|
+
reader.readMessage(value,strategysearch_backtest_pb.BacktestRun.deserializeBinaryFromReader);
|
|
1526
|
+
msg.setRun(value);
|
|
1527
|
+
break;
|
|
1528
|
+
case 2:
|
|
1529
|
+
var value = new strategysearch_backtest_pb.BacktestMetrics;
|
|
1530
|
+
reader.readMessage(value,strategysearch_backtest_pb.BacktestMetrics.deserializeBinaryFromReader);
|
|
1531
|
+
msg.setMetrics(value);
|
|
1532
|
+
break;
|
|
1533
|
+
case 3:
|
|
1534
|
+
var value = new strategysearch_backtest_pb.EquityPoint;
|
|
1535
|
+
reader.readMessage(value,strategysearch_backtest_pb.EquityPoint.deserializeBinaryFromReader);
|
|
1536
|
+
msg.addEquity(value);
|
|
1537
|
+
break;
|
|
1538
|
+
case 4:
|
|
1539
|
+
var value = new strategysearch_backtest_pb.TradeRecord;
|
|
1540
|
+
reader.readMessage(value,strategysearch_backtest_pb.TradeRecord.deserializeBinaryFromReader);
|
|
1541
|
+
msg.addTrades(value);
|
|
1542
|
+
break;
|
|
1543
|
+
case 5:
|
|
1544
|
+
var value = new strategysearch_backtest_pb.BacktestIndicatorSeries;
|
|
1545
|
+
reader.readMessage(value,strategysearch_backtest_pb.BacktestIndicatorSeries.deserializeBinaryFromReader);
|
|
1546
|
+
msg.addIndicators(value);
|
|
1547
|
+
break;
|
|
1548
|
+
default:
|
|
1549
|
+
reader.skipField();
|
|
1550
|
+
break;
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
return msg;
|
|
1554
|
+
};
|
|
1555
|
+
|
|
1556
|
+
|
|
1557
|
+
/**
|
|
1558
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1559
|
+
* @return {!Uint8Array}
|
|
1560
|
+
*/
|
|
1561
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.prototype.serializeBinary = function() {
|
|
1562
|
+
var writer = new jspb.BinaryWriter();
|
|
1563
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.serializeBinaryToWriter(this, writer);
|
|
1564
|
+
return writer.getResultBuffer();
|
|
1565
|
+
};
|
|
1566
|
+
|
|
1567
|
+
|
|
1568
|
+
/**
|
|
1569
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1570
|
+
* format), writing to the given BinaryWriter.
|
|
1571
|
+
* @param {!proto.trb.strategysearch.v1.GetBacktestResultResponse} message
|
|
1572
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1573
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1574
|
+
*/
|
|
1575
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1576
|
+
var f = undefined;
|
|
1577
|
+
f = message.getRun();
|
|
1578
|
+
if (f != null) {
|
|
1579
|
+
writer.writeMessage(
|
|
1580
|
+
1,
|
|
1581
|
+
f,
|
|
1582
|
+
strategysearch_backtest_pb.BacktestRun.serializeBinaryToWriter
|
|
1583
|
+
);
|
|
1584
|
+
}
|
|
1585
|
+
f = message.getMetrics();
|
|
1586
|
+
if (f != null) {
|
|
1587
|
+
writer.writeMessage(
|
|
1588
|
+
2,
|
|
1589
|
+
f,
|
|
1590
|
+
strategysearch_backtest_pb.BacktestMetrics.serializeBinaryToWriter
|
|
1591
|
+
);
|
|
1592
|
+
}
|
|
1593
|
+
f = message.getEquityList();
|
|
1594
|
+
if (f.length > 0) {
|
|
1595
|
+
writer.writeRepeatedMessage(
|
|
1596
|
+
3,
|
|
1597
|
+
f,
|
|
1598
|
+
strategysearch_backtest_pb.EquityPoint.serializeBinaryToWriter
|
|
1599
|
+
);
|
|
1600
|
+
}
|
|
1601
|
+
f = message.getTradesList();
|
|
1602
|
+
if (f.length > 0) {
|
|
1603
|
+
writer.writeRepeatedMessage(
|
|
1604
|
+
4,
|
|
1605
|
+
f,
|
|
1606
|
+
strategysearch_backtest_pb.TradeRecord.serializeBinaryToWriter
|
|
1607
|
+
);
|
|
1608
|
+
}
|
|
1609
|
+
f = message.getIndicatorsList();
|
|
1610
|
+
if (f.length > 0) {
|
|
1611
|
+
writer.writeRepeatedMessage(
|
|
1612
|
+
5,
|
|
1613
|
+
f,
|
|
1614
|
+
strategysearch_backtest_pb.BacktestIndicatorSeries.serializeBinaryToWriter
|
|
1615
|
+
);
|
|
1616
|
+
}
|
|
1617
|
+
};
|
|
1618
|
+
|
|
1619
|
+
|
|
1620
|
+
/**
|
|
1621
|
+
* optional BacktestRun run = 1;
|
|
1622
|
+
* @return {?proto.trb.strategysearch.v1.BacktestRun}
|
|
1623
|
+
*/
|
|
1624
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.prototype.getRun = function() {
|
|
1625
|
+
return /** @type{?proto.trb.strategysearch.v1.BacktestRun} */ (
|
|
1626
|
+
jspb.Message.getWrapperField(this, strategysearch_backtest_pb.BacktestRun, 1));
|
|
1627
|
+
};
|
|
1628
|
+
|
|
1629
|
+
|
|
1630
|
+
/**
|
|
1631
|
+
* @param {?proto.trb.strategysearch.v1.BacktestRun|undefined} value
|
|
1632
|
+
* @return {!proto.trb.strategysearch.v1.GetBacktestResultResponse} returns this
|
|
1633
|
+
*/
|
|
1634
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.prototype.setRun = function(value) {
|
|
1635
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
1636
|
+
};
|
|
1637
|
+
|
|
1638
|
+
|
|
1639
|
+
/**
|
|
1640
|
+
* Clears the message field making it undefined.
|
|
1641
|
+
* @return {!proto.trb.strategysearch.v1.GetBacktestResultResponse} returns this
|
|
1642
|
+
*/
|
|
1643
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.prototype.clearRun = function() {
|
|
1644
|
+
return this.setRun(undefined);
|
|
1645
|
+
};
|
|
1646
|
+
|
|
1647
|
+
|
|
1648
|
+
/**
|
|
1649
|
+
* Returns whether this field is set.
|
|
1650
|
+
* @return {boolean}
|
|
1651
|
+
*/
|
|
1652
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.prototype.hasRun = function() {
|
|
1653
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1654
|
+
};
|
|
1655
|
+
|
|
1656
|
+
|
|
1657
|
+
/**
|
|
1658
|
+
* optional BacktestMetrics metrics = 2;
|
|
1659
|
+
* @return {?proto.trb.strategysearch.v1.BacktestMetrics}
|
|
1660
|
+
*/
|
|
1661
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.prototype.getMetrics = function() {
|
|
1662
|
+
return /** @type{?proto.trb.strategysearch.v1.BacktestMetrics} */ (
|
|
1663
|
+
jspb.Message.getWrapperField(this, strategysearch_backtest_pb.BacktestMetrics, 2));
|
|
1664
|
+
};
|
|
1665
|
+
|
|
1666
|
+
|
|
1667
|
+
/**
|
|
1668
|
+
* @param {?proto.trb.strategysearch.v1.BacktestMetrics|undefined} value
|
|
1669
|
+
* @return {!proto.trb.strategysearch.v1.GetBacktestResultResponse} returns this
|
|
1670
|
+
*/
|
|
1671
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.prototype.setMetrics = function(value) {
|
|
1672
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
1673
|
+
};
|
|
1674
|
+
|
|
1675
|
+
|
|
1676
|
+
/**
|
|
1677
|
+
* Clears the message field making it undefined.
|
|
1678
|
+
* @return {!proto.trb.strategysearch.v1.GetBacktestResultResponse} returns this
|
|
1679
|
+
*/
|
|
1680
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.prototype.clearMetrics = function() {
|
|
1681
|
+
return this.setMetrics(undefined);
|
|
1682
|
+
};
|
|
1683
|
+
|
|
1684
|
+
|
|
1685
|
+
/**
|
|
1686
|
+
* Returns whether this field is set.
|
|
1687
|
+
* @return {boolean}
|
|
1688
|
+
*/
|
|
1689
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.prototype.hasMetrics = function() {
|
|
1690
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1691
|
+
};
|
|
1692
|
+
|
|
1693
|
+
|
|
1694
|
+
/**
|
|
1695
|
+
* repeated EquityPoint equity = 3;
|
|
1696
|
+
* @return {!Array<!proto.trb.strategysearch.v1.EquityPoint>}
|
|
1697
|
+
*/
|
|
1698
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.prototype.getEquityList = function() {
|
|
1699
|
+
return /** @type{!Array<!proto.trb.strategysearch.v1.EquityPoint>} */ (
|
|
1700
|
+
jspb.Message.getRepeatedWrapperField(this, strategysearch_backtest_pb.EquityPoint, 3));
|
|
1701
|
+
};
|
|
1702
|
+
|
|
1703
|
+
|
|
1704
|
+
/**
|
|
1705
|
+
* @param {!Array<!proto.trb.strategysearch.v1.EquityPoint>} value
|
|
1706
|
+
* @return {!proto.trb.strategysearch.v1.GetBacktestResultResponse} returns this
|
|
1707
|
+
*/
|
|
1708
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.prototype.setEquityList = function(value) {
|
|
1709
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
1710
|
+
};
|
|
1711
|
+
|
|
1712
|
+
|
|
1713
|
+
/**
|
|
1714
|
+
* @param {!proto.trb.strategysearch.v1.EquityPoint=} opt_value
|
|
1715
|
+
* @param {number=} opt_index
|
|
1716
|
+
* @return {!proto.trb.strategysearch.v1.EquityPoint}
|
|
1717
|
+
*/
|
|
1718
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.prototype.addEquity = function(opt_value, opt_index) {
|
|
1719
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.trb.strategysearch.v1.EquityPoint, opt_index);
|
|
1720
|
+
};
|
|
1721
|
+
|
|
1722
|
+
|
|
1723
|
+
/**
|
|
1724
|
+
* Clears the list making it empty but non-null.
|
|
1725
|
+
* @return {!proto.trb.strategysearch.v1.GetBacktestResultResponse} returns this
|
|
1726
|
+
*/
|
|
1727
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.prototype.clearEquityList = function() {
|
|
1728
|
+
return this.setEquityList([]);
|
|
1729
|
+
};
|
|
1730
|
+
|
|
1731
|
+
|
|
1732
|
+
/**
|
|
1733
|
+
* repeated TradeRecord trades = 4;
|
|
1734
|
+
* @return {!Array<!proto.trb.strategysearch.v1.TradeRecord>}
|
|
1735
|
+
*/
|
|
1736
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.prototype.getTradesList = function() {
|
|
1737
|
+
return /** @type{!Array<!proto.trb.strategysearch.v1.TradeRecord>} */ (
|
|
1738
|
+
jspb.Message.getRepeatedWrapperField(this, strategysearch_backtest_pb.TradeRecord, 4));
|
|
1739
|
+
};
|
|
1740
|
+
|
|
1741
|
+
|
|
1742
|
+
/**
|
|
1743
|
+
* @param {!Array<!proto.trb.strategysearch.v1.TradeRecord>} value
|
|
1744
|
+
* @return {!proto.trb.strategysearch.v1.GetBacktestResultResponse} returns this
|
|
1745
|
+
*/
|
|
1746
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.prototype.setTradesList = function(value) {
|
|
1747
|
+
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
1748
|
+
};
|
|
1749
|
+
|
|
1750
|
+
|
|
1751
|
+
/**
|
|
1752
|
+
* @param {!proto.trb.strategysearch.v1.TradeRecord=} opt_value
|
|
1753
|
+
* @param {number=} opt_index
|
|
1754
|
+
* @return {!proto.trb.strategysearch.v1.TradeRecord}
|
|
1755
|
+
*/
|
|
1756
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.prototype.addTrades = function(opt_value, opt_index) {
|
|
1757
|
+
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.trb.strategysearch.v1.TradeRecord, opt_index);
|
|
1758
|
+
};
|
|
1759
|
+
|
|
1760
|
+
|
|
1761
|
+
/**
|
|
1762
|
+
* Clears the list making it empty but non-null.
|
|
1763
|
+
* @return {!proto.trb.strategysearch.v1.GetBacktestResultResponse} returns this
|
|
1764
|
+
*/
|
|
1765
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.prototype.clearTradesList = function() {
|
|
1766
|
+
return this.setTradesList([]);
|
|
1767
|
+
};
|
|
1768
|
+
|
|
1769
|
+
|
|
1770
|
+
/**
|
|
1771
|
+
* repeated BacktestIndicatorSeries indicators = 5;
|
|
1772
|
+
* @return {!Array<!proto.trb.strategysearch.v1.BacktestIndicatorSeries>}
|
|
1773
|
+
*/
|
|
1774
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.prototype.getIndicatorsList = function() {
|
|
1775
|
+
return /** @type{!Array<!proto.trb.strategysearch.v1.BacktestIndicatorSeries>} */ (
|
|
1776
|
+
jspb.Message.getRepeatedWrapperField(this, strategysearch_backtest_pb.BacktestIndicatorSeries, 5));
|
|
1777
|
+
};
|
|
1778
|
+
|
|
1779
|
+
|
|
1780
|
+
/**
|
|
1781
|
+
* @param {!Array<!proto.trb.strategysearch.v1.BacktestIndicatorSeries>} value
|
|
1782
|
+
* @return {!proto.trb.strategysearch.v1.GetBacktestResultResponse} returns this
|
|
1783
|
+
*/
|
|
1784
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.prototype.setIndicatorsList = function(value) {
|
|
1785
|
+
return jspb.Message.setRepeatedWrapperField(this, 5, value);
|
|
1786
|
+
};
|
|
1787
|
+
|
|
1788
|
+
|
|
1789
|
+
/**
|
|
1790
|
+
* @param {!proto.trb.strategysearch.v1.BacktestIndicatorSeries=} opt_value
|
|
1791
|
+
* @param {number=} opt_index
|
|
1792
|
+
* @return {!proto.trb.strategysearch.v1.BacktestIndicatorSeries}
|
|
1793
|
+
*/
|
|
1794
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.prototype.addIndicators = function(opt_value, opt_index) {
|
|
1795
|
+
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.trb.strategysearch.v1.BacktestIndicatorSeries, opt_index);
|
|
1796
|
+
};
|
|
1797
|
+
|
|
1798
|
+
|
|
1799
|
+
/**
|
|
1800
|
+
* Clears the list making it empty but non-null.
|
|
1801
|
+
* @return {!proto.trb.strategysearch.v1.GetBacktestResultResponse} returns this
|
|
1802
|
+
*/
|
|
1803
|
+
proto.trb.strategysearch.v1.GetBacktestResultResponse.prototype.clearIndicatorsList = function() {
|
|
1804
|
+
return this.setIndicatorsList([]);
|
|
1805
|
+
};
|
|
1806
|
+
|
|
1807
|
+
|
|
1808
|
+
|
|
1809
|
+
|
|
1810
|
+
|
|
1811
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1812
|
+
/**
|
|
1813
|
+
* Creates an object representation of this proto.
|
|
1814
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1815
|
+
* Optional fields that are not set will be set to undefined.
|
|
1816
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1817
|
+
* For the list of reserved names please see:
|
|
1818
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1819
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1820
|
+
* JSPB instance for transitional soy proto support:
|
|
1821
|
+
* http://goto/soy-param-migration
|
|
1822
|
+
* @return {!Object}
|
|
1823
|
+
*/
|
|
1824
|
+
proto.trb.strategysearch.v1.ListBacktestRunsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1825
|
+
return proto.trb.strategysearch.v1.ListBacktestRunsRequest.toObject(opt_includeInstance, this);
|
|
1826
|
+
};
|
|
1827
|
+
|
|
1828
|
+
|
|
1829
|
+
/**
|
|
1830
|
+
* Static version of the {@see toObject} method.
|
|
1831
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1832
|
+
* the JSPB instance for transitional soy proto support:
|
|
1833
|
+
* http://goto/soy-param-migration
|
|
1834
|
+
* @param {!proto.trb.strategysearch.v1.ListBacktestRunsRequest} msg The msg instance to transform.
|
|
1835
|
+
* @return {!Object}
|
|
1836
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1837
|
+
*/
|
|
1838
|
+
proto.trb.strategysearch.v1.ListBacktestRunsRequest.toObject = function(includeInstance, msg) {
|
|
1839
|
+
var f, obj = {
|
|
1840
|
+
strategyId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1841
|
+
uid: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1842
|
+
status: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
1843
|
+
sortBy: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
1844
|
+
sortDesc: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
|
|
1845
|
+
limit: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
1846
|
+
offset: jspb.Message.getFieldWithDefault(msg, 7, 0)
|
|
1847
|
+
};
|
|
1848
|
+
|
|
1849
|
+
if (includeInstance) {
|
|
1850
|
+
obj.$jspbMessageInstance = msg;
|
|
1851
|
+
}
|
|
1852
|
+
return obj;
|
|
1853
|
+
};
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
|
|
1857
|
+
/**
|
|
1858
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1859
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1860
|
+
* @return {!proto.trb.strategysearch.v1.ListBacktestRunsRequest}
|
|
1861
|
+
*/
|
|
1862
|
+
proto.trb.strategysearch.v1.ListBacktestRunsRequest.deserializeBinary = function(bytes) {
|
|
1863
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1864
|
+
var msg = new proto.trb.strategysearch.v1.ListBacktestRunsRequest;
|
|
1865
|
+
return proto.trb.strategysearch.v1.ListBacktestRunsRequest.deserializeBinaryFromReader(msg, reader);
|
|
1866
|
+
};
|
|
1867
|
+
|
|
1868
|
+
|
|
1869
|
+
/**
|
|
1870
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1871
|
+
* given reader into the given message object.
|
|
1872
|
+
* @param {!proto.trb.strategysearch.v1.ListBacktestRunsRequest} msg The message object to deserialize into.
|
|
1873
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1874
|
+
* @return {!proto.trb.strategysearch.v1.ListBacktestRunsRequest}
|
|
1875
|
+
*/
|
|
1876
|
+
proto.trb.strategysearch.v1.ListBacktestRunsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1877
|
+
while (reader.nextField()) {
|
|
1878
|
+
if (reader.isEndGroup()) {
|
|
1879
|
+
break;
|
|
1880
|
+
}
|
|
1881
|
+
var field = reader.getFieldNumber();
|
|
1882
|
+
switch (field) {
|
|
1883
|
+
case 1:
|
|
1884
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1885
|
+
msg.setStrategyId(value);
|
|
1886
|
+
break;
|
|
1887
|
+
case 2:
|
|
1888
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1889
|
+
msg.setUid(value);
|
|
1890
|
+
break;
|
|
1891
|
+
case 3:
|
|
1892
|
+
var value = /** @type {!proto.trb.strategysearch.v1.RunStatus} */ (reader.readEnum());
|
|
1893
|
+
msg.setStatus(value);
|
|
1894
|
+
break;
|
|
1895
|
+
case 4:
|
|
1896
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1897
|
+
msg.setSortBy(value);
|
|
1898
|
+
break;
|
|
1899
|
+
case 5:
|
|
1900
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1901
|
+
msg.setSortDesc(value);
|
|
1902
|
+
break;
|
|
1903
|
+
case 6:
|
|
1904
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1905
|
+
msg.setLimit(value);
|
|
1906
|
+
break;
|
|
1907
|
+
case 7:
|
|
1908
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1909
|
+
msg.setOffset(value);
|
|
1910
|
+
break;
|
|
1911
|
+
default:
|
|
1912
|
+
reader.skipField();
|
|
1913
|
+
break;
|
|
1914
|
+
}
|
|
1915
|
+
}
|
|
1916
|
+
return msg;
|
|
1917
|
+
};
|
|
1918
|
+
|
|
1919
|
+
|
|
1920
|
+
/**
|
|
1921
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1922
|
+
* @return {!Uint8Array}
|
|
1923
|
+
*/
|
|
1924
|
+
proto.trb.strategysearch.v1.ListBacktestRunsRequest.prototype.serializeBinary = function() {
|
|
1925
|
+
var writer = new jspb.BinaryWriter();
|
|
1926
|
+
proto.trb.strategysearch.v1.ListBacktestRunsRequest.serializeBinaryToWriter(this, writer);
|
|
1927
|
+
return writer.getResultBuffer();
|
|
1928
|
+
};
|
|
1929
|
+
|
|
1930
|
+
|
|
1931
|
+
/**
|
|
1932
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1933
|
+
* format), writing to the given BinaryWriter.
|
|
1934
|
+
* @param {!proto.trb.strategysearch.v1.ListBacktestRunsRequest} message
|
|
1935
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1936
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1937
|
+
*/
|
|
1938
|
+
proto.trb.strategysearch.v1.ListBacktestRunsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1939
|
+
var f = undefined;
|
|
1940
|
+
f = message.getStrategyId();
|
|
1941
|
+
if (f.length > 0) {
|
|
1942
|
+
writer.writeString(
|
|
1943
|
+
1,
|
|
1944
|
+
f
|
|
1945
|
+
);
|
|
1946
|
+
}
|
|
1947
|
+
f = message.getUid();
|
|
1948
|
+
if (f.length > 0) {
|
|
1949
|
+
writer.writeString(
|
|
1950
|
+
2,
|
|
1951
|
+
f
|
|
1952
|
+
);
|
|
1953
|
+
}
|
|
1954
|
+
f = message.getStatus();
|
|
1955
|
+
if (f !== 0.0) {
|
|
1956
|
+
writer.writeEnum(
|
|
1957
|
+
3,
|
|
1958
|
+
f
|
|
1959
|
+
);
|
|
1960
|
+
}
|
|
1961
|
+
f = message.getSortBy();
|
|
1962
|
+
if (f.length > 0) {
|
|
1963
|
+
writer.writeString(
|
|
1964
|
+
4,
|
|
1965
|
+
f
|
|
1966
|
+
);
|
|
1967
|
+
}
|
|
1968
|
+
f = message.getSortDesc();
|
|
1969
|
+
if (f) {
|
|
1970
|
+
writer.writeBool(
|
|
1971
|
+
5,
|
|
1972
|
+
f
|
|
1973
|
+
);
|
|
1974
|
+
}
|
|
1975
|
+
f = message.getLimit();
|
|
1976
|
+
if (f !== 0) {
|
|
1977
|
+
writer.writeInt32(
|
|
1978
|
+
6,
|
|
1979
|
+
f
|
|
1980
|
+
);
|
|
1981
|
+
}
|
|
1982
|
+
f = message.getOffset();
|
|
1983
|
+
if (f !== 0) {
|
|
1984
|
+
writer.writeInt32(
|
|
1985
|
+
7,
|
|
1986
|
+
f
|
|
1987
|
+
);
|
|
1988
|
+
}
|
|
1989
|
+
};
|
|
1990
|
+
|
|
1991
|
+
|
|
1992
|
+
/**
|
|
1993
|
+
* optional string strategy_id = 1;
|
|
1994
|
+
* @return {string}
|
|
1995
|
+
*/
|
|
1996
|
+
proto.trb.strategysearch.v1.ListBacktestRunsRequest.prototype.getStrategyId = function() {
|
|
1997
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1998
|
+
};
|
|
1999
|
+
|
|
2000
|
+
|
|
2001
|
+
/**
|
|
2002
|
+
* @param {string} value
|
|
2003
|
+
* @return {!proto.trb.strategysearch.v1.ListBacktestRunsRequest} returns this
|
|
2004
|
+
*/
|
|
2005
|
+
proto.trb.strategysearch.v1.ListBacktestRunsRequest.prototype.setStrategyId = function(value) {
|
|
2006
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2007
|
+
};
|
|
2008
|
+
|
|
2009
|
+
|
|
2010
|
+
/**
|
|
2011
|
+
* optional string uid = 2;
|
|
2012
|
+
* @return {string}
|
|
2013
|
+
*/
|
|
2014
|
+
proto.trb.strategysearch.v1.ListBacktestRunsRequest.prototype.getUid = function() {
|
|
2015
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2016
|
+
};
|
|
2017
|
+
|
|
2018
|
+
|
|
2019
|
+
/**
|
|
2020
|
+
* @param {string} value
|
|
2021
|
+
* @return {!proto.trb.strategysearch.v1.ListBacktestRunsRequest} returns this
|
|
2022
|
+
*/
|
|
2023
|
+
proto.trb.strategysearch.v1.ListBacktestRunsRequest.prototype.setUid = function(value) {
|
|
2024
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2025
|
+
};
|
|
2026
|
+
|
|
2027
|
+
|
|
2028
|
+
/**
|
|
2029
|
+
* optional RunStatus status = 3;
|
|
2030
|
+
* @return {!proto.trb.strategysearch.v1.RunStatus}
|
|
2031
|
+
*/
|
|
2032
|
+
proto.trb.strategysearch.v1.ListBacktestRunsRequest.prototype.getStatus = function() {
|
|
2033
|
+
return /** @type {!proto.trb.strategysearch.v1.RunStatus} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
2034
|
+
};
|
|
2035
|
+
|
|
2036
|
+
|
|
2037
|
+
/**
|
|
2038
|
+
* @param {!proto.trb.strategysearch.v1.RunStatus} value
|
|
2039
|
+
* @return {!proto.trb.strategysearch.v1.ListBacktestRunsRequest} returns this
|
|
2040
|
+
*/
|
|
2041
|
+
proto.trb.strategysearch.v1.ListBacktestRunsRequest.prototype.setStatus = function(value) {
|
|
2042
|
+
return jspb.Message.setProto3EnumField(this, 3, value);
|
|
2043
|
+
};
|
|
2044
|
+
|
|
2045
|
+
|
|
2046
|
+
/**
|
|
2047
|
+
* optional string sort_by = 4;
|
|
2048
|
+
* @return {string}
|
|
2049
|
+
*/
|
|
2050
|
+
proto.trb.strategysearch.v1.ListBacktestRunsRequest.prototype.getSortBy = function() {
|
|
2051
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
2052
|
+
};
|
|
2053
|
+
|
|
2054
|
+
|
|
2055
|
+
/**
|
|
2056
|
+
* @param {string} value
|
|
2057
|
+
* @return {!proto.trb.strategysearch.v1.ListBacktestRunsRequest} returns this
|
|
2058
|
+
*/
|
|
2059
|
+
proto.trb.strategysearch.v1.ListBacktestRunsRequest.prototype.setSortBy = function(value) {
|
|
2060
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
2061
|
+
};
|
|
2062
|
+
|
|
2063
|
+
|
|
2064
|
+
/**
|
|
2065
|
+
* optional bool sort_desc = 5;
|
|
2066
|
+
* @return {boolean}
|
|
2067
|
+
*/
|
|
2068
|
+
proto.trb.strategysearch.v1.ListBacktestRunsRequest.prototype.getSortDesc = function() {
|
|
2069
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
|
|
2070
|
+
};
|
|
2071
|
+
|
|
2072
|
+
|
|
2073
|
+
/**
|
|
2074
|
+
* @param {boolean} value
|
|
2075
|
+
* @return {!proto.trb.strategysearch.v1.ListBacktestRunsRequest} returns this
|
|
2076
|
+
*/
|
|
2077
|
+
proto.trb.strategysearch.v1.ListBacktestRunsRequest.prototype.setSortDesc = function(value) {
|
|
2078
|
+
return jspb.Message.setProto3BooleanField(this, 5, value);
|
|
2079
|
+
};
|
|
2080
|
+
|
|
2081
|
+
|
|
2082
|
+
/**
|
|
2083
|
+
* optional int32 limit = 6;
|
|
2084
|
+
* @return {number}
|
|
2085
|
+
*/
|
|
2086
|
+
proto.trb.strategysearch.v1.ListBacktestRunsRequest.prototype.getLimit = function() {
|
|
2087
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
2088
|
+
};
|
|
2089
|
+
|
|
2090
|
+
|
|
2091
|
+
/**
|
|
2092
|
+
* @param {number} value
|
|
2093
|
+
* @return {!proto.trb.strategysearch.v1.ListBacktestRunsRequest} returns this
|
|
2094
|
+
*/
|
|
2095
|
+
proto.trb.strategysearch.v1.ListBacktestRunsRequest.prototype.setLimit = function(value) {
|
|
2096
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
2097
|
+
};
|
|
2098
|
+
|
|
2099
|
+
|
|
2100
|
+
/**
|
|
2101
|
+
* optional int32 offset = 7;
|
|
2102
|
+
* @return {number}
|
|
2103
|
+
*/
|
|
2104
|
+
proto.trb.strategysearch.v1.ListBacktestRunsRequest.prototype.getOffset = function() {
|
|
2105
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
2106
|
+
};
|
|
2107
|
+
|
|
2108
|
+
|
|
2109
|
+
/**
|
|
2110
|
+
* @param {number} value
|
|
2111
|
+
* @return {!proto.trb.strategysearch.v1.ListBacktestRunsRequest} returns this
|
|
2112
|
+
*/
|
|
2113
|
+
proto.trb.strategysearch.v1.ListBacktestRunsRequest.prototype.setOffset = function(value) {
|
|
2114
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
2115
|
+
};
|
|
2116
|
+
|
|
2117
|
+
|
|
2118
|
+
|
|
2119
|
+
/**
|
|
2120
|
+
* List of repeated fields within this message type.
|
|
2121
|
+
* @private {!Array<number>}
|
|
2122
|
+
* @const
|
|
2123
|
+
*/
|
|
2124
|
+
proto.trb.strategysearch.v1.ListBacktestRunsResponse.repeatedFields_ = [1];
|
|
2125
|
+
|
|
2126
|
+
|
|
2127
|
+
|
|
2128
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2129
|
+
/**
|
|
2130
|
+
* Creates an object representation of this proto.
|
|
2131
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2132
|
+
* Optional fields that are not set will be set to undefined.
|
|
2133
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2134
|
+
* For the list of reserved names please see:
|
|
2135
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2136
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2137
|
+
* JSPB instance for transitional soy proto support:
|
|
2138
|
+
* http://goto/soy-param-migration
|
|
2139
|
+
* @return {!Object}
|
|
2140
|
+
*/
|
|
2141
|
+
proto.trb.strategysearch.v1.ListBacktestRunsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2142
|
+
return proto.trb.strategysearch.v1.ListBacktestRunsResponse.toObject(opt_includeInstance, this);
|
|
2143
|
+
};
|
|
2144
|
+
|
|
2145
|
+
|
|
2146
|
+
/**
|
|
2147
|
+
* Static version of the {@see toObject} method.
|
|
2148
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2149
|
+
* the JSPB instance for transitional soy proto support:
|
|
2150
|
+
* http://goto/soy-param-migration
|
|
2151
|
+
* @param {!proto.trb.strategysearch.v1.ListBacktestRunsResponse} msg The msg instance to transform.
|
|
2152
|
+
* @return {!Object}
|
|
2153
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2154
|
+
*/
|
|
2155
|
+
proto.trb.strategysearch.v1.ListBacktestRunsResponse.toObject = function(includeInstance, msg) {
|
|
2156
|
+
var f, obj = {
|
|
2157
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
2158
|
+
strategysearch_backtest_pb.BacktestRunListItem.toObject, includeInstance),
|
|
2159
|
+
total: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
2160
|
+
};
|
|
2161
|
+
|
|
2162
|
+
if (includeInstance) {
|
|
2163
|
+
obj.$jspbMessageInstance = msg;
|
|
2164
|
+
}
|
|
2165
|
+
return obj;
|
|
2166
|
+
};
|
|
2167
|
+
}
|
|
2168
|
+
|
|
2169
|
+
|
|
2170
|
+
/**
|
|
2171
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2172
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2173
|
+
* @return {!proto.trb.strategysearch.v1.ListBacktestRunsResponse}
|
|
2174
|
+
*/
|
|
2175
|
+
proto.trb.strategysearch.v1.ListBacktestRunsResponse.deserializeBinary = function(bytes) {
|
|
2176
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2177
|
+
var msg = new proto.trb.strategysearch.v1.ListBacktestRunsResponse;
|
|
2178
|
+
return proto.trb.strategysearch.v1.ListBacktestRunsResponse.deserializeBinaryFromReader(msg, reader);
|
|
2179
|
+
};
|
|
2180
|
+
|
|
2181
|
+
|
|
2182
|
+
/**
|
|
2183
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2184
|
+
* given reader into the given message object.
|
|
2185
|
+
* @param {!proto.trb.strategysearch.v1.ListBacktestRunsResponse} msg The message object to deserialize into.
|
|
2186
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2187
|
+
* @return {!proto.trb.strategysearch.v1.ListBacktestRunsResponse}
|
|
2188
|
+
*/
|
|
2189
|
+
proto.trb.strategysearch.v1.ListBacktestRunsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2190
|
+
while (reader.nextField()) {
|
|
2191
|
+
if (reader.isEndGroup()) {
|
|
2192
|
+
break;
|
|
2193
|
+
}
|
|
2194
|
+
var field = reader.getFieldNumber();
|
|
2195
|
+
switch (field) {
|
|
2196
|
+
case 1:
|
|
2197
|
+
var value = new strategysearch_backtest_pb.BacktestRunListItem;
|
|
2198
|
+
reader.readMessage(value,strategysearch_backtest_pb.BacktestRunListItem.deserializeBinaryFromReader);
|
|
2199
|
+
msg.addItems(value);
|
|
2200
|
+
break;
|
|
2201
|
+
case 2:
|
|
2202
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
2203
|
+
msg.setTotal(value);
|
|
2204
|
+
break;
|
|
2205
|
+
default:
|
|
2206
|
+
reader.skipField();
|
|
2207
|
+
break;
|
|
2208
|
+
}
|
|
2209
|
+
}
|
|
2210
|
+
return msg;
|
|
2211
|
+
};
|
|
2212
|
+
|
|
2213
|
+
|
|
2214
|
+
/**
|
|
2215
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2216
|
+
* @return {!Uint8Array}
|
|
2217
|
+
*/
|
|
2218
|
+
proto.trb.strategysearch.v1.ListBacktestRunsResponse.prototype.serializeBinary = function() {
|
|
2219
|
+
var writer = new jspb.BinaryWriter();
|
|
2220
|
+
proto.trb.strategysearch.v1.ListBacktestRunsResponse.serializeBinaryToWriter(this, writer);
|
|
2221
|
+
return writer.getResultBuffer();
|
|
2222
|
+
};
|
|
2223
|
+
|
|
2224
|
+
|
|
2225
|
+
/**
|
|
2226
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2227
|
+
* format), writing to the given BinaryWriter.
|
|
2228
|
+
* @param {!proto.trb.strategysearch.v1.ListBacktestRunsResponse} message
|
|
2229
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2230
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2231
|
+
*/
|
|
2232
|
+
proto.trb.strategysearch.v1.ListBacktestRunsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2233
|
+
var f = undefined;
|
|
2234
|
+
f = message.getItemsList();
|
|
2235
|
+
if (f.length > 0) {
|
|
2236
|
+
writer.writeRepeatedMessage(
|
|
2237
|
+
1,
|
|
2238
|
+
f,
|
|
2239
|
+
strategysearch_backtest_pb.BacktestRunListItem.serializeBinaryToWriter
|
|
2240
|
+
);
|
|
2241
|
+
}
|
|
2242
|
+
f = message.getTotal();
|
|
2243
|
+
if (f !== 0) {
|
|
2244
|
+
writer.writeInt32(
|
|
2245
|
+
2,
|
|
2246
|
+
f
|
|
2247
|
+
);
|
|
2248
|
+
}
|
|
2249
|
+
};
|
|
2250
|
+
|
|
2251
|
+
|
|
2252
|
+
/**
|
|
2253
|
+
* repeated BacktestRunListItem items = 1;
|
|
2254
|
+
* @return {!Array<!proto.trb.strategysearch.v1.BacktestRunListItem>}
|
|
2255
|
+
*/
|
|
2256
|
+
proto.trb.strategysearch.v1.ListBacktestRunsResponse.prototype.getItemsList = function() {
|
|
2257
|
+
return /** @type{!Array<!proto.trb.strategysearch.v1.BacktestRunListItem>} */ (
|
|
2258
|
+
jspb.Message.getRepeatedWrapperField(this, strategysearch_backtest_pb.BacktestRunListItem, 1));
|
|
2259
|
+
};
|
|
2260
|
+
|
|
2261
|
+
|
|
2262
|
+
/**
|
|
2263
|
+
* @param {!Array<!proto.trb.strategysearch.v1.BacktestRunListItem>} value
|
|
2264
|
+
* @return {!proto.trb.strategysearch.v1.ListBacktestRunsResponse} returns this
|
|
2265
|
+
*/
|
|
2266
|
+
proto.trb.strategysearch.v1.ListBacktestRunsResponse.prototype.setItemsList = function(value) {
|
|
2267
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
2268
|
+
};
|
|
2269
|
+
|
|
2270
|
+
|
|
2271
|
+
/**
|
|
2272
|
+
* @param {!proto.trb.strategysearch.v1.BacktestRunListItem=} opt_value
|
|
2273
|
+
* @param {number=} opt_index
|
|
2274
|
+
* @return {!proto.trb.strategysearch.v1.BacktestRunListItem}
|
|
2275
|
+
*/
|
|
2276
|
+
proto.trb.strategysearch.v1.ListBacktestRunsResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
2277
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.trb.strategysearch.v1.BacktestRunListItem, opt_index);
|
|
2278
|
+
};
|
|
2279
|
+
|
|
2280
|
+
|
|
2281
|
+
/**
|
|
2282
|
+
* Clears the list making it empty but non-null.
|
|
2283
|
+
* @return {!proto.trb.strategysearch.v1.ListBacktestRunsResponse} returns this
|
|
2284
|
+
*/
|
|
2285
|
+
proto.trb.strategysearch.v1.ListBacktestRunsResponse.prototype.clearItemsList = function() {
|
|
2286
|
+
return this.setItemsList([]);
|
|
2287
|
+
};
|
|
2288
|
+
|
|
2289
|
+
|
|
2290
|
+
/**
|
|
2291
|
+
* optional int32 total = 2;
|
|
2292
|
+
* @return {number}
|
|
2293
|
+
*/
|
|
2294
|
+
proto.trb.strategysearch.v1.ListBacktestRunsResponse.prototype.getTotal = function() {
|
|
2295
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
2296
|
+
};
|
|
2297
|
+
|
|
2298
|
+
|
|
2299
|
+
/**
|
|
2300
|
+
* @param {number} value
|
|
2301
|
+
* @return {!proto.trb.strategysearch.v1.ListBacktestRunsResponse} returns this
|
|
2302
|
+
*/
|
|
2303
|
+
proto.trb.strategysearch.v1.ListBacktestRunsResponse.prototype.setTotal = function(value) {
|
|
2304
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
2305
|
+
};
|
|
2306
|
+
|
|
2307
|
+
|
|
2308
|
+
|
|
2309
|
+
|
|
2310
|
+
|
|
2311
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2312
|
+
/**
|
|
2313
|
+
* Creates an object representation of this proto.
|
|
2314
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2315
|
+
* Optional fields that are not set will be set to undefined.
|
|
2316
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2317
|
+
* For the list of reserved names please see:
|
|
2318
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2319
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2320
|
+
* JSPB instance for transitional soy proto support:
|
|
2321
|
+
* http://goto/soy-param-migration
|
|
2322
|
+
* @return {!Object}
|
|
2323
|
+
*/
|
|
2324
|
+
proto.trb.strategysearch.v1.CancelBacktestRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2325
|
+
return proto.trb.strategysearch.v1.CancelBacktestRequest.toObject(opt_includeInstance, this);
|
|
2326
|
+
};
|
|
2327
|
+
|
|
2328
|
+
|
|
2329
|
+
/**
|
|
2330
|
+
* Static version of the {@see toObject} method.
|
|
2331
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2332
|
+
* the JSPB instance for transitional soy proto support:
|
|
2333
|
+
* http://goto/soy-param-migration
|
|
2334
|
+
* @param {!proto.trb.strategysearch.v1.CancelBacktestRequest} msg The msg instance to transform.
|
|
2335
|
+
* @return {!Object}
|
|
2336
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2337
|
+
*/
|
|
2338
|
+
proto.trb.strategysearch.v1.CancelBacktestRequest.toObject = function(includeInstance, msg) {
|
|
2339
|
+
var f, obj = {
|
|
2340
|
+
runId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
2341
|
+
};
|
|
2342
|
+
|
|
2343
|
+
if (includeInstance) {
|
|
2344
|
+
obj.$jspbMessageInstance = msg;
|
|
2345
|
+
}
|
|
2346
|
+
return obj;
|
|
2347
|
+
};
|
|
2348
|
+
}
|
|
2349
|
+
|
|
2350
|
+
|
|
2351
|
+
/**
|
|
2352
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2353
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2354
|
+
* @return {!proto.trb.strategysearch.v1.CancelBacktestRequest}
|
|
2355
|
+
*/
|
|
2356
|
+
proto.trb.strategysearch.v1.CancelBacktestRequest.deserializeBinary = function(bytes) {
|
|
2357
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2358
|
+
var msg = new proto.trb.strategysearch.v1.CancelBacktestRequest;
|
|
2359
|
+
return proto.trb.strategysearch.v1.CancelBacktestRequest.deserializeBinaryFromReader(msg, reader);
|
|
2360
|
+
};
|
|
2361
|
+
|
|
2362
|
+
|
|
2363
|
+
/**
|
|
2364
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2365
|
+
* given reader into the given message object.
|
|
2366
|
+
* @param {!proto.trb.strategysearch.v1.CancelBacktestRequest} msg The message object to deserialize into.
|
|
2367
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2368
|
+
* @return {!proto.trb.strategysearch.v1.CancelBacktestRequest}
|
|
2369
|
+
*/
|
|
2370
|
+
proto.trb.strategysearch.v1.CancelBacktestRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2371
|
+
while (reader.nextField()) {
|
|
2372
|
+
if (reader.isEndGroup()) {
|
|
2373
|
+
break;
|
|
2374
|
+
}
|
|
2375
|
+
var field = reader.getFieldNumber();
|
|
2376
|
+
switch (field) {
|
|
2377
|
+
case 1:
|
|
2378
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2379
|
+
msg.setRunId(value);
|
|
2380
|
+
break;
|
|
2381
|
+
default:
|
|
2382
|
+
reader.skipField();
|
|
2383
|
+
break;
|
|
2384
|
+
}
|
|
2385
|
+
}
|
|
2386
|
+
return msg;
|
|
2387
|
+
};
|
|
2388
|
+
|
|
2389
|
+
|
|
2390
|
+
/**
|
|
2391
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2392
|
+
* @return {!Uint8Array}
|
|
2393
|
+
*/
|
|
2394
|
+
proto.trb.strategysearch.v1.CancelBacktestRequest.prototype.serializeBinary = function() {
|
|
2395
|
+
var writer = new jspb.BinaryWriter();
|
|
2396
|
+
proto.trb.strategysearch.v1.CancelBacktestRequest.serializeBinaryToWriter(this, writer);
|
|
2397
|
+
return writer.getResultBuffer();
|
|
2398
|
+
};
|
|
2399
|
+
|
|
2400
|
+
|
|
2401
|
+
/**
|
|
2402
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2403
|
+
* format), writing to the given BinaryWriter.
|
|
2404
|
+
* @param {!proto.trb.strategysearch.v1.CancelBacktestRequest} message
|
|
2405
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2406
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2407
|
+
*/
|
|
2408
|
+
proto.trb.strategysearch.v1.CancelBacktestRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2409
|
+
var f = undefined;
|
|
2410
|
+
f = message.getRunId();
|
|
2411
|
+
if (f.length > 0) {
|
|
2412
|
+
writer.writeString(
|
|
2413
|
+
1,
|
|
2414
|
+
f
|
|
2415
|
+
);
|
|
2416
|
+
}
|
|
2417
|
+
};
|
|
2418
|
+
|
|
2419
|
+
|
|
2420
|
+
/**
|
|
2421
|
+
* optional string run_id = 1;
|
|
2422
|
+
* @return {string}
|
|
2423
|
+
*/
|
|
2424
|
+
proto.trb.strategysearch.v1.CancelBacktestRequest.prototype.getRunId = function() {
|
|
2425
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2426
|
+
};
|
|
2427
|
+
|
|
2428
|
+
|
|
2429
|
+
/**
|
|
2430
|
+
* @param {string} value
|
|
2431
|
+
* @return {!proto.trb.strategysearch.v1.CancelBacktestRequest} returns this
|
|
2432
|
+
*/
|
|
2433
|
+
proto.trb.strategysearch.v1.CancelBacktestRequest.prototype.setRunId = function(value) {
|
|
2434
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2435
|
+
};
|
|
2436
|
+
|
|
2437
|
+
|
|
2438
|
+
|
|
431
2439
|
/**
|
|
432
2440
|
* List of repeated fields within this message type.
|
|
433
2441
|
* @private {!Array<number>}
|