@marleena/trb-proto 1.0.3 → 1.0.6
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/README.md +3 -3
- package/gen/js-ts/api/db_api/Db_apiServiceClientPb.ts +302 -0
- package/gen/js-ts/api/{data/data_pb.d.ts → db_api/db_api_pb.d.ts} +72 -83
- package/gen/js-ts/api/{data/data_pb.js → db_api/db_api_pb.js} +415 -469
- package/gen/js-ts/api/test/TestServiceClientPb.ts +86 -0
- package/gen/js-ts/api/test/test_pb.d.ts +40 -0
- package/gen/js-ts/api/test/test_pb.js +324 -0
- package/package.json +1 -1
- package/gen/js-ts/api/data/DataServiceClientPb.ts +0 -215
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// source: api/
|
|
1
|
+
// source: api/db_api/db_api.proto
|
|
2
2
|
/**
|
|
3
3
|
* @fileoverview
|
|
4
4
|
* @enhanceable
|
|
@@ -25,11 +25,14 @@ var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
|
|
|
25
25
|
goog.object.extend(proto, google_api_annotations_pb);
|
|
26
26
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
27
27
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
28
|
-
|
|
28
|
+
var tinvest_instruments_pb = require('../../tinvest/instruments_pb.js');
|
|
29
|
+
goog.object.extend(proto, tinvest_instruments_pb);
|
|
30
|
+
goog.exportSymbol('proto.trb.db.api.public.contract.v1.InstrumentVersion', null, global);
|
|
29
31
|
goog.exportSymbol('proto.trb.db.api.public.contract.v1.LastDownload', null, global);
|
|
30
32
|
goog.exportSymbol('proto.trb.db.api.public.contract.v1.ListFilter', null, global);
|
|
33
|
+
goog.exportSymbol('proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest', null, global);
|
|
34
|
+
goog.exportSymbol('proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse', null, global);
|
|
31
35
|
goog.exportSymbol('proto.trb.db.api.public.contract.v1.ListInstrumentsRequest', null, global);
|
|
32
|
-
goog.exportSymbol('proto.trb.db.api.public.contract.v1.ListInstrumentsResponse', null, global);
|
|
33
36
|
goog.exportSymbol('proto.trb.db.api.public.contract.v1.ListLastDownloadsRequest', null, global);
|
|
34
37
|
goog.exportSymbol('proto.trb.db.api.public.contract.v1.ListLastDownloadsResponse', null, global);
|
|
35
38
|
goog.exportSymbol('proto.trb.db.api.public.contract.v1.ListSchedulerTargetsRequest', null, global);
|
|
@@ -38,6 +41,7 @@ goog.exportSymbol('proto.trb.db.api.public.contract.v1.SchedulerTarget', null, g
|
|
|
38
41
|
goog.exportSymbol('proto.trb.db.api.public.contract.v1.SchedulerTargetInstrument', null, global);
|
|
39
42
|
goog.exportSymbol('proto.trb.db.api.public.contract.v1.SyncSchedulerTargetsRequest', null, global);
|
|
40
43
|
goog.exportSymbol('proto.trb.db.api.public.contract.v1.SyncSchedulerTargetsResponse', null, global);
|
|
44
|
+
goog.exportSymbol('proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse', null, global);
|
|
41
45
|
/**
|
|
42
46
|
* Generated by JsPbCodeGenerator.
|
|
43
47
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -90,16 +94,58 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
90
94
|
* @extends {jspb.Message}
|
|
91
95
|
* @constructor
|
|
92
96
|
*/
|
|
93
|
-
proto.trb.db.api.public.contract.v1.
|
|
94
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
97
|
+
proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest = function(opt_data) {
|
|
98
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
99
|
+
};
|
|
100
|
+
goog.inherits(proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest, jspb.Message);
|
|
101
|
+
if (goog.DEBUG && !COMPILED) {
|
|
102
|
+
/**
|
|
103
|
+
* @public
|
|
104
|
+
* @override
|
|
105
|
+
*/
|
|
106
|
+
proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest.displayName = 'proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest';
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Generated by JsPbCodeGenerator.
|
|
110
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
111
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
112
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
113
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
114
|
+
* valid.
|
|
115
|
+
* @extends {jspb.Message}
|
|
116
|
+
* @constructor
|
|
117
|
+
*/
|
|
118
|
+
proto.trb.db.api.public.contract.v1.InstrumentVersion = function(opt_data) {
|
|
119
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
120
|
+
};
|
|
121
|
+
goog.inherits(proto.trb.db.api.public.contract.v1.InstrumentVersion, jspb.Message);
|
|
122
|
+
if (goog.DEBUG && !COMPILED) {
|
|
123
|
+
/**
|
|
124
|
+
* @public
|
|
125
|
+
* @override
|
|
126
|
+
*/
|
|
127
|
+
proto.trb.db.api.public.contract.v1.InstrumentVersion.displayName = 'proto.trb.db.api.public.contract.v1.InstrumentVersion';
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Generated by JsPbCodeGenerator.
|
|
131
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
132
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
133
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
134
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
135
|
+
* valid.
|
|
136
|
+
* @extends {jspb.Message}
|
|
137
|
+
* @constructor
|
|
138
|
+
*/
|
|
139
|
+
proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse = function(opt_data) {
|
|
140
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse.repeatedFields_, null);
|
|
95
141
|
};
|
|
96
|
-
goog.inherits(proto.trb.db.api.public.contract.v1.
|
|
142
|
+
goog.inherits(proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse, jspb.Message);
|
|
97
143
|
if (goog.DEBUG && !COMPILED) {
|
|
98
144
|
/**
|
|
99
145
|
* @public
|
|
100
146
|
* @override
|
|
101
147
|
*/
|
|
102
|
-
proto.trb.db.api.public.contract.v1.
|
|
148
|
+
proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse.displayName = 'proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse';
|
|
103
149
|
}
|
|
104
150
|
/**
|
|
105
151
|
* Generated by JsPbCodeGenerator.
|
|
@@ -111,16 +157,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
111
157
|
* @extends {jspb.Message}
|
|
112
158
|
* @constructor
|
|
113
159
|
*/
|
|
114
|
-
proto.trb.db.api.public.contract.v1.
|
|
160
|
+
proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse = function(opt_data) {
|
|
115
161
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
116
162
|
};
|
|
117
|
-
goog.inherits(proto.trb.db.api.public.contract.v1.
|
|
163
|
+
goog.inherits(proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse, jspb.Message);
|
|
118
164
|
if (goog.DEBUG && !COMPILED) {
|
|
119
165
|
/**
|
|
120
166
|
* @public
|
|
121
167
|
* @override
|
|
122
168
|
*/
|
|
123
|
-
proto.trb.db.api.public.contract.v1.
|
|
169
|
+
proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse.displayName = 'proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse';
|
|
124
170
|
}
|
|
125
171
|
/**
|
|
126
172
|
* Generated by JsPbCodeGenerator.
|
|
@@ -683,13 +729,6 @@ proto.trb.db.api.public.contract.v1.ListInstrumentsRequest.prototype.setLite = f
|
|
|
683
729
|
|
|
684
730
|
|
|
685
731
|
|
|
686
|
-
/**
|
|
687
|
-
* List of repeated fields within this message type.
|
|
688
|
-
* @private {!Array<number>}
|
|
689
|
-
* @const
|
|
690
|
-
*/
|
|
691
|
-
proto.trb.db.api.public.contract.v1.ListInstrumentsResponse.repeatedFields_ = [1];
|
|
692
|
-
|
|
693
732
|
|
|
694
733
|
|
|
695
734
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -705,8 +744,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
705
744
|
* http://goto/soy-param-migration
|
|
706
745
|
* @return {!Object}
|
|
707
746
|
*/
|
|
708
|
-
proto.trb.db.api.public.contract.v1.
|
|
709
|
-
return proto.trb.db.api.public.contract.v1.
|
|
747
|
+
proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
748
|
+
return proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest.toObject(opt_includeInstance, this);
|
|
710
749
|
};
|
|
711
750
|
|
|
712
751
|
|
|
@@ -715,14 +754,13 @@ proto.trb.db.api.public.contract.v1.ListInstrumentsResponse.prototype.toObject =
|
|
|
715
754
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
716
755
|
* the JSPB instance for transitional soy proto support:
|
|
717
756
|
* http://goto/soy-param-migration
|
|
718
|
-
* @param {!proto.trb.db.api.public.contract.v1.
|
|
757
|
+
* @param {!proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest} msg The msg instance to transform.
|
|
719
758
|
* @return {!Object}
|
|
720
759
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
721
760
|
*/
|
|
722
|
-
proto.trb.db.api.public.contract.v1.
|
|
761
|
+
proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest.toObject = function(includeInstance, msg) {
|
|
723
762
|
var f, obj = {
|
|
724
|
-
|
|
725
|
-
proto.trb.db.api.public.contract.v1.Instrument.toObject, includeInstance)
|
|
763
|
+
uid: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
726
764
|
};
|
|
727
765
|
|
|
728
766
|
if (includeInstance) {
|
|
@@ -736,23 +774,23 @@ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
|
736
774
|
/**
|
|
737
775
|
* Deserializes binary data (in protobuf wire format).
|
|
738
776
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
739
|
-
* @return {!proto.trb.db.api.public.contract.v1.
|
|
777
|
+
* @return {!proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest}
|
|
740
778
|
*/
|
|
741
|
-
proto.trb.db.api.public.contract.v1.
|
|
779
|
+
proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest.deserializeBinary = function(bytes) {
|
|
742
780
|
var reader = new jspb.BinaryReader(bytes);
|
|
743
|
-
var msg = new proto.trb.db.api.public.contract.v1.
|
|
744
|
-
return proto.trb.db.api.public.contract.v1.
|
|
781
|
+
var msg = new proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest;
|
|
782
|
+
return proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest.deserializeBinaryFromReader(msg, reader);
|
|
745
783
|
};
|
|
746
784
|
|
|
747
785
|
|
|
748
786
|
/**
|
|
749
787
|
* Deserializes binary data (in protobuf wire format) from the
|
|
750
788
|
* given reader into the given message object.
|
|
751
|
-
* @param {!proto.trb.db.api.public.contract.v1.
|
|
789
|
+
* @param {!proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest} msg The message object to deserialize into.
|
|
752
790
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
753
|
-
* @return {!proto.trb.db.api.public.contract.v1.
|
|
791
|
+
* @return {!proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest}
|
|
754
792
|
*/
|
|
755
|
-
proto.trb.db.api.public.contract.v1.
|
|
793
|
+
proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
756
794
|
while (reader.nextField()) {
|
|
757
795
|
if (reader.isEndGroup()) {
|
|
758
796
|
break;
|
|
@@ -760,9 +798,8 @@ proto.trb.db.api.public.contract.v1.ListInstrumentsResponse.deserializeBinaryFro
|
|
|
760
798
|
var field = reader.getFieldNumber();
|
|
761
799
|
switch (field) {
|
|
762
800
|
case 1:
|
|
763
|
-
var value =
|
|
764
|
-
|
|
765
|
-
msg.addItems(value);
|
|
801
|
+
var value = /** @type {string} */ (reader.readString());
|
|
802
|
+
msg.setUid(value);
|
|
766
803
|
break;
|
|
767
804
|
default:
|
|
768
805
|
reader.skipField();
|
|
@@ -777,9 +814,9 @@ proto.trb.db.api.public.contract.v1.ListInstrumentsResponse.deserializeBinaryFro
|
|
|
777
814
|
* Serializes the message to binary data (in protobuf wire format).
|
|
778
815
|
* @return {!Uint8Array}
|
|
779
816
|
*/
|
|
780
|
-
proto.trb.db.api.public.contract.v1.
|
|
817
|
+
proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest.prototype.serializeBinary = function() {
|
|
781
818
|
var writer = new jspb.BinaryWriter();
|
|
782
|
-
proto.trb.db.api.public.contract.v1.
|
|
819
|
+
proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest.serializeBinaryToWriter(this, writer);
|
|
783
820
|
return writer.getResultBuffer();
|
|
784
821
|
};
|
|
785
822
|
|
|
@@ -787,58 +824,37 @@ proto.trb.db.api.public.contract.v1.ListInstrumentsResponse.prototype.serializeB
|
|
|
787
824
|
/**
|
|
788
825
|
* Serializes the given message to binary data (in protobuf wire
|
|
789
826
|
* format), writing to the given BinaryWriter.
|
|
790
|
-
* @param {!proto.trb.db.api.public.contract.v1.
|
|
827
|
+
* @param {!proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest} message
|
|
791
828
|
* @param {!jspb.BinaryWriter} writer
|
|
792
829
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
793
830
|
*/
|
|
794
|
-
proto.trb.db.api.public.contract.v1.
|
|
831
|
+
proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
795
832
|
var f = undefined;
|
|
796
|
-
f = message.
|
|
833
|
+
f = message.getUid();
|
|
797
834
|
if (f.length > 0) {
|
|
798
|
-
writer.
|
|
835
|
+
writer.writeString(
|
|
799
836
|
1,
|
|
800
|
-
f
|
|
801
|
-
proto.trb.db.api.public.contract.v1.Instrument.serializeBinaryToWriter
|
|
837
|
+
f
|
|
802
838
|
);
|
|
803
839
|
}
|
|
804
840
|
};
|
|
805
841
|
|
|
806
842
|
|
|
807
843
|
/**
|
|
808
|
-
*
|
|
809
|
-
* @return {
|
|
810
|
-
*/
|
|
811
|
-
proto.trb.db.api.public.contract.v1.ListInstrumentsResponse.prototype.getItemsList = function() {
|
|
812
|
-
return /** @type{!Array<!proto.trb.db.api.public.contract.v1.Instrument>} */ (
|
|
813
|
-
jspb.Message.getRepeatedWrapperField(this, proto.trb.db.api.public.contract.v1.Instrument, 1));
|
|
814
|
-
};
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
/**
|
|
818
|
-
* @param {!Array<!proto.trb.db.api.public.contract.v1.Instrument>} value
|
|
819
|
-
* @return {!proto.trb.db.api.public.contract.v1.ListInstrumentsResponse} returns this
|
|
820
|
-
*/
|
|
821
|
-
proto.trb.db.api.public.contract.v1.ListInstrumentsResponse.prototype.setItemsList = function(value) {
|
|
822
|
-
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
823
|
-
};
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
/**
|
|
827
|
-
* @param {!proto.trb.db.api.public.contract.v1.Instrument=} opt_value
|
|
828
|
-
* @param {number=} opt_index
|
|
829
|
-
* @return {!proto.trb.db.api.public.contract.v1.Instrument}
|
|
844
|
+
* optional string uid = 1;
|
|
845
|
+
* @return {string}
|
|
830
846
|
*/
|
|
831
|
-
proto.trb.db.api.public.contract.v1.
|
|
832
|
-
return jspb.Message.
|
|
847
|
+
proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest.prototype.getUid = function() {
|
|
848
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
833
849
|
};
|
|
834
850
|
|
|
835
851
|
|
|
836
852
|
/**
|
|
837
|
-
*
|
|
838
|
-
* @return {!proto.trb.db.api.public.contract.v1.
|
|
853
|
+
* @param {string} value
|
|
854
|
+
* @return {!proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest} returns this
|
|
839
855
|
*/
|
|
840
|
-
proto.trb.db.api.public.contract.v1.
|
|
841
|
-
return
|
|
856
|
+
proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest.prototype.setUid = function(value) {
|
|
857
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
842
858
|
};
|
|
843
859
|
|
|
844
860
|
|
|
@@ -858,8 +874,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
858
874
|
* http://goto/soy-param-migration
|
|
859
875
|
* @return {!Object}
|
|
860
876
|
*/
|
|
861
|
-
proto.trb.db.api.public.contract.v1.
|
|
862
|
-
return proto.trb.db.api.public.contract.v1.
|
|
877
|
+
proto.trb.db.api.public.contract.v1.InstrumentVersion.prototype.toObject = function(opt_includeInstance) {
|
|
878
|
+
return proto.trb.db.api.public.contract.v1.InstrumentVersion.toObject(opt_includeInstance, this);
|
|
863
879
|
};
|
|
864
880
|
|
|
865
881
|
|
|
@@ -868,30 +884,15 @@ proto.trb.db.api.public.contract.v1.Instrument.prototype.toObject = function(opt
|
|
|
868
884
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
869
885
|
* the JSPB instance for transitional soy proto support:
|
|
870
886
|
* http://goto/soy-param-migration
|
|
871
|
-
* @param {!proto.trb.db.api.public.contract.v1.
|
|
887
|
+
* @param {!proto.trb.db.api.public.contract.v1.InstrumentVersion} msg The msg instance to transform.
|
|
872
888
|
* @return {!Object}
|
|
873
889
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
874
890
|
*/
|
|
875
|
-
proto.trb.db.api.public.contract.v1.
|
|
891
|
+
proto.trb.db.api.public.contract.v1.InstrumentVersion.toObject = function(includeInstance, msg) {
|
|
876
892
|
var f, obj = {
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
name: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
881
|
-
classCode: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
882
|
-
isin: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
883
|
-
lot: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
884
|
-
currency: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
885
|
-
exchange: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
886
|
-
sector: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
887
|
-
tradingStatus: jspb.Message.getFieldWithDefault(msg, 11, 0),
|
|
888
|
-
liquidityFlag: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
|
|
889
|
-
shortEnabledFlag: jspb.Message.getBooleanFieldWithDefault(msg, 13, false),
|
|
890
|
-
apiTradeAvailableFlag: jspb.Message.getBooleanFieldWithDefault(msg, 14, false),
|
|
891
|
-
buyAvailableFlag: jspb.Message.getBooleanFieldWithDefault(msg, 15, false),
|
|
892
|
-
sellAvailableFlag: jspb.Message.getBooleanFieldWithDefault(msg, 16, false),
|
|
893
|
-
first1minCandleDate: (f = msg.getFirst1minCandleDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
894
|
-
first1dayCandleDate: (f = msg.getFirst1dayCandleDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
893
|
+
share: (f = msg.getShare()) && tinvest_instruments_pb.Share.toObject(includeInstance, f),
|
|
894
|
+
actual: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
895
|
+
version: (f = msg.getVersion()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
895
896
|
};
|
|
896
897
|
|
|
897
898
|
if (includeInstance) {
|
|
@@ -905,23 +906,23 @@ first1dayCandleDate: (f = msg.getFirst1dayCandleDate()) && google_protobuf_times
|
|
|
905
906
|
/**
|
|
906
907
|
* Deserializes binary data (in protobuf wire format).
|
|
907
908
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
908
|
-
* @return {!proto.trb.db.api.public.contract.v1.
|
|
909
|
+
* @return {!proto.trb.db.api.public.contract.v1.InstrumentVersion}
|
|
909
910
|
*/
|
|
910
|
-
proto.trb.db.api.public.contract.v1.
|
|
911
|
+
proto.trb.db.api.public.contract.v1.InstrumentVersion.deserializeBinary = function(bytes) {
|
|
911
912
|
var reader = new jspb.BinaryReader(bytes);
|
|
912
|
-
var msg = new proto.trb.db.api.public.contract.v1.
|
|
913
|
-
return proto.trb.db.api.public.contract.v1.
|
|
913
|
+
var msg = new proto.trb.db.api.public.contract.v1.InstrumentVersion;
|
|
914
|
+
return proto.trb.db.api.public.contract.v1.InstrumentVersion.deserializeBinaryFromReader(msg, reader);
|
|
914
915
|
};
|
|
915
916
|
|
|
916
917
|
|
|
917
918
|
/**
|
|
918
919
|
* Deserializes binary data (in protobuf wire format) from the
|
|
919
920
|
* given reader into the given message object.
|
|
920
|
-
* @param {!proto.trb.db.api.public.contract.v1.
|
|
921
|
+
* @param {!proto.trb.db.api.public.contract.v1.InstrumentVersion} msg The message object to deserialize into.
|
|
921
922
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
922
|
-
* @return {!proto.trb.db.api.public.contract.v1.
|
|
923
|
+
* @return {!proto.trb.db.api.public.contract.v1.InstrumentVersion}
|
|
923
924
|
*/
|
|
924
|
-
proto.trb.db.api.public.contract.v1.
|
|
925
|
+
proto.trb.db.api.public.contract.v1.InstrumentVersion.deserializeBinaryFromReader = function(msg, reader) {
|
|
925
926
|
while (reader.nextField()) {
|
|
926
927
|
if (reader.isEndGroup()) {
|
|
927
928
|
break;
|
|
@@ -929,78 +930,18 @@ proto.trb.db.api.public.contract.v1.Instrument.deserializeBinaryFromReader = fun
|
|
|
929
930
|
var field = reader.getFieldNumber();
|
|
930
931
|
switch (field) {
|
|
931
932
|
case 1:
|
|
932
|
-
var value =
|
|
933
|
-
|
|
933
|
+
var value = new tinvest_instruments_pb.Share;
|
|
934
|
+
reader.readMessage(value,tinvest_instruments_pb.Share.deserializeBinaryFromReader);
|
|
935
|
+
msg.setShare(value);
|
|
934
936
|
break;
|
|
935
937
|
case 2:
|
|
936
|
-
var value = /** @type {string} */ (reader.readString());
|
|
937
|
-
msg.setFigi(value);
|
|
938
|
-
break;
|
|
939
|
-
case 3:
|
|
940
|
-
var value = /** @type {string} */ (reader.readString());
|
|
941
|
-
msg.setTicker(value);
|
|
942
|
-
break;
|
|
943
|
-
case 4:
|
|
944
|
-
var value = /** @type {string} */ (reader.readString());
|
|
945
|
-
msg.setName(value);
|
|
946
|
-
break;
|
|
947
|
-
case 5:
|
|
948
|
-
var value = /** @type {string} */ (reader.readString());
|
|
949
|
-
msg.setClassCode(value);
|
|
950
|
-
break;
|
|
951
|
-
case 6:
|
|
952
|
-
var value = /** @type {string} */ (reader.readString());
|
|
953
|
-
msg.setIsin(value);
|
|
954
|
-
break;
|
|
955
|
-
case 7:
|
|
956
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
957
|
-
msg.setLot(value);
|
|
958
|
-
break;
|
|
959
|
-
case 8:
|
|
960
|
-
var value = /** @type {string} */ (reader.readString());
|
|
961
|
-
msg.setCurrency(value);
|
|
962
|
-
break;
|
|
963
|
-
case 9:
|
|
964
|
-
var value = /** @type {string} */ (reader.readString());
|
|
965
|
-
msg.setExchange(value);
|
|
966
|
-
break;
|
|
967
|
-
case 10:
|
|
968
|
-
var value = /** @type {string} */ (reader.readString());
|
|
969
|
-
msg.setSector(value);
|
|
970
|
-
break;
|
|
971
|
-
case 11:
|
|
972
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
973
|
-
msg.setTradingStatus(value);
|
|
974
|
-
break;
|
|
975
|
-
case 12:
|
|
976
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
|
977
|
-
msg.setLiquidityFlag(value);
|
|
978
|
-
break;
|
|
979
|
-
case 13:
|
|
980
938
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
981
|
-
msg.
|
|
939
|
+
msg.setActual(value);
|
|
982
940
|
break;
|
|
983
|
-
case
|
|
984
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
|
985
|
-
msg.setApiTradeAvailableFlag(value);
|
|
986
|
-
break;
|
|
987
|
-
case 15:
|
|
988
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
|
989
|
-
msg.setBuyAvailableFlag(value);
|
|
990
|
-
break;
|
|
991
|
-
case 16:
|
|
992
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
|
993
|
-
msg.setSellAvailableFlag(value);
|
|
994
|
-
break;
|
|
995
|
-
case 17:
|
|
996
|
-
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
997
|
-
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
998
|
-
msg.setFirst1minCandleDate(value);
|
|
999
|
-
break;
|
|
1000
|
-
case 18:
|
|
941
|
+
case 3:
|
|
1001
942
|
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
1002
943
|
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
1003
|
-
msg.
|
|
944
|
+
msg.setVersion(value);
|
|
1004
945
|
break;
|
|
1005
946
|
default:
|
|
1006
947
|
reader.skipField();
|
|
@@ -1015,9 +956,9 @@ proto.trb.db.api.public.contract.v1.Instrument.deserializeBinaryFromReader = fun
|
|
|
1015
956
|
* Serializes the message to binary data (in protobuf wire format).
|
|
1016
957
|
* @return {!Uint8Array}
|
|
1017
958
|
*/
|
|
1018
|
-
proto.trb.db.api.public.contract.v1.
|
|
959
|
+
proto.trb.db.api.public.contract.v1.InstrumentVersion.prototype.serializeBinary = function() {
|
|
1019
960
|
var writer = new jspb.BinaryWriter();
|
|
1020
|
-
proto.trb.db.api.public.contract.v1.
|
|
961
|
+
proto.trb.db.api.public.contract.v1.InstrumentVersion.serializeBinaryToWriter(this, writer);
|
|
1021
962
|
return writer.getResultBuffer();
|
|
1022
963
|
};
|
|
1023
964
|
|
|
@@ -1025,136 +966,31 @@ proto.trb.db.api.public.contract.v1.Instrument.prototype.serializeBinary = funct
|
|
|
1025
966
|
/**
|
|
1026
967
|
* Serializes the given message to binary data (in protobuf wire
|
|
1027
968
|
* format), writing to the given BinaryWriter.
|
|
1028
|
-
* @param {!proto.trb.db.api.public.contract.v1.
|
|
969
|
+
* @param {!proto.trb.db.api.public.contract.v1.InstrumentVersion} message
|
|
1029
970
|
* @param {!jspb.BinaryWriter} writer
|
|
1030
971
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1031
972
|
*/
|
|
1032
|
-
proto.trb.db.api.public.contract.v1.
|
|
973
|
+
proto.trb.db.api.public.contract.v1.InstrumentVersion.serializeBinaryToWriter = function(message, writer) {
|
|
1033
974
|
var f = undefined;
|
|
1034
|
-
f = message.
|
|
1035
|
-
if (f
|
|
1036
|
-
writer.
|
|
975
|
+
f = message.getShare();
|
|
976
|
+
if (f != null) {
|
|
977
|
+
writer.writeMessage(
|
|
1037
978
|
1,
|
|
1038
|
-
f
|
|
1039
|
-
|
|
1040
|
-
}
|
|
1041
|
-
f = message.getFigi();
|
|
1042
|
-
if (f.length > 0) {
|
|
1043
|
-
writer.writeString(
|
|
1044
|
-
2,
|
|
1045
|
-
f
|
|
1046
|
-
);
|
|
1047
|
-
}
|
|
1048
|
-
f = message.getTicker();
|
|
1049
|
-
if (f.length > 0) {
|
|
1050
|
-
writer.writeString(
|
|
1051
|
-
3,
|
|
1052
|
-
f
|
|
1053
|
-
);
|
|
1054
|
-
}
|
|
1055
|
-
f = message.getName();
|
|
1056
|
-
if (f.length > 0) {
|
|
1057
|
-
writer.writeString(
|
|
1058
|
-
4,
|
|
1059
|
-
f
|
|
1060
|
-
);
|
|
1061
|
-
}
|
|
1062
|
-
f = message.getClassCode();
|
|
1063
|
-
if (f.length > 0) {
|
|
1064
|
-
writer.writeString(
|
|
1065
|
-
5,
|
|
1066
|
-
f
|
|
1067
|
-
);
|
|
1068
|
-
}
|
|
1069
|
-
f = message.getIsin();
|
|
1070
|
-
if (f.length > 0) {
|
|
1071
|
-
writer.writeString(
|
|
1072
|
-
6,
|
|
1073
|
-
f
|
|
1074
|
-
);
|
|
1075
|
-
}
|
|
1076
|
-
f = message.getLot();
|
|
1077
|
-
if (f !== 0) {
|
|
1078
|
-
writer.writeInt32(
|
|
1079
|
-
7,
|
|
1080
|
-
f
|
|
1081
|
-
);
|
|
1082
|
-
}
|
|
1083
|
-
f = message.getCurrency();
|
|
1084
|
-
if (f.length > 0) {
|
|
1085
|
-
writer.writeString(
|
|
1086
|
-
8,
|
|
1087
|
-
f
|
|
1088
|
-
);
|
|
1089
|
-
}
|
|
1090
|
-
f = message.getExchange();
|
|
1091
|
-
if (f.length > 0) {
|
|
1092
|
-
writer.writeString(
|
|
1093
|
-
9,
|
|
1094
|
-
f
|
|
1095
|
-
);
|
|
1096
|
-
}
|
|
1097
|
-
f = message.getSector();
|
|
1098
|
-
if (f.length > 0) {
|
|
1099
|
-
writer.writeString(
|
|
1100
|
-
10,
|
|
1101
|
-
f
|
|
1102
|
-
);
|
|
1103
|
-
}
|
|
1104
|
-
f = message.getTradingStatus();
|
|
1105
|
-
if (f !== 0) {
|
|
1106
|
-
writer.writeInt32(
|
|
1107
|
-
11,
|
|
1108
|
-
f
|
|
1109
|
-
);
|
|
1110
|
-
}
|
|
1111
|
-
f = message.getLiquidityFlag();
|
|
1112
|
-
if (f) {
|
|
1113
|
-
writer.writeBool(
|
|
1114
|
-
12,
|
|
1115
|
-
f
|
|
1116
|
-
);
|
|
1117
|
-
}
|
|
1118
|
-
f = message.getShortEnabledFlag();
|
|
1119
|
-
if (f) {
|
|
1120
|
-
writer.writeBool(
|
|
1121
|
-
13,
|
|
1122
|
-
f
|
|
1123
|
-
);
|
|
1124
|
-
}
|
|
1125
|
-
f = message.getApiTradeAvailableFlag();
|
|
1126
|
-
if (f) {
|
|
1127
|
-
writer.writeBool(
|
|
1128
|
-
14,
|
|
1129
|
-
f
|
|
1130
|
-
);
|
|
1131
|
-
}
|
|
1132
|
-
f = message.getBuyAvailableFlag();
|
|
1133
|
-
if (f) {
|
|
1134
|
-
writer.writeBool(
|
|
1135
|
-
15,
|
|
1136
|
-
f
|
|
979
|
+
f,
|
|
980
|
+
tinvest_instruments_pb.Share.serializeBinaryToWriter
|
|
1137
981
|
);
|
|
1138
982
|
}
|
|
1139
|
-
f = message.
|
|
983
|
+
f = message.getActual();
|
|
1140
984
|
if (f) {
|
|
1141
985
|
writer.writeBool(
|
|
1142
|
-
|
|
986
|
+
2,
|
|
1143
987
|
f
|
|
1144
988
|
);
|
|
1145
989
|
}
|
|
1146
|
-
f = message.
|
|
990
|
+
f = message.getVersion();
|
|
1147
991
|
if (f != null) {
|
|
1148
992
|
writer.writeMessage(
|
|
1149
|
-
|
|
1150
|
-
f,
|
|
1151
|
-
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
1152
|
-
);
|
|
1153
|
-
}
|
|
1154
|
-
f = message.getFirst1dayCandleDate();
|
|
1155
|
-
if (f != null) {
|
|
1156
|
-
writer.writeMessage(
|
|
1157
|
-
18,
|
|
993
|
+
3,
|
|
1158
994
|
f,
|
|
1159
995
|
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
1160
996
|
);
|
|
@@ -1163,364 +999,474 @@ proto.trb.db.api.public.contract.v1.Instrument.serializeBinaryToWriter = functio
|
|
|
1163
999
|
|
|
1164
1000
|
|
|
1165
1001
|
/**
|
|
1166
|
-
* optional
|
|
1167
|
-
* @return {
|
|
1002
|
+
* optional tinkoff.public.invest.api.contract.v1.Share share = 1;
|
|
1003
|
+
* @return {?proto.tinkoff.public.invest.api.contract.v1.Share}
|
|
1168
1004
|
*/
|
|
1169
|
-
proto.trb.db.api.public.contract.v1.
|
|
1170
|
-
return /** @type
|
|
1005
|
+
proto.trb.db.api.public.contract.v1.InstrumentVersion.prototype.getShare = function() {
|
|
1006
|
+
return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Share} */ (
|
|
1007
|
+
jspb.Message.getWrapperField(this, tinvest_instruments_pb.Share, 1));
|
|
1171
1008
|
};
|
|
1172
1009
|
|
|
1173
1010
|
|
|
1174
1011
|
/**
|
|
1175
|
-
* @param {
|
|
1176
|
-
* @return {!proto.trb.db.api.public.contract.v1.
|
|
1177
|
-
|
|
1178
|
-
proto.trb.db.api.public.contract.v1.
|
|
1179
|
-
return jspb.Message.
|
|
1012
|
+
* @param {?proto.tinkoff.public.invest.api.contract.v1.Share|undefined} value
|
|
1013
|
+
* @return {!proto.trb.db.api.public.contract.v1.InstrumentVersion} returns this
|
|
1014
|
+
*/
|
|
1015
|
+
proto.trb.db.api.public.contract.v1.InstrumentVersion.prototype.setShare = function(value) {
|
|
1016
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
1180
1017
|
};
|
|
1181
1018
|
|
|
1182
1019
|
|
|
1183
1020
|
/**
|
|
1184
|
-
*
|
|
1185
|
-
* @return {
|
|
1021
|
+
* Clears the message field making it undefined.
|
|
1022
|
+
* @return {!proto.trb.db.api.public.contract.v1.InstrumentVersion} returns this
|
|
1186
1023
|
*/
|
|
1187
|
-
proto.trb.db.api.public.contract.v1.
|
|
1188
|
-
return
|
|
1024
|
+
proto.trb.db.api.public.contract.v1.InstrumentVersion.prototype.clearShare = function() {
|
|
1025
|
+
return this.setShare(undefined);
|
|
1189
1026
|
};
|
|
1190
1027
|
|
|
1191
1028
|
|
|
1192
1029
|
/**
|
|
1193
|
-
*
|
|
1194
|
-
* @return {
|
|
1030
|
+
* Returns whether this field is set.
|
|
1031
|
+
* @return {boolean}
|
|
1195
1032
|
*/
|
|
1196
|
-
proto.trb.db.api.public.contract.v1.
|
|
1197
|
-
return jspb.Message.
|
|
1033
|
+
proto.trb.db.api.public.contract.v1.InstrumentVersion.prototype.hasShare = function() {
|
|
1034
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1198
1035
|
};
|
|
1199
1036
|
|
|
1200
1037
|
|
|
1201
1038
|
/**
|
|
1202
|
-
* optional
|
|
1203
|
-
* @return {
|
|
1039
|
+
* optional bool actual = 2;
|
|
1040
|
+
* @return {boolean}
|
|
1204
1041
|
*/
|
|
1205
|
-
proto.trb.db.api.public.contract.v1.
|
|
1206
|
-
return /** @type {
|
|
1042
|
+
proto.trb.db.api.public.contract.v1.InstrumentVersion.prototype.getActual = function() {
|
|
1043
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
1207
1044
|
};
|
|
1208
1045
|
|
|
1209
1046
|
|
|
1210
1047
|
/**
|
|
1211
|
-
* @param {
|
|
1212
|
-
* @return {!proto.trb.db.api.public.contract.v1.
|
|
1048
|
+
* @param {boolean} value
|
|
1049
|
+
* @return {!proto.trb.db.api.public.contract.v1.InstrumentVersion} returns this
|
|
1213
1050
|
*/
|
|
1214
|
-
proto.trb.db.api.public.contract.v1.
|
|
1215
|
-
return jspb.Message.
|
|
1051
|
+
proto.trb.db.api.public.contract.v1.InstrumentVersion.prototype.setActual = function(value) {
|
|
1052
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
1216
1053
|
};
|
|
1217
1054
|
|
|
1218
1055
|
|
|
1219
1056
|
/**
|
|
1220
|
-
* optional
|
|
1221
|
-
* @return {
|
|
1057
|
+
* optional google.protobuf.Timestamp version = 3;
|
|
1058
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
1222
1059
|
*/
|
|
1223
|
-
proto.trb.db.api.public.contract.v1.
|
|
1224
|
-
return /** @type
|
|
1060
|
+
proto.trb.db.api.public.contract.v1.InstrumentVersion.prototype.getVersion = function() {
|
|
1061
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
1062
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
1225
1063
|
};
|
|
1226
1064
|
|
|
1227
1065
|
|
|
1228
1066
|
/**
|
|
1229
|
-
* @param {
|
|
1230
|
-
* @return {!proto.trb.db.api.public.contract.v1.
|
|
1231
|
-
|
|
1232
|
-
proto.trb.db.api.public.contract.v1.
|
|
1233
|
-
return jspb.Message.
|
|
1067
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
1068
|
+
* @return {!proto.trb.db.api.public.contract.v1.InstrumentVersion} returns this
|
|
1069
|
+
*/
|
|
1070
|
+
proto.trb.db.api.public.contract.v1.InstrumentVersion.prototype.setVersion = function(value) {
|
|
1071
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
1234
1072
|
};
|
|
1235
1073
|
|
|
1236
1074
|
|
|
1237
1075
|
/**
|
|
1238
|
-
*
|
|
1239
|
-
* @return {
|
|
1076
|
+
* Clears the message field making it undefined.
|
|
1077
|
+
* @return {!proto.trb.db.api.public.contract.v1.InstrumentVersion} returns this
|
|
1240
1078
|
*/
|
|
1241
|
-
proto.trb.db.api.public.contract.v1.
|
|
1242
|
-
return
|
|
1079
|
+
proto.trb.db.api.public.contract.v1.InstrumentVersion.prototype.clearVersion = function() {
|
|
1080
|
+
return this.setVersion(undefined);
|
|
1243
1081
|
};
|
|
1244
1082
|
|
|
1245
1083
|
|
|
1246
1084
|
/**
|
|
1247
|
-
*
|
|
1248
|
-
* @return {
|
|
1085
|
+
* Returns whether this field is set.
|
|
1086
|
+
* @return {boolean}
|
|
1249
1087
|
*/
|
|
1250
|
-
proto.trb.db.api.public.contract.v1.
|
|
1251
|
-
return jspb.Message.
|
|
1088
|
+
proto.trb.db.api.public.contract.v1.InstrumentVersion.prototype.hasVersion = function() {
|
|
1089
|
+
return jspb.Message.getField(this, 3) != null;
|
|
1252
1090
|
};
|
|
1253
1091
|
|
|
1254
1092
|
|
|
1255
|
-
/**
|
|
1256
|
-
* optional string isin = 6;
|
|
1257
|
-
* @return {string}
|
|
1258
|
-
*/
|
|
1259
|
-
proto.trb.db.api.public.contract.v1.Instrument.prototype.getIsin = function() {
|
|
1260
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
1261
|
-
};
|
|
1262
|
-
|
|
1263
1093
|
|
|
1264
1094
|
/**
|
|
1265
|
-
*
|
|
1266
|
-
* @
|
|
1095
|
+
* List of repeated fields within this message type.
|
|
1096
|
+
* @private {!Array<number>}
|
|
1097
|
+
* @const
|
|
1267
1098
|
*/
|
|
1268
|
-
proto.trb.db.api.public.contract.v1.
|
|
1269
|
-
return jspb.Message.setProto3StringField(this, 6, value);
|
|
1270
|
-
};
|
|
1099
|
+
proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse.repeatedFields_ = [1];
|
|
1271
1100
|
|
|
1272
1101
|
|
|
1273
|
-
/**
|
|
1274
|
-
* optional int32 lot = 7;
|
|
1275
|
-
* @return {number}
|
|
1276
|
-
*/
|
|
1277
|
-
proto.trb.db.api.public.contract.v1.Instrument.prototype.getLot = function() {
|
|
1278
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
1279
|
-
};
|
|
1280
|
-
|
|
1281
1102
|
|
|
1103
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1282
1104
|
/**
|
|
1283
|
-
*
|
|
1284
|
-
*
|
|
1105
|
+
* Creates an object representation of this proto.
|
|
1106
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1107
|
+
* Optional fields that are not set will be set to undefined.
|
|
1108
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1109
|
+
* For the list of reserved names please see:
|
|
1110
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1111
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1112
|
+
* JSPB instance for transitional soy proto support:
|
|
1113
|
+
* http://goto/soy-param-migration
|
|
1114
|
+
* @return {!Object}
|
|
1285
1115
|
*/
|
|
1286
|
-
proto.trb.db.api.public.contract.v1.
|
|
1287
|
-
return
|
|
1116
|
+
proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1117
|
+
return proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse.toObject(opt_includeInstance, this);
|
|
1288
1118
|
};
|
|
1289
1119
|
|
|
1290
1120
|
|
|
1291
1121
|
/**
|
|
1292
|
-
*
|
|
1293
|
-
* @
|
|
1122
|
+
* Static version of the {@see toObject} method.
|
|
1123
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1124
|
+
* the JSPB instance for transitional soy proto support:
|
|
1125
|
+
* http://goto/soy-param-migration
|
|
1126
|
+
* @param {!proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse} msg The msg instance to transform.
|
|
1127
|
+
* @return {!Object}
|
|
1128
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1294
1129
|
*/
|
|
1295
|
-
proto.trb.db.api.public.contract.v1.
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1130
|
+
proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse.toObject = function(includeInstance, msg) {
|
|
1131
|
+
var f, obj = {
|
|
1132
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
1133
|
+
proto.trb.db.api.public.contract.v1.InstrumentVersion.toObject, includeInstance)
|
|
1134
|
+
};
|
|
1299
1135
|
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
proto.trb.db.api.public.contract.v1.Instrument.prototype.setCurrency = function(value) {
|
|
1305
|
-
return jspb.Message.setProto3StringField(this, 8, value);
|
|
1136
|
+
if (includeInstance) {
|
|
1137
|
+
obj.$jspbMessageInstance = msg;
|
|
1138
|
+
}
|
|
1139
|
+
return obj;
|
|
1306
1140
|
};
|
|
1141
|
+
}
|
|
1307
1142
|
|
|
1308
1143
|
|
|
1309
1144
|
/**
|
|
1310
|
-
*
|
|
1311
|
-
* @
|
|
1145
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1146
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1147
|
+
* @return {!proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse}
|
|
1312
1148
|
*/
|
|
1313
|
-
proto.trb.db.api.public.contract.v1.
|
|
1314
|
-
|
|
1149
|
+
proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse.deserializeBinary = function(bytes) {
|
|
1150
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1151
|
+
var msg = new proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse;
|
|
1152
|
+
return proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse.deserializeBinaryFromReader(msg, reader);
|
|
1315
1153
|
};
|
|
1316
1154
|
|
|
1317
1155
|
|
|
1318
1156
|
/**
|
|
1319
|
-
*
|
|
1320
|
-
*
|
|
1157
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1158
|
+
* given reader into the given message object.
|
|
1159
|
+
* @param {!proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse} msg The message object to deserialize into.
|
|
1160
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1161
|
+
* @return {!proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse}
|
|
1321
1162
|
*/
|
|
1322
|
-
proto.trb.db.api.public.contract.v1.
|
|
1323
|
-
|
|
1163
|
+
proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1164
|
+
while (reader.nextField()) {
|
|
1165
|
+
if (reader.isEndGroup()) {
|
|
1166
|
+
break;
|
|
1167
|
+
}
|
|
1168
|
+
var field = reader.getFieldNumber();
|
|
1169
|
+
switch (field) {
|
|
1170
|
+
case 1:
|
|
1171
|
+
var value = new proto.trb.db.api.public.contract.v1.InstrumentVersion;
|
|
1172
|
+
reader.readMessage(value,proto.trb.db.api.public.contract.v1.InstrumentVersion.deserializeBinaryFromReader);
|
|
1173
|
+
msg.addItems(value);
|
|
1174
|
+
break;
|
|
1175
|
+
default:
|
|
1176
|
+
reader.skipField();
|
|
1177
|
+
break;
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
return msg;
|
|
1324
1181
|
};
|
|
1325
1182
|
|
|
1326
1183
|
|
|
1327
1184
|
/**
|
|
1328
|
-
*
|
|
1329
|
-
* @return {
|
|
1185
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1186
|
+
* @return {!Uint8Array}
|
|
1330
1187
|
*/
|
|
1331
|
-
proto.trb.db.api.public.contract.v1.
|
|
1332
|
-
|
|
1188
|
+
proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse.prototype.serializeBinary = function() {
|
|
1189
|
+
var writer = new jspb.BinaryWriter();
|
|
1190
|
+
proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse.serializeBinaryToWriter(this, writer);
|
|
1191
|
+
return writer.getResultBuffer();
|
|
1333
1192
|
};
|
|
1334
1193
|
|
|
1335
1194
|
|
|
1336
1195
|
/**
|
|
1337
|
-
*
|
|
1338
|
-
*
|
|
1196
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1197
|
+
* format), writing to the given BinaryWriter.
|
|
1198
|
+
* @param {!proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse} message
|
|
1199
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1200
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1339
1201
|
*/
|
|
1340
|
-
proto.trb.db.api.public.contract.v1.
|
|
1341
|
-
|
|
1202
|
+
proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1203
|
+
var f = undefined;
|
|
1204
|
+
f = message.getItemsList();
|
|
1205
|
+
if (f.length > 0) {
|
|
1206
|
+
writer.writeRepeatedMessage(
|
|
1207
|
+
1,
|
|
1208
|
+
f,
|
|
1209
|
+
proto.trb.db.api.public.contract.v1.InstrumentVersion.serializeBinaryToWriter
|
|
1210
|
+
);
|
|
1211
|
+
}
|
|
1342
1212
|
};
|
|
1343
1213
|
|
|
1344
1214
|
|
|
1345
1215
|
/**
|
|
1346
|
-
*
|
|
1347
|
-
* @return {
|
|
1216
|
+
* repeated InstrumentVersion items = 1;
|
|
1217
|
+
* @return {!Array<!proto.trb.db.api.public.contract.v1.InstrumentVersion>}
|
|
1348
1218
|
*/
|
|
1349
|
-
proto.trb.db.api.public.contract.v1.
|
|
1350
|
-
return /** @type
|
|
1219
|
+
proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse.prototype.getItemsList = function() {
|
|
1220
|
+
return /** @type{!Array<!proto.trb.db.api.public.contract.v1.InstrumentVersion>} */ (
|
|
1221
|
+
jspb.Message.getRepeatedWrapperField(this, proto.trb.db.api.public.contract.v1.InstrumentVersion, 1));
|
|
1351
1222
|
};
|
|
1352
1223
|
|
|
1353
1224
|
|
|
1354
1225
|
/**
|
|
1355
|
-
* @param {
|
|
1356
|
-
* @return {!proto.trb.db.api.public.contract.v1.
|
|
1357
|
-
|
|
1358
|
-
proto.trb.db.api.public.contract.v1.
|
|
1359
|
-
return jspb.Message.
|
|
1226
|
+
* @param {!Array<!proto.trb.db.api.public.contract.v1.InstrumentVersion>} value
|
|
1227
|
+
* @return {!proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse} returns this
|
|
1228
|
+
*/
|
|
1229
|
+
proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse.prototype.setItemsList = function(value) {
|
|
1230
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
1360
1231
|
};
|
|
1361
1232
|
|
|
1362
1233
|
|
|
1363
1234
|
/**
|
|
1364
|
-
*
|
|
1365
|
-
* @
|
|
1235
|
+
* @param {!proto.trb.db.api.public.contract.v1.InstrumentVersion=} opt_value
|
|
1236
|
+
* @param {number=} opt_index
|
|
1237
|
+
* @return {!proto.trb.db.api.public.contract.v1.InstrumentVersion}
|
|
1366
1238
|
*/
|
|
1367
|
-
proto.trb.db.api.public.contract.v1.
|
|
1368
|
-
return
|
|
1239
|
+
proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
1240
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.trb.db.api.public.contract.v1.InstrumentVersion, opt_index);
|
|
1369
1241
|
};
|
|
1370
1242
|
|
|
1371
1243
|
|
|
1372
1244
|
/**
|
|
1373
|
-
*
|
|
1374
|
-
* @return {!proto.trb.db.api.public.contract.v1.
|
|
1245
|
+
* Clears the list making it empty but non-null.
|
|
1246
|
+
* @return {!proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse} returns this
|
|
1375
1247
|
*/
|
|
1376
|
-
proto.trb.db.api.public.contract.v1.
|
|
1377
|
-
return
|
|
1248
|
+
proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse.prototype.clearItemsList = function() {
|
|
1249
|
+
return this.setItemsList([]);
|
|
1378
1250
|
};
|
|
1379
1251
|
|
|
1380
1252
|
|
|
1381
|
-
/**
|
|
1382
|
-
* optional bool short_enabled_flag = 13;
|
|
1383
|
-
* @return {boolean}
|
|
1384
|
-
*/
|
|
1385
|
-
proto.trb.db.api.public.contract.v1.Instrument.prototype.getShortEnabledFlag = function() {
|
|
1386
|
-
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false));
|
|
1387
|
-
};
|
|
1388
1253
|
|
|
1389
1254
|
|
|
1390
|
-
/**
|
|
1391
|
-
* @param {boolean} value
|
|
1392
|
-
* @return {!proto.trb.db.api.public.contract.v1.Instrument} returns this
|
|
1393
|
-
*/
|
|
1394
|
-
proto.trb.db.api.public.contract.v1.Instrument.prototype.setShortEnabledFlag = function(value) {
|
|
1395
|
-
return jspb.Message.setProto3BooleanField(this, 13, value);
|
|
1396
|
-
};
|
|
1397
|
-
|
|
1398
1255
|
|
|
1256
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1399
1257
|
/**
|
|
1400
|
-
*
|
|
1401
|
-
*
|
|
1258
|
+
* Creates an object representation of this proto.
|
|
1259
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1260
|
+
* Optional fields that are not set will be set to undefined.
|
|
1261
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1262
|
+
* For the list of reserved names please see:
|
|
1263
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1264
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1265
|
+
* JSPB instance for transitional soy proto support:
|
|
1266
|
+
* http://goto/soy-param-migration
|
|
1267
|
+
* @return {!Object}
|
|
1402
1268
|
*/
|
|
1403
|
-
proto.trb.db.api.public.contract.v1.
|
|
1404
|
-
return
|
|
1269
|
+
proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1270
|
+
return proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse.toObject(opt_includeInstance, this);
|
|
1405
1271
|
};
|
|
1406
1272
|
|
|
1407
1273
|
|
|
1408
1274
|
/**
|
|
1409
|
-
* @
|
|
1410
|
-
* @
|
|
1275
|
+
* Static version of the {@see toObject} method.
|
|
1276
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1277
|
+
* the JSPB instance for transitional soy proto support:
|
|
1278
|
+
* http://goto/soy-param-migration
|
|
1279
|
+
* @param {!proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse} msg The msg instance to transform.
|
|
1280
|
+
* @return {!Object}
|
|
1281
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1411
1282
|
*/
|
|
1412
|
-
proto.trb.db.api.public.contract.v1.
|
|
1413
|
-
|
|
1283
|
+
proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse.toObject = function(includeInstance, msg) {
|
|
1284
|
+
var f, obj = {
|
|
1285
|
+
fetched: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
1286
|
+
inserted: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
1287
|
+
updated: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
1288
|
+
unchanged: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
1289
|
+
};
|
|
1290
|
+
|
|
1291
|
+
if (includeInstance) {
|
|
1292
|
+
obj.$jspbMessageInstance = msg;
|
|
1293
|
+
}
|
|
1294
|
+
return obj;
|
|
1414
1295
|
};
|
|
1296
|
+
}
|
|
1415
1297
|
|
|
1416
1298
|
|
|
1417
1299
|
/**
|
|
1418
|
-
*
|
|
1419
|
-
* @
|
|
1300
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1301
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1302
|
+
* @return {!proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse}
|
|
1420
1303
|
*/
|
|
1421
|
-
proto.trb.db.api.public.contract.v1.
|
|
1422
|
-
|
|
1304
|
+
proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse.deserializeBinary = function(bytes) {
|
|
1305
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1306
|
+
var msg = new proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse;
|
|
1307
|
+
return proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse.deserializeBinaryFromReader(msg, reader);
|
|
1423
1308
|
};
|
|
1424
1309
|
|
|
1425
1310
|
|
|
1426
1311
|
/**
|
|
1427
|
-
*
|
|
1428
|
-
*
|
|
1312
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1313
|
+
* given reader into the given message object.
|
|
1314
|
+
* @param {!proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse} msg The message object to deserialize into.
|
|
1315
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1316
|
+
* @return {!proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse}
|
|
1429
1317
|
*/
|
|
1430
|
-
proto.trb.db.api.public.contract.v1.
|
|
1431
|
-
|
|
1318
|
+
proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1319
|
+
while (reader.nextField()) {
|
|
1320
|
+
if (reader.isEndGroup()) {
|
|
1321
|
+
break;
|
|
1322
|
+
}
|
|
1323
|
+
var field = reader.getFieldNumber();
|
|
1324
|
+
switch (field) {
|
|
1325
|
+
case 1:
|
|
1326
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1327
|
+
msg.setFetched(value);
|
|
1328
|
+
break;
|
|
1329
|
+
case 2:
|
|
1330
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1331
|
+
msg.setInserted(value);
|
|
1332
|
+
break;
|
|
1333
|
+
case 3:
|
|
1334
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1335
|
+
msg.setUpdated(value);
|
|
1336
|
+
break;
|
|
1337
|
+
case 4:
|
|
1338
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1339
|
+
msg.setUnchanged(value);
|
|
1340
|
+
break;
|
|
1341
|
+
default:
|
|
1342
|
+
reader.skipField();
|
|
1343
|
+
break;
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
return msg;
|
|
1432
1347
|
};
|
|
1433
1348
|
|
|
1434
1349
|
|
|
1435
1350
|
/**
|
|
1436
|
-
*
|
|
1437
|
-
* @return {
|
|
1351
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1352
|
+
* @return {!Uint8Array}
|
|
1438
1353
|
*/
|
|
1439
|
-
proto.trb.db.api.public.contract.v1.
|
|
1440
|
-
|
|
1354
|
+
proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse.prototype.serializeBinary = function() {
|
|
1355
|
+
var writer = new jspb.BinaryWriter();
|
|
1356
|
+
proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse.serializeBinaryToWriter(this, writer);
|
|
1357
|
+
return writer.getResultBuffer();
|
|
1441
1358
|
};
|
|
1442
1359
|
|
|
1443
1360
|
|
|
1444
1361
|
/**
|
|
1445
|
-
*
|
|
1446
|
-
*
|
|
1362
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1363
|
+
* format), writing to the given BinaryWriter.
|
|
1364
|
+
* @param {!proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse} message
|
|
1365
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1366
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1447
1367
|
*/
|
|
1448
|
-
proto.trb.db.api.public.contract.v1.
|
|
1449
|
-
|
|
1368
|
+
proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1369
|
+
var f = undefined;
|
|
1370
|
+
f = message.getFetched();
|
|
1371
|
+
if (f !== 0) {
|
|
1372
|
+
writer.writeInt32(
|
|
1373
|
+
1,
|
|
1374
|
+
f
|
|
1375
|
+
);
|
|
1376
|
+
}
|
|
1377
|
+
f = message.getInserted();
|
|
1378
|
+
if (f !== 0) {
|
|
1379
|
+
writer.writeInt32(
|
|
1380
|
+
2,
|
|
1381
|
+
f
|
|
1382
|
+
);
|
|
1383
|
+
}
|
|
1384
|
+
f = message.getUpdated();
|
|
1385
|
+
if (f !== 0) {
|
|
1386
|
+
writer.writeInt32(
|
|
1387
|
+
3,
|
|
1388
|
+
f
|
|
1389
|
+
);
|
|
1390
|
+
}
|
|
1391
|
+
f = message.getUnchanged();
|
|
1392
|
+
if (f !== 0) {
|
|
1393
|
+
writer.writeInt32(
|
|
1394
|
+
4,
|
|
1395
|
+
f
|
|
1396
|
+
);
|
|
1397
|
+
}
|
|
1450
1398
|
};
|
|
1451
1399
|
|
|
1452
1400
|
|
|
1453
1401
|
/**
|
|
1454
|
-
* optional
|
|
1455
|
-
* @return {
|
|
1402
|
+
* optional int32 fetched = 1;
|
|
1403
|
+
* @return {number}
|
|
1456
1404
|
*/
|
|
1457
|
-
proto.trb.db.api.public.contract.v1.
|
|
1458
|
-
return /** @type{
|
|
1459
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 17));
|
|
1405
|
+
proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse.prototype.getFetched = function() {
|
|
1406
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
1460
1407
|
};
|
|
1461
1408
|
|
|
1462
1409
|
|
|
1463
1410
|
/**
|
|
1464
|
-
* @param {
|
|
1465
|
-
* @return {!proto.trb.db.api.public.contract.v1.
|
|
1466
|
-
*/
|
|
1467
|
-
proto.trb.db.api.public.contract.v1.
|
|
1468
|
-
return jspb.Message.
|
|
1411
|
+
* @param {number} value
|
|
1412
|
+
* @return {!proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse} returns this
|
|
1413
|
+
*/
|
|
1414
|
+
proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse.prototype.setFetched = function(value) {
|
|
1415
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
1469
1416
|
};
|
|
1470
1417
|
|
|
1471
1418
|
|
|
1472
1419
|
/**
|
|
1473
|
-
*
|
|
1474
|
-
* @return {
|
|
1420
|
+
* optional int32 inserted = 2;
|
|
1421
|
+
* @return {number}
|
|
1475
1422
|
*/
|
|
1476
|
-
proto.trb.db.api.public.contract.v1.
|
|
1477
|
-
return
|
|
1423
|
+
proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse.prototype.getInserted = function() {
|
|
1424
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1478
1425
|
};
|
|
1479
1426
|
|
|
1480
1427
|
|
|
1481
1428
|
/**
|
|
1482
|
-
*
|
|
1483
|
-
* @return {
|
|
1429
|
+
* @param {number} value
|
|
1430
|
+
* @return {!proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse} returns this
|
|
1484
1431
|
*/
|
|
1485
|
-
proto.trb.db.api.public.contract.v1.
|
|
1486
|
-
return jspb.Message.
|
|
1432
|
+
proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse.prototype.setInserted = function(value) {
|
|
1433
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
1487
1434
|
};
|
|
1488
1435
|
|
|
1489
1436
|
|
|
1490
1437
|
/**
|
|
1491
|
-
* optional
|
|
1492
|
-
* @return {
|
|
1438
|
+
* optional int32 updated = 3;
|
|
1439
|
+
* @return {number}
|
|
1493
1440
|
*/
|
|
1494
|
-
proto.trb.db.api.public.contract.v1.
|
|
1495
|
-
return /** @type{
|
|
1496
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 18));
|
|
1441
|
+
proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse.prototype.getUpdated = function() {
|
|
1442
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
1497
1443
|
};
|
|
1498
1444
|
|
|
1499
1445
|
|
|
1500
1446
|
/**
|
|
1501
|
-
* @param {
|
|
1502
|
-
* @return {!proto.trb.db.api.public.contract.v1.
|
|
1503
|
-
*/
|
|
1504
|
-
proto.trb.db.api.public.contract.v1.
|
|
1505
|
-
return jspb.Message.
|
|
1447
|
+
* @param {number} value
|
|
1448
|
+
* @return {!proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse} returns this
|
|
1449
|
+
*/
|
|
1450
|
+
proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse.prototype.setUpdated = function(value) {
|
|
1451
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
1506
1452
|
};
|
|
1507
1453
|
|
|
1508
1454
|
|
|
1509
1455
|
/**
|
|
1510
|
-
*
|
|
1511
|
-
* @return {
|
|
1456
|
+
* optional int32 unchanged = 4;
|
|
1457
|
+
* @return {number}
|
|
1512
1458
|
*/
|
|
1513
|
-
proto.trb.db.api.public.contract.v1.
|
|
1514
|
-
return
|
|
1459
|
+
proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse.prototype.getUnchanged = function() {
|
|
1460
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
1515
1461
|
};
|
|
1516
1462
|
|
|
1517
1463
|
|
|
1518
1464
|
/**
|
|
1519
|
-
*
|
|
1520
|
-
* @return {
|
|
1465
|
+
* @param {number} value
|
|
1466
|
+
* @return {!proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse} returns this
|
|
1521
1467
|
*/
|
|
1522
|
-
proto.trb.db.api.public.contract.v1.
|
|
1523
|
-
return jspb.Message.
|
|
1468
|
+
proto.trb.db.api.public.contract.v1.UpsertInstrumentsResponse.prototype.setUnchanged = function(value) {
|
|
1469
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
1524
1470
|
};
|
|
1525
1471
|
|
|
1526
1472
|
|