@fintekkers/ledger-models 1.1.50 → 1.1.52

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.
Files changed (29) hide show
  1. package/node/fintekkers/models/security/security_metric_grpc_pb.js +1 -0
  2. package/node/fintekkers/models/security/security_metric_pb.d.ts +89 -0
  3. package/node/fintekkers/models/security/security_metric_pb.js +657 -0
  4. package/node/fintekkers/models/security/security_metric_type_grpc_pb.js +1 -0
  5. package/node/fintekkers/models/security/security_metric_type_pb.d.ts +14 -0
  6. package/node/fintekkers/models/security/security_metric_type_pb.js +35 -0
  7. package/node/fintekkers/models/util/object_type_pb.d.ts +7 -0
  8. package/node/fintekkers/models/util/object_type_pb.js +8 -1
  9. package/node/fintekkers/requests/security_metric/create_security_metric_request_grpc_pb.js +1 -0
  10. package/node/fintekkers/requests/security_metric/create_security_metric_request_pb.d.ts +81 -0
  11. package/node/fintekkers/requests/security_metric/create_security_metric_request_pb.js +600 -0
  12. package/node/fintekkers/requests/security_metric/get_latest_security_metric_request_grpc_pb.js +1 -0
  13. package/node/fintekkers/requests/security_metric/get_latest_security_metric_request_pb.d.ts +93 -0
  14. package/node/fintekkers/requests/security_metric/get_latest_security_metric_request_pb.js +717 -0
  15. package/node/fintekkers/requests/security_metric/search_security_metric_request_grpc_pb.js +1 -0
  16. package/node/fintekkers/requests/security_metric/search_security_metric_request_pb.d.ts +101 -0
  17. package/node/fintekkers/requests/security_metric/search_security_metric_request_pb.js +757 -0
  18. package/node/fintekkers/services/security-metric-service/security_metric_service_grpc_pb.d.ts +76 -0
  19. package/node/fintekkers/services/security-metric-service/security_metric_service_grpc_pb.js +173 -0
  20. package/node/fintekkers/services/security-metric-service/security_metric_service_pb.d.ts +10 -0
  21. package/node/fintekkers/services/security-metric-service/security_metric_service_pb.js +29 -0
  22. package/node/wrappers/models/security/security-metric-roundtrip.test.d.ts +1 -0
  23. package/node/wrappers/models/security/security-metric-roundtrip.test.js +137 -0
  24. package/node/wrappers/models/security/security-metric-roundtrip.test.js.map +1 -0
  25. package/node/wrappers/models/security/security-metric-roundtrip.test.ts +162 -0
  26. package/node/wrappers/util/object-types.js +12 -0
  27. package/node/wrappers/util/object-types.js.map +1 -1
  28. package/node/wrappers/util/object-types.ts +12 -0
  29. package/package.json +1 -1
