@marleena/trb-proto 1.0.6 → 1.0.8

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.
@@ -44,28 +44,28 @@ export class DbApiClient {
44
44
  '/trb.db.api.public.contract.v1.DbApi/ListInstruments',
45
45
  grpcWeb.MethodType.UNARY,
46
46
  api_db_api_db_api_pb.ListInstrumentsRequest,
47
- tinvest_instruments_pb.SharesResponse,
47
+ api_db_api_db_api_pb.ListInstrumentsResponse,
48
48
  (request: api_db_api_db_api_pb.ListInstrumentsRequest) => {
49
49
  return request.serializeBinary();
50
50
  },
51
- tinvest_instruments_pb.SharesResponse.deserializeBinary
51
+ api_db_api_db_api_pb.ListInstrumentsResponse.deserializeBinary
52
52
  );
53
53
 
54
54
  listInstruments(
55
55
  request: api_db_api_db_api_pb.ListInstrumentsRequest,
56
- metadata?: grpcWeb.Metadata | null): Promise<tinvest_instruments_pb.SharesResponse>;
56
+ metadata?: grpcWeb.Metadata | null): Promise<api_db_api_db_api_pb.ListInstrumentsResponse>;
57
57
 
58
58
  listInstruments(
59
59
  request: api_db_api_db_api_pb.ListInstrumentsRequest,
60
60
  metadata: grpcWeb.Metadata | null,
61
61
  callback: (err: grpcWeb.RpcError,
62
- response: tinvest_instruments_pb.SharesResponse) => void): grpcWeb.ClientReadableStream<tinvest_instruments_pb.SharesResponse>;
62
+ response: api_db_api_db_api_pb.ListInstrumentsResponse) => void): grpcWeb.ClientReadableStream<api_db_api_db_api_pb.ListInstrumentsResponse>;
63
63
 
