@marleena/trb-proto 1.0.4 → 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.
@@ -83,6 +83,49 @@ export class DbApiClient {
83
83
  this.methodDescriptorListInstruments);
84
84
  }
85
85
 
86
+ methodDescriptorListInstrumentVersions = new grpcWeb.MethodDescriptor(
87
+ '/trb.db.api.public.contract.v1.DbApi/ListInstrumentVersions',
88
+ grpcWeb.MethodType.UNARY,
89
+ api_db_api_db_api_pb.ListInstrumentVersionsRequest,
90
+ api_db_api_db_api_pb.ListInstrumentVersionsResponse,
91
+ (request: api_db_api_db_api_pb.ListInstrumentVersionsRequest) => {
92
+ return request.serializeBinary();
93
+ },
94
+ api_db_api_db_api_pb.ListInstrumentVersionsResponse.deserializeBinary
95
+ );
96
+
97
+ listInstrumentVersions(
98
+ request: api_db_api_db_api_pb.ListInstrumentVersionsRequest,
99
+ metadata?: grpcWeb.Metadata | null): Promise<api_db_api_db_api_pb.ListInstrumentVersionsResponse>;
100
+
101
+ listInstrumentVersions(
102
+ request: api_db_api_db_api_pb.ListInstrumentVersionsRequest,
103
+ metadata: grpcWeb.Metadata | null,
104
+ callback: (err: grpcWeb.RpcError,
105
+ response: api_db_api_db_api_pb.ListInstrumentVersionsResponse) => void): grpcWeb.ClientReadableStream<api_db_api_db_api_pb.ListInstrumentVersionsResponse>;
106
+
107
+ listInstrumentVersions(
108
+ request: api_db_api_db_api_pb.ListInstrumentVersionsRequest,
109
+ metadata?: grpcWeb.Metadata | null,
110
+ callback?: (err: grpcWeb.RpcError,
111
+ response: api_db_api_db_api_pb.ListInstrumentVersionsResponse) => void) {
112
+ if (callback !== undefined) {
113
+ return this.client_.rpcCall(
114
+ this.hostname_ +
115
+ '/trb.db.api.public.contract.v1.DbApi/ListInstrumentVersions',
116
+ request,
117
+ metadata || {},
118
+ this.methodDescriptorListInstrumentVersions,
119
+ callback);
120
+ }
121
+ return this.client_.unaryCall(
122
+ this.hostname_ +
123
+ '/trb.db.api.public.contract.v1.DbApi/ListInstrumentVersions',
124
+ request,
125
+ metadata || {},
126
+ this.methodDescriptorListInstrumentVersions);
127
+ }
128
+
86
129
  methodDescriptorUpsertInstruments = new grpcWeb.MethodDescriptor(
87
130
  '/trb.db.api.public.contract.v1.DbApi/UpsertInstruments',
88
131
  grpcWeb.MethodType.UNARY,
@@ -55,6 +55,74 @@ export namespace ListInstrumentsRequest {
55
55
  }
56
56
  }
57
57
 