@@ -0,0 +1,657 @@
1
+ // source: fintekkers/models/security/security_metric.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
23
+
24
+ var fintekkers_models_util_decimal_value_pb = require('../../../fintekkers/models/util/decimal_value_pb.js');
25
+ goog.object.extend(proto, fintekkers_models_util_decimal_value_pb);
26
+ var fintekkers_models_util_local_date_pb = require('../../../fintekkers/models/util/local_date_pb.js');
27
+ goog.object.extend(proto, fintekkers_models_util_local_date_pb);
28
+ var fintekkers_models_util_local_timestamp_pb = require('../../../fintekkers/models/util/local_timestamp_pb.js');
29
+ goog.object.extend(proto, fintekkers_models_util_local_timestamp_pb);
30
+ var fintekkers_models_util_uuid_pb = require('../../../fintekkers/models/util/uuid_pb.js');
31
+ goog.object.extend(proto, fintekkers_models_util_uuid_pb);
32
+ var fintekkers_models_util_object_type_pb = require('../../../fintekkers/models/util/object_type_pb.js');
33
+ goog.object.extend(proto, fintekkers_models_util_object_type_pb);
34
+ var fintekkers_models_util_version_pb = require('../../../fintekkers/models/util/version_pb.js');
35
+ goog.object.extend(proto, fintekkers_models_util_version_pb);
36
+ var fintekkers_models_security_security_metric_type_pb = require('../../../fintekkers/models/security/security_metric_type_pb.js');
37
+ goog.object.extend(proto, fintekkers_models_security_security_metric_type_pb);
38
+ goog.exportSymbol('proto.fintekkers.models.security.SecurityMetricPointProto', null, global);
39
+ goog.exportSymbol('proto.fintekkers.models.security.SecurityMetricSeriesProto', null, global);
40
+ /**
41
+ * Generated by JsPbCodeGenerator.
42
+ * @param {Array=} opt_data Optional initial data array, typically from a
43
+ * server response, or constructed directly in Javascript. The array is used
44
+ * in place and becomes part of the constructed object. It is not cloned.
45
+ * If no data is provided, the constructed object will be empty, but still
46
+ * valid.
47
+ * @extends {jspb.Message}
48
+ * @constructor
49
+ */
50
+ proto.fintekkers.models.security.SecurityMetricSeriesProto = function(opt_data) {
51
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.fintekkers.models.security.SecurityMetricSeriesProto.repeatedFields_, null);
52
+ };
53
+ goog.inherits(proto.fintekkers.models.security.SecurityMetricSeriesProto, jspb.Message);
54
+ if (goog.DEBUG && !COMPILED) {
55
+ /**
56
+ * @public
57
+ * @override
58
+ */
59
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.displayName = 'proto.fintekkers.models.security.SecurityMetricSeriesProto';
60
+ }
61
+ /**
62
+ * Generated by JsPbCodeGenerator.
63
+ * @param {Array=} opt_data Optional initial data array, typically from a
64
+ * server response, or constructed directly in Javascript. The array is used
65
+ * in place and becomes part of the constructed object. It is not cloned.
66
+ * If no data is provided, the constructed object will be empty, but still
67
+ * valid.
68
+ * @extends {jspb.Message}
69
+ * @constructor
70
+ */
71
+ proto.fintekkers.models.security.SecurityMetricPointProto = function(opt_data) {
72
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
73
+ };
74
+ goog.inherits(proto.fintekkers.models.security.SecurityMetricPointProto, jspb.Message);
75
+ if (goog.DEBUG && !COMPILED) {
76
+ /**
77
+ * @public
78
+ * @override
79
+ */
80
+ proto.fintekkers.models.security.SecurityMetricPointProto.displayName = 'proto.fintekkers.models.security.SecurityMetricPointProto';
81
+ }
82
+
83
+ /**
84
+ * List of repeated fields within this message type.
85
+ * @private {!Array<number>}
86
+ * @const
87
+ */
88
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.repeatedFields_ = [20];
89
+
90
+
91
+
92
+ if (jspb.Message.GENERATE_TO_OBJECT) {
93
+ /**
94
+ * Creates an object representation of this proto.
95
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
96
+ * Optional fields that are not set will be set to undefined.
97
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
98
+ * For the list of reserved names please see:
99
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
100
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
101
+ * JSPB instance for transitional soy proto support:
102
+ * http://goto/soy-param-migration
103
+ * @return {!Object}
104
+ */
105
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.prototype.toObject = function(opt_includeInstance) {
106
+ return proto.fintekkers.models.security.SecurityMetricSeriesProto.toObject(opt_includeInstance, this);
107
+ };
108
+
109
+
110
+ /**
111
+ * Static version of the {@see toObject} method.
112
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
113
+ * the JSPB instance for transitional soy proto support:
114
+ * http://goto/soy-param-migration
115
+ * @param {!proto.fintekkers.models.security.SecurityMetricSeriesProto} msg The msg instance to transform.
116
+ * @return {!Object}
117
+ * @suppress {unusedLocalVariables} f is only used for nested messages
118
+ */
119
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.toObject = function(includeInstance, msg) {
120
+ var f, obj = {
121
+ objectType: jspb.Message.getFieldWithDefault(msg, 1, 0),
122
+ version: (f = msg.getVersion()) && fintekkers_models_util_version_pb.VersionProto.toObject(includeInstance, f),
123
+ securityId: (f = msg.getSecurityId()) && fintekkers_models_util_uuid_pb.UUIDProto.toObject(includeInstance, f),
124
+ metric: jspb.Message.getFieldWithDefault(msg, 11, 0),
125
+ asOf: (f = msg.getAsOf()) && fintekkers_models_util_local_timestamp_pb.LocalTimestampProto.toObject(includeInstance, f),
126
+ pointsList: jspb.Message.toObjectList(msg.getPointsList(),
127
+ proto.fintekkers.models.security.SecurityMetricPointProto.toObject, includeInstance)
128
+ };
129
+
130
+ if (includeInstance) {
131
+ obj.$jspbMessageInstance = msg;
132
+ }
133
+ return obj;
134
+ };
135
+ }
136
+
137
+
138
+ /**
139
+ * Deserializes binary data (in protobuf wire format).
140
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
141
+ * @return {!proto.fintekkers.models.security.SecurityMetricSeriesProto}
142
+ */
143
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.deserializeBinary = function(bytes) {
144
+ var reader = new jspb.BinaryReader(bytes);
145
+ var msg = new proto.fintekkers.models.security.SecurityMetricSeriesProto;
146
+ return proto.fintekkers.models.security.SecurityMetricSeriesProto.deserializeBinaryFromReader(msg, reader);
147
+ };
148
+
149
+
150
+ /**
151
+ * Deserializes binary data (in protobuf wire format) from the
152
+ * given reader into the given message object.
153
+ * @param {!proto.fintekkers.models.security.SecurityMetricSeriesProto} msg The message object to deserialize into.
154
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
155
+ * @return {!proto.fintekkers.models.security.SecurityMetricSeriesProto}
156
+ */
157
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.deserializeBinaryFromReader = function(msg, reader) {
158
+ while (reader.nextField()) {
159
+ if (reader.isEndGroup()) {
160
+ break;
161
+ }
162
+ var field = reader.getFieldNumber();
163
+ switch (field) {
164
+ case 1:
165
+ var value = /** @type {!proto.fintekkers.models.util.ObjectTypeProto} */ (reader.readEnum());
166
+ msg.setObjectType(value);
167
+ break;
168
+ case 2:
169
+ var value = new fintekkers_models_util_version_pb.VersionProto;
170
+ reader.readMessage(value,fintekkers_models_util_version_pb.VersionProto.deserializeBinaryFromReader);
171
+ msg.setVersion(value);
172
+ break;
173
+ case 10:
174
+ var value = new fintekkers_models_util_uuid_pb.UUIDProto;
175
+ reader.readMessage(value,fintekkers_models_util_uuid_pb.UUIDProto.deserializeBinaryFromReader);
176
+ msg.setSecurityId(value);
177
+ break;
178
+ case 11:
179
+ var value = /** @type {!proto.fintekkers.models.security.SecurityMetricTypeProto} */ (reader.readEnum());
180
+ msg.setMetric(value);
181
+ break;
182
+ case 12:
183
+ var value = new fintekkers_models_util_local_timestamp_pb.LocalTimestampProto;
184
+ reader.readMessage(value,fintekkers_models_util_local_timestamp_pb.LocalTimestampProto.deserializeBinaryFromReader);
185
+ msg.setAsOf(value);
186
+ break;
187
+ case 20:
188
+ var value = new proto.fintekkers.models.security.SecurityMetricPointProto;
189
+ reader.readMessage(value,proto.fintekkers.models.security.SecurityMetricPointProto.deserializeBinaryFromReader);
190
+ msg.addPoints(value);
191
+ break;
192
+ default:
193
+ reader.skipField();
194
+ break;
195
+ }
196
+ }
197
+ return msg;
198
+ };
199
+
200
+
201
+ /**
202
+ * Serializes the message to binary data (in protobuf wire format).
203
+ * @return {!Uint8Array}
204
+ */
205
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.prototype.serializeBinary = function() {
206
+ var writer = new jspb.BinaryWriter();
207
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.serializeBinaryToWriter(this, writer);
208
+ return writer.getResultBuffer();
209
+ };
210
+
211
+
212
+ /**
213
+ * Serializes the given message to binary data (in protobuf wire
214
+ * format), writing to the given BinaryWriter.
215
+ * @param {!proto.fintekkers.models.security.SecurityMetricSeriesProto} message
216
+ * @param {!jspb.BinaryWriter} writer
217
+ * @suppress {unusedLocalVariables} f is only used for nested messages
218
+ */
219
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.serializeBinaryToWriter = function(message, writer) {
220
+ var f = undefined;
221
+ f = message.getObjectType();
222
+ if (f !== 0.0) {
223
+ writer.writeEnum(
224
+ 1,
225
+ f
226
+ );
227
+ }
228
+ f = message.getVersion();
229
+ if (f != null) {
230
+ writer.writeMessage(
231
+ 2,
232
+ f,
233
+ fintekkers_models_util_version_pb.VersionProto.serializeBinaryToWriter
234
+ );
235
+ }
236
+ f = message.getSecurityId();
237
+ if (f != null) {
238
+ writer.writeMessage(
239
+ 10,
240
+ f,
241
+ fintekkers_models_util_uuid_pb.UUIDProto.serializeBinaryToWriter
242
+ );
243
+ }
244
+ f = message.getMetric();
245
+ if (f !== 0.0) {
246
+ writer.writeEnum(
247
+ 11,
248
+ f
249
+ );
250
+ }
251
+ f = message.getAsOf();
252
+ if (f != null) {
253
+ writer.writeMessage(
254
+ 12,
255
+ f,
256
+ fintekkers_models_util_local_timestamp_pb.LocalTimestampProto.serializeBinaryToWriter
257
+ );
258
+ }
259
+ f = message.getPointsList();
260
+ if (f.length > 0) {
261
+ writer.writeRepeatedMessage(
262
+ 20,
263
+ f,
264
+ proto.fintekkers.models.security.SecurityMetricPointProto.serializeBinaryToWriter
265
+ );
266
+ }
267
+ };
268
+
269
+
270
+ /**
271
+ * optional fintekkers.models.util.ObjectTypeProto object_type = 1;
272
+ * @return {!proto.fintekkers.models.util.ObjectTypeProto}
273
+ */
274
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.prototype.getObjectType = function() {
275
+ return /** @type {!proto.fintekkers.models.util.ObjectTypeProto} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
276
+ };
277
+
278
+
279
+ /**
280
+ * @param {!proto.fintekkers.models.util.ObjectTypeProto} value
281
+ * @return {!proto.fintekkers.models.security.SecurityMetricSeriesProto} returns this
282
+ */
283
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.prototype.setObjectType = function(value) {
284
+ return jspb.Message.setProto3EnumField(this, 1, value);
285
+ };
286
+
287
+
288
+ /**
289
+ * optional fintekkers.models.util.VersionProto version = 2;
290
+ * @return {?proto.fintekkers.models.util.VersionProto}
291
+ */
292
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.prototype.getVersion = function() {
293
+ return /** @type{?proto.fintekkers.models.util.VersionProto} */ (
294
+ jspb.Message.getWrapperField(this, fintekkers_models_util_version_pb.VersionProto, 2));
295
+ };
296
+
297
+
298
+ /**
299
+ * @param {?proto.fintekkers.models.util.VersionProto|undefined} value
300
+ * @return {!proto.fintekkers.models.security.SecurityMetricSeriesProto} returns this
301
+ */
302
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.prototype.setVersion = function(value) {
303
+ return jspb.Message.setWrapperField(this, 2, value);
304
+ };
305
+
306
+
307
+ /**
308
+ * Clears the message field making it undefined.
309
+ * @return {!proto.fintekkers.models.security.SecurityMetricSeriesProto} returns this
310
+ */
311
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.prototype.clearVersion = function() {
312
+ return this.setVersion(undefined);
313
+ };
314
+
315
+
316
+ /**
317
+ * Returns whether this field is set.
318
+ * @return {boolean}
319
+ */
320
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.prototype.hasVersion = function() {
321
+ return jspb.Message.getField(this, 2) != null;
322
+ };
323
+
324
+
325
+ /**
326
+ * optional fintekkers.models.util.UUIDProto security_id = 10;
327
+ * @return {?proto.fintekkers.models.util.UUIDProto}
328
+ */
329
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.prototype.getSecurityId = function() {
330
+ return /** @type{?proto.fintekkers.models.util.UUIDProto} */ (
331
+ jspb.Message.getWrapperField(this, fintekkers_models_util_uuid_pb.UUIDProto, 10));
332
+ };
333
+
334
+
335
+ /**
336
+ * @param {?proto.fintekkers.models.util.UUIDProto|undefined} value
337
+ * @return {!proto.fintekkers.models.security.SecurityMetricSeriesProto} returns this
338
+ */
339
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.prototype.setSecurityId = function(value) {
340
+ return jspb.Message.setWrapperField(this, 10, value);
341
+ };
342
+
343
+
344
+ /**
345
+ * Clears the message field making it undefined.
346
+ * @return {!proto.fintekkers.models.security.SecurityMetricSeriesProto} returns this
347
+ */
348
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.prototype.clearSecurityId = function() {
349
+ return this.setSecurityId(undefined);
350
+ };
351
+
352
+
353
+ /**
354
+ * Returns whether this field is set.
355
+ * @return {boolean}
356
+ */
357
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.prototype.hasSecurityId = function() {
358
+ return jspb.Message.getField(this, 10) != null;
359
+ };
360
+
361
+
362
+ /**
363
+ * optional SecurityMetricTypeProto metric = 11;
364
+ * @return {!proto.fintekkers.models.security.SecurityMetricTypeProto}
365
+ */
366
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.prototype.getMetric = function() {
367
+ return /** @type {!proto.fintekkers.models.security.SecurityMetricTypeProto} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
368
+ };
369
+
370
+
371
+ /**
372
+ * @param {!proto.fintekkers.models.security.SecurityMetricTypeProto} value
373
+ * @return {!proto.fintekkers.models.security.SecurityMetricSeriesProto} returns this
374
+ */
375
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.prototype.setMetric = function(value) {
376
+ return jspb.Message.setProto3EnumField(this, 11, value);
377
+ };
378
+
379
+
380
+ /**
381
+ * optional fintekkers.models.util.LocalTimestampProto as_of = 12;
382
+ * @return {?proto.fintekkers.models.util.LocalTimestampProto}
383
+ */
384
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.prototype.getAsOf = function() {
385
+ return /** @type{?proto.fintekkers.models.util.LocalTimestampProto} */ (
386
+ jspb.Message.getWrapperField(this, fintekkers_models_util_local_timestamp_pb.LocalTimestampProto, 12));
387
+ };
388
+
389
+
390
+ /**
391
+ * @param {?proto.fintekkers.models.util.LocalTimestampProto|undefined} value
392
+ * @return {!proto.fintekkers.models.security.SecurityMetricSeriesProto} returns this
393
+ */
394
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.prototype.setAsOf = function(value) {
395
+ return jspb.Message.setWrapperField(this, 12, value);
396
+ };
397
+
398
+
399
+ /**
400
+ * Clears the message field making it undefined.
401
+ * @return {!proto.fintekkers.models.security.SecurityMetricSeriesProto} returns this
402
+ */
403
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.prototype.clearAsOf = function() {
404
+ return this.setAsOf(undefined);
405
+ };
406
+
407
+
408
+ /**
409
+ * Returns whether this field is set.
410
+ * @return {boolean}
411
+ */
412
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.prototype.hasAsOf = function() {
413
+ return jspb.Message.getField(this, 12) != null;
414
+ };
415
+
416
+
417
+ /**
418
+ * repeated SecurityMetricPointProto points = 20;
419
+ * @return {!Array<!proto.fintekkers.models.security.SecurityMetricPointProto>}
420
+ */
421
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.prototype.getPointsList = function() {
422
+ return /** @type{!Array<!proto.fintekkers.models.security.SecurityMetricPointProto>} */ (
423
+ jspb.Message.getRepeatedWrapperField(this, proto.fintekkers.models.security.SecurityMetricPointProto, 20));
424
+ };
425
+
426
+
427
+ /**
428
+ * @param {!Array<!proto.fintekkers.models.security.SecurityMetricPointProto>} value
429
+ * @return {!proto.fintekkers.models.security.SecurityMetricSeriesProto} returns this
430
+ */
431
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.prototype.setPointsList = function(value) {
432
+ return jspb.Message.setRepeatedWrapperField(this, 20, value);
433
+ };
434
+
435
+
436
+ /**
437
+ * @param {!proto.fintekkers.models.security.SecurityMetricPointProto=} opt_value
438
+ * @param {number=} opt_index
439
+ * @return {!proto.fintekkers.models.security.SecurityMetricPointProto}
440
+ */
441
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.prototype.addPoints = function(opt_value, opt_index) {
442
+ return jspb.Message.addToRepeatedWrapperField(this, 20, opt_value, proto.fintekkers.models.security.SecurityMetricPointProto, opt_index);
443
+ };
444
+
445
+
446
+ /**
447
+ * Clears the list making it empty but non-null.
448
+ * @return {!proto.fintekkers.models.security.SecurityMetricSeriesProto} returns this
449
+ */
450
+ proto.fintekkers.models.security.SecurityMetricSeriesProto.prototype.clearPointsList = function() {
451
+ return this.setPointsList([]);
452
+ };
453
+
454
+
455
+
456
+
457
+
458
+ if (jspb.Message.GENERATE_TO_OBJECT) {
459
+ /**
460
+ * Creates an object representation of this proto.
461
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
462
+ * Optional fields that are not set will be set to undefined.
463
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
464
+ * For the list of reserved names please see:
465
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
466
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
467
+ * JSPB instance for transitional soy proto support:
468
+ * http://goto/soy-param-migration
469
+ * @return {!Object}
470
+ */
471
+ proto.fintekkers.models.security.SecurityMetricPointProto.prototype.toObject = function(opt_includeInstance) {
472
+ return proto.fintekkers.models.security.SecurityMetricPointProto.toObject(opt_includeInstance, this);
473
+ };
474
+
475
+
476
+ /**
477
+ * Static version of the {@see toObject} method.
478
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
479
+ * the JSPB instance for transitional soy proto support:
480
+ * http://goto/soy-param-migration
481
+ * @param {!proto.fintekkers.models.security.SecurityMetricPointProto} msg The msg instance to transform.
482
+ * @return {!Object}
483
+ * @suppress {unusedLocalVariables} f is only used for nested messages
484
+ */
485
+ proto.fintekkers.models.security.SecurityMetricPointProto.toObject = function(includeInstance, msg) {
486
+ var f, obj = {
487
+ observationDate: (f = msg.getObservationDate()) && fintekkers_models_util_local_date_pb.LocalDateProto.toObject(includeInstance, f),
488
+ value: (f = msg.getValue()) && fintekkers_models_util_decimal_value_pb.DecimalValueProto.toObject(includeInstance, f)
489
+ };
490
+
491
+ if (includeInstance) {
492
+ obj.$jspbMessageInstance = msg;
493
+ }
494
+ return obj;
495
+ };
496
+ }
497
+
498
+
499
+ /**
500
+ * Deserializes binary data (in protobuf wire format).
501
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
502
+ * @return {!proto.fintekkers.models.security.SecurityMetricPointProto}
503
+ */
504
+ proto.fintekkers.models.security.SecurityMetricPointProto.deserializeBinary = function(bytes) {
505
+ var reader = new jspb.BinaryReader(bytes);
506
+ var msg = new proto.fintekkers.models.security.SecurityMetricPointProto;
507
+ return proto.fintekkers.models.security.SecurityMetricPointProto.deserializeBinaryFromReader(msg, reader);
508
+ };
509
+
510
+
511
+ /**
512
+ * Deserializes binary data (in protobuf wire format) from the
513
+ * given reader into the given message object.
514
+ * @param {!proto.fintekkers.models.security.SecurityMetricPointProto} msg The message object to deserialize into.
515
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
516
+ * @return {!proto.fintekkers.models.security.SecurityMetricPointProto}
517
+ */
518
+ proto.fintekkers.models.security.SecurityMetricPointProto.deserializeBinaryFromReader = function(msg, reader) {
519
+ while (reader.nextField()) {
520
+ if (reader.isEndGroup()) {
521
+ break;
522
+ }
523
+ var field = reader.getFieldNumber();
524
+ switch (field) {
525
+ case 1:
526
+ var value = new fintekkers_models_util_local_date_pb.LocalDateProto;
527
+ reader.readMessage(value,fintekkers_models_util_local_date_pb.LocalDateProto.deserializeBinaryFromReader);
528
+ msg.setObservationDate(value);
529
+ break;
530
+ case 2:
531
+ var value = new fintekkers_models_util_decimal_value_pb.DecimalValueProto;
532
+ reader.readMessage(value,fintekkers_models_util_decimal_value_pb.DecimalValueProto.deserializeBinaryFromReader);
533
+ msg.setValue(value);
534
+ break;
535
+ default:
536
+ reader.skipField();
537
+ break;
538
+ }
539
+ }
540
+ return msg;
541
+ };
542
+
543
+
544
+ /**
545
+ * Serializes the message to binary data (in protobuf wire format).
546
+ * @return {!Uint8Array}
547
+ */
548
+ proto.fintekkers.models.security.SecurityMetricPointProto.prototype.serializeBinary = function() {
549
+ var writer = new jspb.BinaryWriter();
550
+ proto.fintekkers.models.security.SecurityMetricPointProto.serializeBinaryToWriter(this, writer);
551
+ return writer.getResultBuffer();
552
+ };
553
+
554
+
555
+ /**
556
+ * Serializes the given message to binary data (in protobuf wire
557
+ * format), writing to the given BinaryWriter.
558
+ * @param {!proto.fintekkers.models.security.SecurityMetricPointProto} message
559
+ * @param {!jspb.BinaryWriter} writer
560
+ * @suppress {unusedLocalVariables} f is only used for nested messages
561
+ */
562
+ proto.fintekkers.models.security.SecurityMetricPointProto.serializeBinaryToWriter = function(message, writer) {
563
+ var f = undefined;
564
+ f = message.getObservationDate();
565
+ if (f != null) {
566
+ writer.writeMessage(
567
+ 1,
568
+ f,
569
+ fintekkers_models_util_local_date_pb.LocalDateProto.serializeBinaryToWriter
570
+ );
571
+ }
572
+ f = message.getValue();
573
+ if (f != null) {
574
+ writer.writeMessage(
575
+ 2,
576
+ f,
577
+ fintekkers_models_util_decimal_value_pb.DecimalValueProto.serializeBinaryToWriter
578
+ );
579
+ }
580
+ };
581
+
582
+
583
+ /**
584
+ * optional fintekkers.models.util.LocalDateProto observation_date = 1;
585
+ * @return {?proto.fintekkers.models.util.LocalDateProto}
586
+ */
587
+ proto.fintekkers.models.security.SecurityMetricPointProto.prototype.getObservationDate = function() {
588
+ return /** @type{?proto.fintekkers.models.util.LocalDateProto} */ (
589
+ jspb.Message.getWrapperField(this, fintekkers_models_util_local_date_pb.LocalDateProto, 1));
590
+ };
591
+
592
+
593
+ /**
594
+ * @param {?proto.fintekkers.models.util.LocalDateProto|undefined} value
595
+ * @return {!proto.fintekkers.models.security.SecurityMetricPointProto} returns this
596
+ */
597
+ proto.fintekkers.models.security.SecurityMetricPointProto.prototype.setObservationDate = function(value) {
598
+ return jspb.Message.setWrapperField(this, 1, value);
599
+ };
600
+
601
+
602
+ /**
603
+ * Clears the message field making it undefined.
604
+ * @return {!proto.fintekkers.models.security.SecurityMetricPointProto} returns this
605
+ */
606
+ proto.fintekkers.models.security.SecurityMetricPointProto.prototype.clearObservationDate = function() {
607
+ return this.setObservationDate(undefined);
608
+ };
609
+
610
+
611
+ /**
612
+ * Returns whether this field is set.
613
+ * @return {boolean}
614
+ */
615
+ proto.fintekkers.models.security.SecurityMetricPointProto.prototype.hasObservationDate = function() {
616
+ return jspb.Message.getField(this, 1) != null;
617
+ };
618
+
619
+
620
+ /**
621
+ * optional fintekkers.models.util.DecimalValueProto value = 2;
622
+ * @return {?proto.fintekkers.models.util.DecimalValueProto}
623
+ */
624
+ proto.fintekkers.models.security.SecurityMetricPointProto.prototype.getValue = function() {
625
+ return /** @type{?proto.fintekkers.models.util.DecimalValueProto} */ (
626
+ jspb.Message.getWrapperField(this, fintekkers_models_util_decimal_value_pb.DecimalValueProto, 2));
627
+ };
628
+
629
+
630
+ /**
631
+ * @param {?proto.fintekkers.models.util.DecimalValueProto|undefined} value
632
+ * @return {!proto.fintekkers.models.security.SecurityMetricPointProto} returns this
633
+ */
634
+ proto.fintekkers.models.security.SecurityMetricPointProto.prototype.setValue = function(value) {
635
+ return jspb.Message.setWrapperField(this, 2, value);
636
+ };
637
+
638
+
639
+ /**
640
+ * Clears the message field making it undefined.
641
+ * @return {!proto.fintekkers.models.security.SecurityMetricPointProto} returns this
642
+ */
643
+ proto.fintekkers.models.security.SecurityMetricPointProto.prototype.clearValue = function() {
644
+ return this.setValue(undefined);
645
+ };
646
+
647
+
648
+ /**
649
+ * Returns whether this field is set.
650
+ * @return {boolean}
651
+ */
652
+ proto.fintekkers.models.security.SecurityMetricPointProto.prototype.hasValue = function() {
653
+ return jspb.Message.getField(this, 2) != null;
654
+ };
655
+
656
+
657
+ goog.object.extend(exports, proto.fintekkers.models.security);
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO
@@ -0,0 +1,14 @@
1
+ // package: fintekkers.models.security
2
+ // file: fintekkers/models/security/security_metric_type.proto
3
+
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+
7
+ import * as jspb from "google-protobuf";
8
+
9
+ export enum SecurityMetricTypeProto {
10
+ UNKNOWN_SECURITY_METRIC = 0,
11
+ SHARES_OUTSTANDING = 1,
12
+ NAV_PER_SHARE = 2,
13
+ TOTAL_NET_ASSETS = 3,
14
+ }