64
64
  listInstruments(
65
65
  request: api_db_api_db_api_pb.ListInstrumentsRequest,
66
66
  metadata?: grpcWeb.Metadata | null,
67
67
  callback?: (err: grpcWeb.RpcError,
68
- response: tinvest_instruments_pb.SharesResponse) => void) {
68
+ response: api_db_api_db_api_pb.ListInstrumentsResponse) => void) {
69
69
  if (callback !== undefined) {
70
70
  return this.client_.rpcCall(
71
71
  this.hostname_ +
@@ -55,6 +55,60 @@ export namespace ListInstrumentsRequest {
55
55
  }
56
56
  }
57
57
 
58
+ export class InstrumentListItem extends jspb.Message {
59
+ getShare(): tinvest_instruments_pb.Share | undefined;
60
+ setShare(value?: tinvest_instruments_pb.Share): InstrumentListItem;
61
+ hasShare(): boolean;
62
+ clearShare(): InstrumentListItem;
63
+
64
+ getActual(): boolean;
65
+ setActual(value: boolean): InstrumentListItem;
66
+
67
+ getVersion(): google_protobuf_timestamp_pb.Timestamp | undefined;
68
+ setVersion(value?: google_protobuf_timestamp_pb.Timestamp): InstrumentListItem;
69
+ hasVersion(): boolean;
70
+ clearVersion(): InstrumentListItem;
71
+
72
+ getVersionCount(): number;
73
+ setVersionCount(value: number): InstrumentListItem;
74
+
75
+ serializeBinary(): Uint8Array;
76
+ toObject(includeInstance?: boolean): InstrumentListItem.AsObject;
77
+ static toObject(includeInstance: boolean, msg: InstrumentListItem): InstrumentListItem.AsObject;
78
+ static serializeBinaryToWriter(message: InstrumentListItem, writer: jspb.BinaryWriter): void;
79
+ static deserializeBinary(bytes: Uint8Array): InstrumentListItem;
80
+ static deserializeBinaryFromReader(message: InstrumentListItem, reader: jspb.BinaryReader): InstrumentListItem;
81
+ }
82
+
83
+ export namespace InstrumentListItem {
84
+ export type AsObject = {
85
+ share?: tinvest_instruments_pb.Share.AsObject,
86
+ actual: boolean,
87
+ version?: google_protobuf_timestamp_pb.Timestamp.AsObject,
88
+ versionCount: number,
89
+ }
90
+ }
91
+
92
+ export class ListInstrumentsResponse extends jspb.Message {
93
+ getItemsList(): Array<InstrumentListItem>;
94
+ setItemsList(value: Array<InstrumentListItem>): ListInstrumentsResponse;
95
+ clearItemsList(): ListInstrumentsResponse;
96
+ addItems(value?: InstrumentListItem, index?: number): InstrumentListItem;
97
+
98
+ serializeBinary(): Uint8Array;
99
+ toObject(includeInstance?: boolean): ListInstrumentsResponse.AsObject;
100
+ static toObject(includeInstance: boolean, msg: ListInstrumentsResponse): ListInstrumentsResponse.AsObject;
101
+ static serializeBinaryToWriter(message: ListInstrumentsResponse, writer: jspb.BinaryWriter): void;
102
+ static deserializeBinary(bytes: Uint8Array): ListInstrumentsResponse;
103
+ static deserializeBinaryFromReader(message: ListInstrumentsResponse, reader: jspb.BinaryReader): ListInstrumentsResponse;
104
+ }
105
+
106
+ export namespace ListInstrumentsResponse {
107
+ export type AsObject = {
108
+ itemsList: Array<InstrumentListItem.AsObject>,
109
+ }
110
+ }
111
+
58
112
  export class ListInstrumentVersionsRequest extends jspb.Message {
59
113
  getUid(): string;
60
114
  setUid(value: string): ListInstrumentVersionsRequest;
@@ -27,12 +27,14 @@ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/time
27
27
  goog.object.extend(proto, google_protobuf_timestamp_pb);
28
28
  var tinvest_instruments_pb = require('../../tinvest/instruments_pb.js');
29
29
  goog.object.extend(proto, tinvest_instruments_pb);
30
+ goog.exportSymbol('proto.trb.db.api.public.contract.v1.InstrumentListItem', null, global);
30
31
  goog.exportSymbol('proto.trb.db.api.public.contract.v1.InstrumentVersion', null, global);
31
32
  goog.exportSymbol('proto.trb.db.api.public.contract.v1.LastDownload', null, global);
32
33
  goog.exportSymbol('proto.trb.db.api.public.contract.v1.ListFilter', null, global);
33
34
  goog.exportSymbol('proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest', null, global);
34
35
  goog.exportSymbol('proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse', null, global);
35
36
  goog.exportSymbol('proto.trb.db.api.public.contract.v1.ListInstrumentsRequest', null, global);
37
+ goog.exportSymbol('proto.trb.db.api.public.contract.v1.ListInstrumentsResponse', null, global);
36
38
  goog.exportSymbol('proto.trb.db.api.public.contract.v1.ListLastDownloadsRequest', null, global);
37
39
  goog.exportSymbol('proto.trb.db.api.public.contract.v1.ListLastDownloadsResponse', null, global);
38
40
  goog.exportSymbol('proto.trb.db.api.public.contract.v1.ListSchedulerTargetsRequest', null, global);
@@ -84,6 +86,48 @@ if (goog.DEBUG && !COMPILED) {
84
86
  */
85
87
  proto.trb.db.api.public.contract.v1.ListInstrumentsRequest.displayName = 'proto.trb.db.api.public.contract.v1.ListInstrumentsRequest';
86
88
  }
89
+ /**
90
+ * Generated by JsPbCodeGenerator.
91
+ * @param {Array=} opt_data Optional initial data array, typically from a
92
+ * server response, or constructed directly in Javascript. The array is used
93
+ * in place and becomes part of the constructed object. It is not cloned.
94
+ * If no data is provided, the constructed object will be empty, but still
95
+ * valid.
96
+ * @extends {jspb.Message}
97
+ * @constructor
98
+ */
99
+ proto.trb.db.api.public.contract.v1.InstrumentListItem = function(opt_data) {
100
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
101
+ };
102
+ goog.inherits(proto.trb.db.api.public.contract.v1.InstrumentListItem, jspb.Message);
103
+ if (goog.DEBUG && !COMPILED) {
104
+ /**
105
+ * @public
106
+ * @override
107
+ */
108
+ proto.trb.db.api.public.contract.v1.InstrumentListItem.displayName = 'proto.trb.db.api.public.contract.v1.InstrumentListItem';
109
+ }
110
+ /**
111
+ * Generated by JsPbCodeGenerator.
112
+ * @param {Array=} opt_data Optional initial data array, typically from a
113
+ * server response, or constructed directly in Javascript. The array is used
114
+ * in place and becomes part of the constructed object. It is not cloned.
115
+ * If no data is provided, the constructed object will be empty, but still
116
+ * valid.
117
+ * @extends {jspb.Message}
118
+ * @constructor
119
+ */
120
+ proto.trb.db.api.public.contract.v1.ListInstrumentsResponse = function(opt_data) {
121
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.trb.db.api.public.contract.v1.ListInstrumentsResponse.repeatedFields_, null);
122
+ };
123
+ goog.inherits(proto.trb.db.api.public.contract.v1.ListInstrumentsResponse, jspb.Message);
124
+ if (goog.DEBUG && !COMPILED) {
125
+ /**
126
+ * @public
127
+ * @override
128
+ */
129
+ proto.trb.db.api.public.contract.v1.ListInstrumentsResponse.displayName = 'proto.trb.db.api.public.contract.v1.ListInstrumentsResponse';
130
+ }
87
131
  /**
88
132
  * Generated by JsPbCodeGenerator.
89
133
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -731,6 +775,428 @@ proto.trb.db.api.public.contract.v1.ListInstrumentsRequest.prototype.setLite = f
731
775
 
732
776
 
733
777
 
778
+ if (jspb.Message.GENERATE_TO_OBJECT) {
779
+ /**
780
+ * Creates an object representation of this proto.
781
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
782
+ * Optional fields that are not set will be set to undefined.
783
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
784
+ * For the list of reserved names please see:
785
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
786
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
787
+ * JSPB instance for transitional soy proto support:
788
+ * http://goto/soy-param-migration
789
+ * @return {!Object}
790
+ */
791
+ proto.trb.db.api.public.contract.v1.InstrumentListItem.prototype.toObject = function(opt_includeInstance) {
792
+ return proto.trb.db.api.public.contract.v1.InstrumentListItem.toObject(opt_includeInstance, this);
793
+ };
794
+
795
+
796
+ /**
797
+ * Static version of the {@see toObject} method.
798
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
799
+ * the JSPB instance for transitional soy proto support:
800
+ * http://goto/soy-param-migration
801
+ * @param {!proto.trb.db.api.public.contract.v1.InstrumentListItem} msg The msg instance to transform.
802
+ * @return {!Object}
803
+ * @suppress {unusedLocalVariables} f is only used for nested messages
804
+ */
805
+ proto.trb.db.api.public.contract.v1.InstrumentListItem.toObject = function(includeInstance, msg) {
806
+ var f, obj = {
807
+ share: (f = msg.getShare()) && tinvest_instruments_pb.Share.toObject(includeInstance, f),
808
+ actual: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
809
+ version: (f = msg.getVersion()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
810
+ versionCount: jspb.Message.getFieldWithDefault(msg, 4, 0)
811
+ };
812
+
813
+ if (includeInstance) {
814
+ obj.$jspbMessageInstance = msg;
815
+ }
816
+ return obj;
817
+ };
818
+ }
819
+
820
+
821
+ /**
822
+ * Deserializes binary data (in protobuf wire format).
823
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
824
+ * @return {!proto.trb.db.api.public.contract.v1.InstrumentListItem}
825
+ */
826
+ proto.trb.db.api.public.contract.v1.InstrumentListItem.deserializeBinary = function(bytes) {
827
+ var reader = new jspb.BinaryReader(bytes);
828
+ var msg = new proto.trb.db.api.public.contract.v1.InstrumentListItem;
829
+ return proto.trb.db.api.public.contract.v1.InstrumentListItem.deserializeBinaryFromReader(msg, reader);
830
+ };
831
+
832
+
833
+ /**
834
+ * Deserializes binary data (in protobuf wire format) from the
835
+ * given reader into the given message object.
836
+ * @param {!proto.trb.db.api.public.contract.v1.InstrumentListItem} msg The message object to deserialize into.
837
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
838
+ * @return {!proto.trb.db.api.public.contract.v1.InstrumentListItem}
839
+ */
840
+ proto.trb.db.api.public.contract.v1.InstrumentListItem.deserializeBinaryFromReader = function(msg, reader) {
841
+ while (reader.nextField()) {
842
+ if (reader.isEndGroup()) {
843
+ break;
844
+ }
845
+ var field = reader.getFieldNumber();
846
+ switch (field) {
847
+ case 1:
848
+ var value = new tinvest_instruments_pb.Share;
849
+ reader.readMessage(value,tinvest_instruments_pb.Share.deserializeBinaryFromReader);
850
+ msg.setShare(value);
851
+ break;
852
+ case 2:
853
+ var value = /** @type {boolean} */ (reader.readBool());
854
+ msg.setActual(value);
855
+ break;
856
+ case 3:
857
+ var value = new google_protobuf_timestamp_pb.Timestamp;
858
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
859
+ msg.setVersion(value);
860
+ break;
861
+ case 4:
862
+ var value = /** @type {number} */ (reader.readInt32());
863
+ msg.setVersionCount(value);
864
+ break;
865
+ default:
866
+ reader.skipField();
867
+ break;
868
+ }
869
+ }
870
+ return msg;
871
+ };
872
+
873
+
874
+ /**
875
+ * Serializes the message to binary data (in protobuf wire format).
876
+ * @return {!Uint8Array}
877
+ */
878
+ proto.trb.db.api.public.contract.v1.InstrumentListItem.prototype.serializeBinary = function() {
879
+ var writer = new jspb.BinaryWriter();
880
+ proto.trb.db.api.public.contract.v1.InstrumentListItem.serializeBinaryToWriter(this, writer);
881
+ return writer.getResultBuffer();
882
+ };
883
+
884
+
885
+ /**
886
+ * Serializes the given message to binary data (in protobuf wire
887
+ * format), writing to the given BinaryWriter.
888
+ * @param {!proto.trb.db.api.public.contract.v1.InstrumentListItem} message
889
+ * @param {!jspb.BinaryWriter} writer
890
+ * @suppress {unusedLocalVariables} f is only used for nested messages
891
+ */
892
+ proto.trb.db.api.public.contract.v1.InstrumentListItem.serializeBinaryToWriter = function(message, writer) {
893
+ var f = undefined;
894
+ f = message.getShare();
895
+ if (f != null) {
896
+ writer.writeMessage(
897
+ 1,
898
+ f,
899
+ tinvest_instruments_pb.Share.serializeBinaryToWriter
900
+ );
901
+ }
902
+ f = message.getActual();
903
+ if (f) {
904
+ writer.writeBool(
905
+ 2,
906
+ f
907
+ );
908
+ }
909
+ f = message.getVersion();
910
+ if (f != null) {
911
+ writer.writeMessage(
912
+ 3,
913
+ f,
914
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
915
+ );
916
+ }
917
+ f = message.getVersionCount();
918
+ if (f !== 0) {
919
+ writer.writeInt32(
920
+ 4,
921
+ f
922
+ );
923
+ }
924
+ };
925
+
926
+
927
+ /**
928
+ * optional tinkoff.public.invest.api.contract.v1.Share share = 1;
929
+ * @return {?proto.tinkoff.public.invest.api.contract.v1.Share}
930
+ */
931
+ proto.trb.db.api.public.contract.v1.InstrumentListItem.prototype.getShare = function() {
932
+ return /** @type{?proto.tinkoff.public.invest.api.contract.v1.Share} */ (
933
+ jspb.Message.getWrapperField(this, tinvest_instruments_pb.Share, 1));
934
+ };
935
+
936
+
937
+ /**
938
+ * @param {?proto.tinkoff.public.invest.api.contract.v1.Share|undefined} value
939
+ * @return {!proto.trb.db.api.public.contract.v1.InstrumentListItem} returns this
940
+ */
941
+ proto.trb.db.api.public.contract.v1.InstrumentListItem.prototype.setShare = function(value) {
942
+ return jspb.Message.setWrapperField(this, 1, value);
943
+ };
944
+
945
+
946
+ /**
947
+ * Clears the message field making it undefined.
948
+ * @return {!proto.trb.db.api.public.contract.v1.InstrumentListItem} returns this
949
+ */
950
+ proto.trb.db.api.public.contract.v1.InstrumentListItem.prototype.clearShare = function() {
951
+ return this.setShare(undefined);
952
+ };
953
+
954
+
955
+ /**
956
+ * Returns whether this field is set.
957
+ * @return {boolean}
958
+ */
959
+ proto.trb.db.api.public.contract.v1.InstrumentListItem.prototype.hasShare = function() {
960
+ return jspb.Message.getField(this, 1) != null;
961
+ };
962
+
963
+
964
+ /**
965
+ * optional bool actual = 2;
966
+ * @return {boolean}
967
+ */
968
+ proto.trb.db.api.public.contract.v1.InstrumentListItem.prototype.getActual = function() {
969
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
970
+ };
971
+
972
+
973
+ /**
974
+ * @param {boolean} value
975
+ * @return {!proto.trb.db.api.public.contract.v1.InstrumentListItem} returns this
976
+ */
977
+ proto.trb.db.api.public.contract.v1.InstrumentListItem.prototype.setActual = function(value) {
978
+ return jspb.Message.setProto3BooleanField(this, 2, value);
979
+ };
980
+
981
+
982
+ /**
983
+ * optional google.protobuf.Timestamp version = 3;
984
+ * @return {?proto.google.protobuf.Timestamp}
985
+ */
986
+ proto.trb.db.api.public.contract.v1.InstrumentListItem.prototype.getVersion = function() {
987
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
988
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
989
+ };
990
+
991
+
992
+ /**
993
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
994
+ * @return {!proto.trb.db.api.public.contract.v1.InstrumentListItem} returns this
995
+ */
996
+ proto.trb.db.api.public.contract.v1.InstrumentListItem.prototype.setVersion = function(value) {
997
+ return jspb.Message.setWrapperField(this, 3, value);
998
+ };
999
+
1000
+
1001
+ /**
1002
+ * Clears the message field making it undefined.
1003
+ * @return {!proto.trb.db.api.public.contract.v1.InstrumentListItem} returns this
1004
+ */
1005
+ proto.trb.db.api.public.contract.v1.InstrumentListItem.prototype.clearVersion = function() {
1006
+ return this.setVersion(undefined);
1007
+ };
1008
+
1009
+
1010
+ /**
1011
+ * Returns whether this field is set.
1012
+ * @return {boolean}
1013
+ */
1014
+ proto.trb.db.api.public.contract.v1.InstrumentListItem.prototype.hasVersion = function() {
1015
+ return jspb.Message.getField(this, 3) != null;
1016
+ };
1017
+
1018
+
1019
+ /**
1020
+ * optional int32 version_count = 4;
1021
+ * @return {number}
1022
+ */
1023
+ proto.trb.db.api.public.contract.v1.InstrumentListItem.prototype.getVersionCount = function() {
1024
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1025
+ };
1026
+
1027
+
1028
+ /**
1029
+ * @param {number} value
1030
+ * @return {!proto.trb.db.api.public.contract.v1.InstrumentListItem} returns this
1031
+ */
1032
+ proto.trb.db.api.public.contract.v1.InstrumentListItem.prototype.setVersionCount = function(value) {
1033
+ return jspb.Message.setProto3IntField(this, 4, value);
1034
+ };
1035
+
1036
+
1037
+
1038
+ /**
1039
+ * List of repeated fields within this message type.
1040
+ * @private {!Array<number>}
1041
+ * @const
1042
+ */
1043
+ proto.trb.db.api.public.contract.v1.ListInstrumentsResponse.repeatedFields_ = [1];
1044
+
1045
+
1046
+
1047
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1048
+ /**
1049
+ * Creates an object representation of this proto.
1050
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1051
+ * Optional fields that are not set will be set to undefined.
1052
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1053
+ * For the list of reserved names please see:
1054
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1055
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1056
+ * JSPB instance for transitional soy proto support:
1057
+ * http://goto/soy-param-migration
1058
+ * @return {!Object}
1059
+ */
1060
+ proto.trb.db.api.public.contract.v1.ListInstrumentsResponse.prototype.toObject = function(opt_includeInstance) {
1061
+ return proto.trb.db.api.public.contract.v1.ListInstrumentsResponse.toObject(opt_includeInstance, this);
1062
+ };
1063
+
1064
+
1065
+ /**
1066
+ * Static version of the {@see toObject} method.
1067
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1068
+ * the JSPB instance for transitional soy proto support:
1069
+ * http://goto/soy-param-migration
1070
+ * @param {!proto.trb.db.api.public.contract.v1.ListInstrumentsResponse} msg The msg instance to transform.
1071
+ * @return {!Object}
1072
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1073
+ */
1074
+ proto.trb.db.api.public.contract.v1.ListInstrumentsResponse.toObject = function(includeInstance, msg) {
1075
+ var f, obj = {
1076
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
1077
+ proto.trb.db.api.public.contract.v1.InstrumentListItem.toObject, includeInstance)
1078
+ };
1079
+
1080
+ if (includeInstance) {
1081
+ obj.$jspbMessageInstance = msg;
1082
+ }
1083
+ return obj;
1084
+ };
1085
+ }
1086
+
1087
+
1088
+ /**
1089
+ * Deserializes binary data (in protobuf wire format).
1090
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1091
+ * @return {!proto.trb.db.api.public.contract.v1.ListInstrumentsResponse}
1092
+ */
1093
+ proto.trb.db.api.public.contract.v1.ListInstrumentsResponse.deserializeBinary = function(bytes) {
1094
+ var reader = new jspb.BinaryReader(bytes);
1095
+ var msg = new proto.trb.db.api.public.contract.v1.ListInstrumentsResponse;
1096
+ return proto.trb.db.api.public.contract.v1.ListInstrumentsResponse.deserializeBinaryFromReader(msg, reader);
1097
+ };
1098
+
1099
+
1100
+ /**
1101
+ * Deserializes binary data (in protobuf wire format) from the
1102
+ * given reader into the given message object.
1103
+ * @param {!proto.trb.db.api.public.contract.v1.ListInstrumentsResponse} msg The message object to deserialize into.
1104
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1105
+ * @return {!proto.trb.db.api.public.contract.v1.ListInstrumentsResponse}
1106
+ */
1107
+ proto.trb.db.api.public.contract.v1.ListInstrumentsResponse.deserializeBinaryFromReader = function(msg, reader) {
1108
+ while (reader.nextField()) {
1109
+ if (reader.isEndGroup()) {
1110
+ break;
1111
+ }
1112
+ var field = reader.getFieldNumber();
1113
+ switch (field) {
1114
+ case 1:
1115
+ var value = new proto.trb.db.api.public.contract.v1.InstrumentListItem;
1116
+ reader.readMessage(value,proto.trb.db.api.public.contract.v1.InstrumentListItem.deserializeBinaryFromReader);
1117
+ msg.addItems(value);
1118
+ break;
1119
+ default:
1120
+ reader.skipField();
1121
+ break;
1122
+ }
1123
+ }
1124
+ return msg;
1125
+ };
1126
+
1127
+
1128
+ /**
1129
+ * Serializes the message to binary data (in protobuf wire format).
1130
+ * @return {!Uint8Array}
1131
+ */
1132
+ proto.trb.db.api.public.contract.v1.ListInstrumentsResponse.prototype.serializeBinary = function() {
1133
+ var writer = new jspb.BinaryWriter();
1134
+ proto.trb.db.api.public.contract.v1.ListInstrumentsResponse.serializeBinaryToWriter(this, writer);
1135
+ return writer.getResultBuffer();
1136
+ };
1137
+
1138
+
1139
+ /**
1140
+ * Serializes the given message to binary data (in protobuf wire
1141
+ * format), writing to the given BinaryWriter.
1142
+ * @param {!proto.trb.db.api.public.contract.v1.ListInstrumentsResponse} message
1143
+ * @param {!jspb.BinaryWriter} writer
1144
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1145
+ */
1146
+ proto.trb.db.api.public.contract.v1.ListInstrumentsResponse.serializeBinaryToWriter = function(message, writer) {
1147
+ var f = undefined;
1148
+ f = message.getItemsList();
1149
+ if (f.length > 0) {
1150
+ writer.writeRepeatedMessage(
1151
+ 1,
1152
+ f,
1153
+ proto.trb.db.api.public.contract.v1.InstrumentListItem.serializeBinaryToWriter
1154
+ );
1155
+ }
1156
+ };
1157
+
1158
+
1159
+ /**
1160
+ * repeated InstrumentListItem items = 1;
1161
+ * @return {!Array<!proto.trb.db.api.public.contract.v1.InstrumentListItem>}
1162
+ */
1163
+ proto.trb.db.api.public.contract.v1.ListInstrumentsResponse.prototype.getItemsList = function() {
1164
+ return /** @type{!Array<!proto.trb.db.api.public.contract.v1.InstrumentListItem>} */ (
1165
+ jspb.Message.getRepeatedWrapperField(this, proto.trb.db.api.public.contract.v1.InstrumentListItem, 1));
1166
+ };
1167
+
1168
+
1169
+ /**
1170
+ * @param {!Array<!proto.trb.db.api.public.contract.v1.InstrumentListItem>} value
1171
+ * @return {!proto.trb.db.api.public.contract.v1.ListInstrumentsResponse} returns this
1172
+ */
1173
+ proto.trb.db.api.public.contract.v1.ListInstrumentsResponse.prototype.setItemsList = function(value) {
1174
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1175
+ };
1176
+
1177
+
1178
+ /**
1179
+ * @param {!proto.trb.db.api.public.contract.v1.InstrumentListItem=} opt_value
1180
+ * @param {number=} opt_index
1181
+ * @return {!proto.trb.db.api.public.contract.v1.InstrumentListItem}
1182
+ */
1183
+ proto.trb.db.api.public.contract.v1.ListInstrumentsResponse.prototype.addItems = function(opt_value, opt_index) {
1184
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.trb.db.api.public.contract.v1.InstrumentListItem, opt_index);
1185
+ };
1186
+
1187
+
1188
+ /**
1189
+ * Clears the list making it empty but non-null.
1190
+ * @return {!proto.trb.db.api.public.contract.v1.ListInstrumentsResponse} returns this
1191
+ */
1192
+ proto.trb.db.api.public.contract.v1.ListInstrumentsResponse.prototype.clearItemsList = function() {
1193
+ return this.setItemsList([]);
1194
+ };
1195
+
1196
+
1197
+
1198
+
1199
+
734
1200
  if (jspb.Message.GENERATE_TO_OBJECT) {
735
1201
  /**
736
1202
  * Creates an object representation of this proto.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marleena/trb-proto",
3
- "version": "v1.0.6",
3
+ "version": "v1.0.8",
4
4
  "description": "Generated protobuf messages and gRPC-Web clients for TrB services",
5
5
  "license": "MIT",
6
6
  "repository": {