58
+ export class ListInstrumentVersionsRequest extends jspb.Message {
59
+ getUid(): string;
60
+ setUid(value: string): ListInstrumentVersionsRequest;
61
+
62
+ serializeBinary(): Uint8Array;
63
+ toObject(includeInstance?: boolean): ListInstrumentVersionsRequest.AsObject;
64
+ static toObject(includeInstance: boolean, msg: ListInstrumentVersionsRequest): ListInstrumentVersionsRequest.AsObject;
65
+ static serializeBinaryToWriter(message: ListInstrumentVersionsRequest, writer: jspb.BinaryWriter): void;
66
+ static deserializeBinary(bytes: Uint8Array): ListInstrumentVersionsRequest;
67
+ static deserializeBinaryFromReader(message: ListInstrumentVersionsRequest, reader: jspb.BinaryReader): ListInstrumentVersionsRequest;
68
+ }
69
+
70
+ export namespace ListInstrumentVersionsRequest {
71
+ export type AsObject = {
72
+ uid: string,
73
+ }
74
+ }
75
+
76
+ export class InstrumentVersion extends jspb.Message {
77
+ getShare(): tinvest_instruments_pb.Share | undefined;
78
+ setShare(value?: tinvest_instruments_pb.Share): InstrumentVersion;
79
+ hasShare(): boolean;
80
+ clearShare(): InstrumentVersion;
81
+
82
+ getActual(): boolean;
83
+ setActual(value: boolean): InstrumentVersion;
84
+
85
+ getVersion(): google_protobuf_timestamp_pb.Timestamp | undefined;
86
+ setVersion(value?: google_protobuf_timestamp_pb.Timestamp): InstrumentVersion;
87
+ hasVersion(): boolean;
88
+ clearVersion(): InstrumentVersion;
89
+
90
+ serializeBinary(): Uint8Array;
91
+ toObject(includeInstance?: boolean): InstrumentVersion.AsObject;
92
+ static toObject(includeInstance: boolean, msg: InstrumentVersion): InstrumentVersion.AsObject;
93
+ static serializeBinaryToWriter(message: InstrumentVersion, writer: jspb.BinaryWriter): void;
94
+ static deserializeBinary(bytes: Uint8Array): InstrumentVersion;
95
+ static deserializeBinaryFromReader(message: InstrumentVersion, reader: jspb.BinaryReader): InstrumentVersion;
96
+ }
97
+
98
+ export namespace InstrumentVersion {
99
+ export type AsObject = {
100
+ share?: tinvest_instruments_pb.Share.AsObject,
101
+ actual: boolean,
102
+ version?: google_protobuf_timestamp_pb.Timestamp.AsObject,
103
+ }
104
+ }
105
+
106
+ export class ListInstrumentVersionsResponse extends jspb.Message {
107
+ getItemsList(): Array<InstrumentVersion>;
108
+ setItemsList(value: Array<InstrumentVersion>): ListInstrumentVersionsResponse;
109
+ clearItemsList(): ListInstrumentVersionsResponse;
110
+ addItems(value?: InstrumentVersion, index?: number): InstrumentVersion;
111
+
112
+ serializeBinary(): Uint8Array;
113
+ toObject(includeInstance?: boolean): ListInstrumentVersionsResponse.AsObject;
114
+ static toObject(includeInstance: boolean, msg: ListInstrumentVersionsResponse): ListInstrumentVersionsResponse.AsObject;
115
+ static serializeBinaryToWriter(message: ListInstrumentVersionsResponse, writer: jspb.BinaryWriter): void;
116
+ static deserializeBinary(bytes: Uint8Array): ListInstrumentVersionsResponse;
117
+ static deserializeBinaryFromReader(message: ListInstrumentVersionsResponse, reader: jspb.BinaryReader): ListInstrumentVersionsResponse;
118
+ }
119
+
120
+ export namespace ListInstrumentVersionsResponse {
121
+ export type AsObject = {
122
+ itemsList: Array<InstrumentVersion.AsObject>,
123
+ }
124
+ }
125
+
58
126
  export class UpsertInstrumentsResponse extends jspb.Message {
59
127
  getFetched(): number;
60
128
  setFetched(value: number): UpsertInstrumentsResponse;
@@ -27,8 +27,11 @@ 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.InstrumentVersion', null, global);
30
31
  goog.exportSymbol('proto.trb.db.api.public.contract.v1.LastDownload', null, global);
31
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);
32
35
  goog.exportSymbol('proto.trb.db.api.public.contract.v1.ListInstrumentsRequest', 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);
@@ -81,6 +84,69 @@ if (goog.DEBUG && !COMPILED) {
81
84
  */
82
85
  proto.trb.db.api.public.contract.v1.ListInstrumentsRequest.displayName = 'proto.trb.db.api.public.contract.v1.ListInstrumentsRequest';
83
86
  }
87
+ /**
88
+ * Generated by JsPbCodeGenerator.
89
+ * @param {Array=} opt_data Optional initial data array, typically from a
90
+ * server response, or constructed directly in Javascript. The array is used
91
+ * in place and becomes part of the constructed object. It is not cloned.
92
+ * If no data is provided, the constructed object will be empty, but still
93
+ * valid.
94
+ * @extends {jspb.Message}
95
+ * @constructor
96
+ */
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);
141
+ };
142
+ goog.inherits(proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse, jspb.Message);
143
+ if (goog.DEBUG && !COMPILED) {
144
+ /**
145
+ * @public
146
+ * @override
147
+ */
148
+ proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse.displayName = 'proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse';
149
+ }
84
150
  /**
85
151
  * Generated by JsPbCodeGenerator.
86
152
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -665,6 +731,528 @@ proto.trb.db.api.public.contract.v1.ListInstrumentsRequest.prototype.setLite = f
665
731
 
666
732
 
667
733
 
734
+ if (jspb.Message.GENERATE_TO_OBJECT) {
735
+ /**
736
+ * Creates an object representation of this proto.
737
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
738
+ * Optional fields that are not set will be set to undefined.
739
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
740
+ * For the list of reserved names please see:
741
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
742
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
743
+ * JSPB instance for transitional soy proto support:
744
+ * http://goto/soy-param-migration
745
+ * @return {!Object}
746
+ */
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);
749
+ };
750
+
751
+
752
+ /**
753
+ * Static version of the {@see toObject} method.
754
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
755
+ * the JSPB instance for transitional soy proto support:
756
+ * http://goto/soy-param-migration
757
+ * @param {!proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest} msg The msg instance to transform.
758
+ * @return {!Object}
759
+ * @suppress {unusedLocalVariables} f is only used for nested messages
760
+ */
761
+ proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest.toObject = function(includeInstance, msg) {
762
+ var f, obj = {
763
+ uid: jspb.Message.getFieldWithDefault(msg, 1, "")
764
+ };
765
+
766
+ if (includeInstance) {
767
+ obj.$jspbMessageInstance = msg;
768
+ }
769
+ return obj;
770
+ };
771
+ }
772
+
773
+
774
+ /**
775
+ * Deserializes binary data (in protobuf wire format).
776
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
777
+ * @return {!proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest}
778
+ */
779
+ proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest.deserializeBinary = function(bytes) {
780
+ var reader = new jspb.BinaryReader(bytes);
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);
783
+ };
784
+
785
+
786
+ /**
787
+ * Deserializes binary data (in protobuf wire format) from the
788
+ * given reader into the given message object.
789
+ * @param {!proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest} msg The message object to deserialize into.
790
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
791
+ * @return {!proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest}
792
+ */
793
+ proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest.deserializeBinaryFromReader = function(msg, reader) {
794
+ while (reader.nextField()) {
795
+ if (reader.isEndGroup()) {
796
+ break;
797
+ }
798
+ var field = reader.getFieldNumber();
799
+ switch (field) {
800
+ case 1:
801
+ var value = /** @type {string} */ (reader.readString());
802
+ msg.setUid(value);
803
+ break;
804
+ default:
805
+ reader.skipField();
806
+ break;
807
+ }
808
+ }
809
+ return msg;
810
+ };
811
+
812
+
813
+ /**
814
+ * Serializes the message to binary data (in protobuf wire format).
815
+ * @return {!Uint8Array}
816
+ */
817
+ proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest.prototype.serializeBinary = function() {
818
+ var writer = new jspb.BinaryWriter();
819
+ proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest.serializeBinaryToWriter(this, writer);
820
+ return writer.getResultBuffer();
821
+ };
822
+
823
+
824
+ /**
825
+ * Serializes the given message to binary data (in protobuf wire
826
+ * format), writing to the given BinaryWriter.
827
+ * @param {!proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest} message
828
+ * @param {!jspb.BinaryWriter} writer
829
+ * @suppress {unusedLocalVariables} f is only used for nested messages
830
+ */
831
+ proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest.serializeBinaryToWriter = function(message, writer) {
832
+ var f = undefined;
833
+ f = message.getUid();
834
+ if (f.length > 0) {
835
+ writer.writeString(
836
+ 1,
837
+ f
838
+ );
839
+ }
840
+ };
841
+
842
+
843
+ /**
844
+ * optional string uid = 1;
845
+ * @return {string}
846
+ */
847
+ proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest.prototype.getUid = function() {
848
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
849
+ };
850
+
851
+
852
+ /**
853
+ * @param {string} value
854
+ * @return {!proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest} returns this
855
+ */
856
+ proto.trb.db.api.public.contract.v1.ListInstrumentVersionsRequest.prototype.setUid = function(value) {
857
+ return jspb.Message.setProto3StringField(this, 1, value);
858
+ };
859
+
860
+
861
+
862
+
863
+
864
+ if (jspb.Message.GENERATE_TO_OBJECT) {
865
+ /**
866
+ * Creates an object representation of this proto.
867
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
868
+ * Optional fields that are not set will be set to undefined.
869
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
870
+ * For the list of reserved names please see:
871
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
872
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
873
+ * JSPB instance for transitional soy proto support:
874
+ * http://goto/soy-param-migration
875
+ * @return {!Object}
876
+ */
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);
879
+ };
880
+
881
+
882
+ /**
883
+ * Static version of the {@see toObject} method.
884
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
885
+ * the JSPB instance for transitional soy proto support:
886
+ * http://goto/soy-param-migration
887
+ * @param {!proto.trb.db.api.public.contract.v1.InstrumentVersion} msg The msg instance to transform.
888
+ * @return {!Object}
889
+ * @suppress {unusedLocalVariables} f is only used for nested messages
890
+ */
891
+ proto.trb.db.api.public.contract.v1.InstrumentVersion.toObject = function(includeInstance, msg) {
892
+ var f, obj = {
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)
896
+ };
897
+
898
+ if (includeInstance) {
899
+ obj.$jspbMessageInstance = msg;
900
+ }
901
+ return obj;
902
+ };
903
+ }
904
+
905
+
906
+ /**
907
+ * Deserializes binary data (in protobuf wire format).
908
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
909
+ * @return {!proto.trb.db.api.public.contract.v1.InstrumentVersion}
910
+ */
911
+ proto.trb.db.api.public.contract.v1.InstrumentVersion.deserializeBinary = function(bytes) {
912
+ var reader = new jspb.BinaryReader(bytes);
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);
915
+ };
916
+
917
+
918
+ /**
919
+ * Deserializes binary data (in protobuf wire format) from the
920
+ * given reader into the given message object.
921
+ * @param {!proto.trb.db.api.public.contract.v1.InstrumentVersion} msg The message object to deserialize into.
922
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
923
+ * @return {!proto.trb.db.api.public.contract.v1.InstrumentVersion}
924
+ */
925
+ proto.trb.db.api.public.contract.v1.InstrumentVersion.deserializeBinaryFromReader = function(msg, reader) {
926
+ while (reader.nextField()) {
927
+ if (reader.isEndGroup()) {
928
+ break;
929
+ }
930
+ var field = reader.getFieldNumber();
931
+ switch (field) {
932
+ case 1:
933
+ var value = new tinvest_instruments_pb.Share;
934
+ reader.readMessage(value,tinvest_instruments_pb.Share.deserializeBinaryFromReader);
935
+ msg.setShare(value);
936
+ break;
937
+ case 2:
938
+ var value = /** @type {boolean} */ (reader.readBool());
939
+ msg.setActual(value);
940
+ break;
941
+ case 3:
942
+ var value = new google_protobuf_timestamp_pb.Timestamp;
943
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
944
+ msg.setVersion(value);
945
+ break;
946
+ default:
947
+ reader.skipField();
948
+ break;
949
+ }
950
+ }
951
+ return msg;
952
+ };
953
+
954
+
955
+ /**
956
+ * Serializes the message to binary data (in protobuf wire format).
957
+ * @return {!Uint8Array}
958
+ */
959
+ proto.trb.db.api.public.contract.v1.InstrumentVersion.prototype.serializeBinary = function() {
960
+ var writer = new jspb.BinaryWriter();
961
+ proto.trb.db.api.public.contract.v1.InstrumentVersion.serializeBinaryToWriter(this, writer);
962
+ return writer.getResultBuffer();
963
+ };
964
+
965
+
966
+ /**
967
+ * Serializes the given message to binary data (in protobuf wire
968
+ * format), writing to the given BinaryWriter.
969
+ * @param {!proto.trb.db.api.public.contract.v1.InstrumentVersion} message
970
+ * @param {!jspb.BinaryWriter} writer
971
+ * @suppress {unusedLocalVariables} f is only used for nested messages
972
+ */
973
+ proto.trb.db.api.public.contract.v1.InstrumentVersion.serializeBinaryToWriter = function(message, writer) {
974
+ var f = undefined;
975
+ f = message.getShare();
976
+ if (f != null) {
977
+ writer.writeMessage(
978
+ 1,
979
+ f,
980
+ tinvest_instruments_pb.Share.serializeBinaryToWriter
981
+ );
982
+ }
983
+ f = message.getActual();
984
+ if (f) {
985
+ writer.writeBool(
986
+ 2,
987
+ f
988
+ );
989
+ }
990
+ f = message.getVersion();
991
+ if (f != null) {
992
+ writer.writeMessage(
993
+ 3,
994
+ f,
995
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
996
+ );
997
+ }
998
+ };
999
+
1000
+
1001
+ /**
1002
+ * optional tinkoff.public.invest.api.contract.v1.Share share = 1;
1003
+ * @return {?proto.tinkoff.public.invest.api.contract.v1.Share}
1004
+ */
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));
1008
+ };
1009
+
1010
+
1011
+ /**
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);
1017
+ };
1018
+
1019
+
1020
+ /**
1021
+ * Clears the message field making it undefined.
1022
+ * @return {!proto.trb.db.api.public.contract.v1.InstrumentVersion} returns this
1023
+ */
1024
+ proto.trb.db.api.public.contract.v1.InstrumentVersion.prototype.clearShare = function() {
1025
+ return this.setShare(undefined);
1026
+ };
1027
+
1028
+
1029
+ /**
1030
+ * Returns whether this field is set.
1031
+ * @return {boolean}
1032
+ */
1033
+ proto.trb.db.api.public.contract.v1.InstrumentVersion.prototype.hasShare = function() {
1034
+ return jspb.Message.getField(this, 1) != null;
1035
+ };
1036
+
1037
+
1038
+ /**
1039
+ * optional bool actual = 2;
1040
+ * @return {boolean}
1041
+ */
1042
+ proto.trb.db.api.public.contract.v1.InstrumentVersion.prototype.getActual = function() {
1043
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
1044
+ };
1045
+
1046
+
1047
+ /**
1048
+ * @param {boolean} value
1049
+ * @return {!proto.trb.db.api.public.contract.v1.InstrumentVersion} returns this
1050
+ */
1051
+ proto.trb.db.api.public.contract.v1.InstrumentVersion.prototype.setActual = function(value) {
1052
+ return jspb.Message.setProto3BooleanField(this, 2, value);
1053
+ };
1054
+
1055
+
1056
+ /**
1057
+ * optional google.protobuf.Timestamp version = 3;
1058
+ * @return {?proto.google.protobuf.Timestamp}
1059
+ */
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));
1063
+ };
1064
+
1065
+
1066
+ /**
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);
1072
+ };
1073
+
1074
+
1075
+ /**
1076
+ * Clears the message field making it undefined.
1077
+ * @return {!proto.trb.db.api.public.contract.v1.InstrumentVersion} returns this
1078
+ */
1079
+ proto.trb.db.api.public.contract.v1.InstrumentVersion.prototype.clearVersion = function() {
1080
+ return this.setVersion(undefined);
1081
+ };
1082
+
1083
+
1084
+ /**
1085
+ * Returns whether this field is set.
1086
+ * @return {boolean}
1087
+ */
1088
+ proto.trb.db.api.public.contract.v1.InstrumentVersion.prototype.hasVersion = function() {
1089
+ return jspb.Message.getField(this, 3) != null;
1090
+ };
1091
+
1092
+
1093
+
1094
+ /**
1095
+ * List of repeated fields within this message type.
1096
+ * @private {!Array<number>}
1097
+ * @const
1098
+ */
1099
+ proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse.repeatedFields_ = [1];
1100
+
1101
+
1102
+
1103
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1104
+ /**
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}
1115
+ */
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);
1118
+ };
1119
+
1120
+
1121
+ /**
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
1129
+ */
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
+ };
1135
+
1136
+ if (includeInstance) {
1137
+ obj.$jspbMessageInstance = msg;
1138
+ }
1139
+ return obj;
1140
+ };
1141
+ }
1142
+
1143
+
1144
+ /**
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}
1148
+ */
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);
1153
+ };
1154
+
1155
+
1156
+ /**
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}
1162
+ */
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;
1181
+ };
1182
+
1183
+
1184
+ /**
1185
+ * Serializes the message to binary data (in protobuf wire format).
1186
+ * @return {!Uint8Array}
1187
+ */
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();
1192
+ };
1193
+
1194
+
1195
+ /**
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
1201
+ */
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
+ }
1212
+ };
1213
+
1214
+
1215
+ /**
1216
+ * repeated InstrumentVersion items = 1;
1217
+ * @return {!Array<!proto.trb.db.api.public.contract.v1.InstrumentVersion>}
1218
+ */
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));
1222
+ };
1223
+
1224
+
1225
+ /**
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);
1231
+ };
1232
+
1233
+
1234
+ /**
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}
1238
+ */
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);
1241
+ };
1242
+
1243
+
1244
+ /**
1245
+ * Clears the list making it empty but non-null.
1246
+ * @return {!proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse} returns this
1247
+ */
1248
+ proto.trb.db.api.public.contract.v1.ListInstrumentVersionsResponse.prototype.clearItemsList = function() {
1249
+ return this.setItemsList([]);
1250
+ };
1251
+
1252
+
1253
+
1254
+
1255
+
668
1256
  if (jspb.Message.GENERATE_TO_OBJECT) {
669
1257
  /**
670
1258
  * 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.4",
3
+ "version": "v1.0.6",
4
4
  "description": "Generated protobuf messages and gRPC-Web clients for TrB services",
5
5
  "license": "MIT",
6
6
  "repository": {