-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrading.pb.h
More file actions
4305 lines (3949 loc) · 163 KB
/
trading.pb.h
File metadata and controls
4305 lines (3949 loc) · 163 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: trading.proto
// Protobuf C++ Version: 6.31.0
#ifndef trading_2eproto_2epb_2eh
#define trading_2eproto_2epb_2eh
#include <limits>
#include <string>
#include <type_traits>
#include <utility>
#include "google/protobuf/runtime_version.h"
#if PROTOBUF_VERSION != 6031000
#error "Protobuf C++ gencode is built with an incompatible version of"
#error "Protobuf C++ headers/runtime. See"
#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
#endif
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/arena.h"
#include "google/protobuf/arenastring.h"
#include "google/protobuf/generated_message_tctable_decl.h"
#include "google/protobuf/generated_message_util.h"
#include "google/protobuf/metadata_lite.h"
#include "google/protobuf/generated_message_reflection.h"
#include "google/protobuf/message.h"
#include "google/protobuf/message_lite.h"
#include "google/protobuf/repeated_field.h" // IWYU pragma: export
#include "google/protobuf/extension_set.h" // IWYU pragma: export
#include "google/protobuf/generated_enum_reflection.h"
#include "google/protobuf/unknown_field_set.h"
// @@protoc_insertion_point(includes)
// Must be included last.
#include "google/protobuf/port_def.inc"
#define PROTOBUF_INTERNAL_EXPORT_trading_2eproto
namespace google {
namespace protobuf {
namespace internal {
template <typename T>
::absl::string_view GetAnyMessageName();
} // namespace internal
} // namespace protobuf
} // namespace google
// Internal implementation detail -- do not use these members.
struct TableStruct_trading_2eproto {
static const ::uint32_t offsets[];
};
extern "C" {
extern const ::google::protobuf::internal::DescriptorTable descriptor_table_trading_2eproto;
} // extern "C"
namespace trading {
enum OrderStatus : int;
extern const uint32_t OrderStatus_internal_data_[];
enum OrderType : int;
extern const uint32_t OrderType_internal_data_[];
enum Side : int;
extern const uint32_t Side_internal_data_[];
class CancelOrderRequest;
struct CancelOrderRequestDefaultTypeInternal;
extern CancelOrderRequestDefaultTypeInternal _CancelOrderRequest_default_instance_;
extern const ::google::protobuf::internal::ClassDataFull CancelOrderRequest_class_data_;
class CancelOrderResponse;
struct CancelOrderResponseDefaultTypeInternal;
extern CancelOrderResponseDefaultTypeInternal _CancelOrderResponse_default_instance_;
extern const ::google::protobuf::internal::ClassDataFull CancelOrderResponse_class_data_;
class LevelInfo;
struct LevelInfoDefaultTypeInternal;
extern LevelInfoDefaultTypeInternal _LevelInfo_default_instance_;
extern const ::google::protobuf::internal::ClassDataFull LevelInfo_class_data_;
class ModifyOrderRequest;
struct ModifyOrderRequestDefaultTypeInternal;
extern ModifyOrderRequestDefaultTypeInternal _ModifyOrderRequest_default_instance_;
extern const ::google::protobuf::internal::ClassDataFull ModifyOrderRequest_class_data_;
class OrderRequest;
struct OrderRequestDefaultTypeInternal;
extern OrderRequestDefaultTypeInternal _OrderRequest_default_instance_;
extern const ::google::protobuf::internal::ClassDataFull OrderRequest_class_data_;
class OrderbookRequest;
struct OrderbookRequestDefaultTypeInternal;
extern OrderbookRequestDefaultTypeInternal _OrderbookRequest_default_instance_;
extern const ::google::protobuf::internal::ClassDataFull OrderbookRequest_class_data_;
class OrderbookResponse;
struct OrderbookResponseDefaultTypeInternal;
extern OrderbookResponseDefaultTypeInternal _OrderbookResponse_default_instance_;
extern const ::google::protobuf::internal::ClassDataFull OrderbookResponse_class_data_;
class TradeInfo;
struct TradeInfoDefaultTypeInternal;
extern TradeInfoDefaultTypeInternal _TradeInfo_default_instance_;
extern const ::google::protobuf::internal::ClassDataFull TradeInfo_class_data_;
class TradeResponse;
struct TradeResponseDefaultTypeInternal;
extern TradeResponseDefaultTypeInternal _TradeResponse_default_instance_;
extern const ::google::protobuf::internal::ClassDataFull TradeResponse_class_data_;
} // namespace trading
namespace google {
namespace protobuf {
template <>
internal::EnumTraitsT<::trading::OrderStatus_internal_data_>
internal::EnumTraitsImpl::value<::trading::OrderStatus>;
template <>
internal::EnumTraitsT<::trading::OrderType_internal_data_>
internal::EnumTraitsImpl::value<::trading::OrderType>;
template <>
internal::EnumTraitsT<::trading::Side_internal_data_>
internal::EnumTraitsImpl::value<::trading::Side>;
} // namespace protobuf
} // namespace google
namespace trading {
enum OrderType : int {
ORDER_TYPE_UNSPECIFIED = 0,
GOOD_TILL_CANCEL = 1,
FILL_AND_KILL = 2,
FILL_OR_KILL = 3,
GOOD_FOR_DAY = 4,
MARKET = 5,
OrderType_INT_MIN_SENTINEL_DO_NOT_USE_ =
::std::numeric_limits<::int32_t>::min(),
OrderType_INT_MAX_SENTINEL_DO_NOT_USE_ =
::std::numeric_limits<::int32_t>::max(),
};
extern const uint32_t OrderType_internal_data_[];
inline constexpr OrderType OrderType_MIN =
static_cast<OrderType>(0);
inline constexpr OrderType OrderType_MAX =
static_cast<OrderType>(5);
inline bool OrderType_IsValid(int value) {
return 0 <= value && value <= 5;
}
inline constexpr int OrderType_ARRAYSIZE = 5 + 1;
const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL OrderType_descriptor();
template <typename T>
const ::std::string& OrderType_Name(T value) {
static_assert(::std::is_same<T, OrderType>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to OrderType_Name().");
return OrderType_Name(static_cast<OrderType>(value));
}
template <>
inline const ::std::string& OrderType_Name(OrderType value) {
return ::google::protobuf::internal::NameOfDenseEnum<OrderType_descriptor, 0, 5>(
static_cast<int>(value));
}
inline bool OrderType_Parse(
::absl::string_view name, OrderType* PROTOBUF_NONNULL value) {
return ::google::protobuf::internal::ParseNamedEnum<OrderType>(OrderType_descriptor(), name,
value);
}
enum Side : int {
SIDE_UNSPECIFIED = 0,
BUY = 1,
SELL = 2,
Side_INT_MIN_SENTINEL_DO_NOT_USE_ =
::std::numeric_limits<::int32_t>::min(),
Side_INT_MAX_SENTINEL_DO_NOT_USE_ =
::std::numeric_limits<::int32_t>::max(),
};
extern const uint32_t Side_internal_data_[];
inline constexpr Side Side_MIN =
static_cast<Side>(0);
inline constexpr Side Side_MAX =
static_cast<Side>(2);
inline bool Side_IsValid(int value) {
return 0 <= value && value <= 2;
}
inline constexpr int Side_ARRAYSIZE = 2 + 1;
const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL Side_descriptor();
template <typename T>
const ::std::string& Side_Name(T value) {
static_assert(::std::is_same<T, Side>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to Side_Name().");
return Side_Name(static_cast<Side>(value));
}
template <>
inline const ::std::string& Side_Name(Side value) {
return ::google::protobuf::internal::NameOfDenseEnum<Side_descriptor, 0, 2>(
static_cast<int>(value));
}
inline bool Side_Parse(
::absl::string_view name, Side* PROTOBUF_NONNULL value) {
return ::google::protobuf::internal::ParseNamedEnum<Side>(Side_descriptor(), name,
value);
}
enum OrderStatus : int {
ORDER_STATUS_UNSPECIFIED = 0,
ACCEPTED = 1,
REJECTED = 2,
FILLED = 3,
PARTIALLY_FILLED = 4,
CANCELLED = 5,
PENDING_NEW = 6,
SUSPENDED = 7,
TRIGGERED = 8,
OrderStatus_INT_MIN_SENTINEL_DO_NOT_USE_ =
::std::numeric_limits<::int32_t>::min(),
OrderStatus_INT_MAX_SENTINEL_DO_NOT_USE_ =
::std::numeric_limits<::int32_t>::max(),
};
extern const uint32_t OrderStatus_internal_data_[];
inline constexpr OrderStatus OrderStatus_MIN =
static_cast<OrderStatus>(0);
inline constexpr OrderStatus OrderStatus_MAX =
static_cast<OrderStatus>(8);
inline bool OrderStatus_IsValid(int value) {
return 0 <= value && value <= 8;
}
inline constexpr int OrderStatus_ARRAYSIZE = 8 + 1;
const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL OrderStatus_descriptor();
template <typename T>
const ::std::string& OrderStatus_Name(T value) {
static_assert(::std::is_same<T, OrderStatus>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to OrderStatus_Name().");
return OrderStatus_Name(static_cast<OrderStatus>(value));
}
template <>
inline const ::std::string& OrderStatus_Name(OrderStatus value) {
return ::google::protobuf::internal::NameOfDenseEnum<OrderStatus_descriptor, 0, 8>(
static_cast<int>(value));
}
inline bool OrderStatus_Parse(
::absl::string_view name, OrderStatus* PROTOBUF_NONNULL value) {
return ::google::protobuf::internal::ParseNamedEnum<OrderStatus>(OrderStatus_descriptor(), name,
value);
}
// ===================================================================
// -------------------------------------------------------------------
class TradeInfo final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:trading.TradeInfo) */ {
public:
inline TradeInfo() : TradeInfo(nullptr) {}
~TradeInfo() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
void operator delete(TradeInfo* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
SharedDtor(*msg);
::google::protobuf::internal::SizedDelete(msg, sizeof(TradeInfo));
}
#endif
template <typename = void>
explicit PROTOBUF_CONSTEXPR TradeInfo(::google::protobuf::internal::ConstantInitialized);
inline TradeInfo(const TradeInfo& from) : TradeInfo(nullptr, from) {}
inline TradeInfo(TradeInfo&& from) noexcept
: TradeInfo(nullptr, ::std::move(from)) {}
inline TradeInfo& operator=(const TradeInfo& from) {
CopyFrom(from);
return *this;
}
inline TradeInfo& operator=(TradeInfo&& from) noexcept {
if (this == &from) return *this;
if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
}
inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
return GetDescriptor();
}
static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const TradeInfo& default_instance() {
return *reinterpret_cast<const TradeInfo*>(
&_TradeInfo_default_instance_);
}
static constexpr int kIndexInFileMessages = 4;
friend void swap(TradeInfo& a, TradeInfo& b) { a.Swap(&b); }
inline void Swap(TradeInfo* PROTOBUF_NONNULL other) {
if (other == this) return;
if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
InternalSwap(other);
} else {
::google::protobuf::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(TradeInfo* PROTOBUF_NONNULL other) {
if (other == this) return;
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
TradeInfo* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
return ::google::protobuf::Message::DefaultConstruct<TradeInfo>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const TradeInfo& from);
using ::google::protobuf::Message::MergeFrom;
void MergeFrom(const TradeInfo& from) { TradeInfo::MergeImpl(*this, from); }
private:
static void MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg);
public:
bool IsInitialized() const {
return true;
}
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
private:
static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
public:
::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
return _InternalSerialize(*this, target, stream);
}
#else // PROTOBUF_CUSTOM_VTABLE
::size_t ByteSizeLong() const final;
::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
#endif // PROTOBUF_CUSTOM_VTABLE
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
static void SharedDtor(MessageLite& self);
void InternalSwap(TradeInfo* PROTOBUF_NONNULL other);
private:
template <typename T>
friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
static ::absl::string_view FullMessageName() { return "trading.TradeInfo"; }
protected:
explicit TradeInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
TradeInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const TradeInfo& from);
TradeInfo(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, TradeInfo&& from) noexcept
: TradeInfo(arena) {
*this = ::std::move(from);
}
const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
static void* PROTOBUF_NONNULL PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
static constexpr auto InternalNewImpl_();
public:
static constexpr auto InternalGenerateClassData_();
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kCounterpartyIdFieldNumber = 6,
kInstrumentIdFieldNumber = 7,
kTradeIdFieldNumber = 8,
kOrderIdFieldNumber = 1,
kPriceFieldNumber = 2,
kQuantityFieldNumber = 3,
kTimestampFieldNumber = 4,
kFeeFieldNumber = 9,
kSideFieldNumber = 5,
};
// string counterparty_id = 6;
void clear_counterparty_id() ;
const ::std::string& counterparty_id() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_counterparty_id(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_counterparty_id();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_counterparty_id();
void set_allocated_counterparty_id(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_counterparty_id() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_counterparty_id(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_counterparty_id();
public:
// string instrument_id = 7;
void clear_instrument_id() ;
const ::std::string& instrument_id() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_instrument_id(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_instrument_id();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_instrument_id();
void set_allocated_instrument_id(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_instrument_id() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_instrument_id(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_instrument_id();
public:
// string trade_id = 8;
void clear_trade_id() ;
const ::std::string& trade_id() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_trade_id(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_trade_id();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_trade_id();
void set_allocated_trade_id(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_trade_id() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_trade_id(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_trade_id();
public:
// uint64 order_id = 1;
void clear_order_id() ;
::uint64_t order_id() const;
void set_order_id(::uint64_t value);
private:
::uint64_t _internal_order_id() const;
void _internal_set_order_id(::uint64_t value);
public:
// double price = 2;
void clear_price() ;
double price() const;
void set_price(double value);
private:
double _internal_price() const;
void _internal_set_price(double value);
public:
// int64 quantity = 3;
void clear_quantity() ;
::int64_t quantity() const;
void set_quantity(::int64_t value);
private:
::int64_t _internal_quantity() const;
void _internal_set_quantity(::int64_t value);
public:
// int64 timestamp = 4;
void clear_timestamp() ;
::int64_t timestamp() const;
void set_timestamp(::int64_t value);
private:
::int64_t _internal_timestamp() const;
void _internal_set_timestamp(::int64_t value);
public:
// double fee = 9;
void clear_fee() ;
double fee() const;
void set_fee(double value);
private:
double _internal_fee() const;
void _internal_set_fee(double value);
public:
// .trading.Side side = 5;
void clear_side() ;
::trading::Side side() const;
void set_side(::trading::Side value);
private:
::trading::Side _internal_side() const;
void _internal_set_side(::trading::Side value);
public:
// @@protoc_insertion_point(class_scope:trading.TradeInfo)
private:
class _Internal;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<4, 9,
0, 70,
2>
_table_;
friend class ::google::protobuf::MessageLite;
friend class ::google::protobuf::Arena;
template <typename T>
friend class ::google::protobuf::Arena::InternalHelper;
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct Impl_ {
inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(
::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
inline explicit Impl_(
::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
const TradeInfo& from_msg);
::google::protobuf::internal::HasBits<1> _has_bits_;
::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::internal::ArenaStringPtr counterparty_id_;
::google::protobuf::internal::ArenaStringPtr instrument_id_;
::google::protobuf::internal::ArenaStringPtr trade_id_;
::uint64_t order_id_;
double price_;
::int64_t quantity_;
::int64_t timestamp_;
double fee_;
int side_;
PROTOBUF_TSAN_DECLARE_MEMBER
};
union { Impl_ _impl_; };
friend struct ::TableStruct_trading_2eproto;
};
extern const ::google::protobuf::internal::ClassDataFull TradeInfo_class_data_;
// -------------------------------------------------------------------
class OrderbookRequest final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:trading.OrderbookRequest) */ {
public:
inline OrderbookRequest() : OrderbookRequest(nullptr) {}
~OrderbookRequest() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
void operator delete(OrderbookRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
SharedDtor(*msg);
::google::protobuf::internal::SizedDelete(msg, sizeof(OrderbookRequest));
}
#endif
template <typename = void>
explicit PROTOBUF_CONSTEXPR OrderbookRequest(::google::protobuf::internal::ConstantInitialized);
inline OrderbookRequest(const OrderbookRequest& from) : OrderbookRequest(nullptr, from) {}
inline OrderbookRequest(OrderbookRequest&& from) noexcept
: OrderbookRequest(nullptr, ::std::move(from)) {}
inline OrderbookRequest& operator=(const OrderbookRequest& from) {
CopyFrom(from);
return *this;
}
inline OrderbookRequest& operator=(OrderbookRequest&& from) noexcept {
if (this == &from) return *this;
if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
}
inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
return GetDescriptor();
}
static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const OrderbookRequest& default_instance() {
return *reinterpret_cast<const OrderbookRequest*>(
&_OrderbookRequest_default_instance_);
}
static constexpr int kIndexInFileMessages = 6;
friend void swap(OrderbookRequest& a, OrderbookRequest& b) { a.Swap(&b); }
inline void Swap(OrderbookRequest* PROTOBUF_NONNULL other) {
if (other == this) return;
if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
InternalSwap(other);
} else {
::google::protobuf::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(OrderbookRequest* PROTOBUF_NONNULL other) {
if (other == this) return;
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
OrderbookRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
return ::google::protobuf::Message::DefaultConstruct<OrderbookRequest>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const OrderbookRequest& from);
using ::google::protobuf::Message::MergeFrom;
void MergeFrom(const OrderbookRequest& from) { OrderbookRequest::MergeImpl(*this, from); }
private:
static void MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg);
public:
bool IsInitialized() const {
return true;
}
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
private:
static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
public:
::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
return _InternalSerialize(*this, target, stream);
}
#else // PROTOBUF_CUSTOM_VTABLE
::size_t ByteSizeLong() const final;
::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
#endif // PROTOBUF_CUSTOM_VTABLE
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
static void SharedDtor(MessageLite& self);
void InternalSwap(OrderbookRequest* PROTOBUF_NONNULL other);
private:
template <typename T>
friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
static ::absl::string_view FullMessageName() { return "trading.OrderbookRequest"; }
protected:
explicit OrderbookRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
OrderbookRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const OrderbookRequest& from);
OrderbookRequest(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, OrderbookRequest&& from) noexcept
: OrderbookRequest(arena) {
*this = ::std::move(from);
}
const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
static void* PROTOBUF_NONNULL PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
static constexpr auto InternalNewImpl_();
public:
static constexpr auto InternalGenerateClassData_();
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kInstrumentIdFieldNumber = 1,
kDepthFieldNumber = 2,
};
// string instrument_id = 1;
void clear_instrument_id() ;
const ::std::string& instrument_id() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_instrument_id(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_instrument_id();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_instrument_id();
void set_allocated_instrument_id(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_instrument_id() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_instrument_id(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_instrument_id();
public:
// int32 depth = 2;
void clear_depth() ;
::int32_t depth() const;
void set_depth(::int32_t value);
private:
::int32_t _internal_depth() const;
void _internal_set_depth(::int32_t value);
public:
// @@protoc_insertion_point(class_scope:trading.OrderbookRequest)
private:
class _Internal;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<1, 2,
0, 46,
2>
_table_;
friend class ::google::protobuf::MessageLite;
friend class ::google::protobuf::Arena;
template <typename T>
friend class ::google::protobuf::Arena::InternalHelper;
using InternalArenaConstructable_ = void;
using DestructorSkippable_ = void;
struct Impl_ {
inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
inline explicit Impl_(
::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
inline explicit Impl_(
::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
const OrderbookRequest& from_msg);
::google::protobuf::internal::HasBits<1> _has_bits_;
::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::internal::ArenaStringPtr instrument_id_;
::int32_t depth_;
PROTOBUF_TSAN_DECLARE_MEMBER
};
union { Impl_ _impl_; };
friend struct ::TableStruct_trading_2eproto;
};
extern const ::google::protobuf::internal::ClassDataFull OrderbookRequest_class_data_;
// -------------------------------------------------------------------
class OrderRequest final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:trading.OrderRequest) */ {
public:
inline OrderRequest() : OrderRequest(nullptr) {}
~OrderRequest() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
void operator delete(OrderRequest* PROTOBUF_NONNULL msg, std::destroying_delete_t) {
SharedDtor(*msg);
::google::protobuf::internal::SizedDelete(msg, sizeof(OrderRequest));
}
#endif
template <typename = void>
explicit PROTOBUF_CONSTEXPR OrderRequest(::google::protobuf::internal::ConstantInitialized);
inline OrderRequest(const OrderRequest& from) : OrderRequest(nullptr, from) {}
inline OrderRequest(OrderRequest&& from) noexcept
: OrderRequest(nullptr, ::std::move(from)) {}
inline OrderRequest& operator=(const OrderRequest& from) {
CopyFrom(from);
return *this;
}
inline OrderRequest& operator=(OrderRequest&& from) noexcept {
if (this == &from) return *this;
if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
}
inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
return GetDescriptor();
}
static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const OrderRequest& default_instance() {
return *reinterpret_cast<const OrderRequest*>(
&_OrderRequest_default_instance_);
}
static constexpr int kIndexInFileMessages = 0;
friend void swap(OrderRequest& a, OrderRequest& b) { a.Swap(&b); }
inline void Swap(OrderRequest* PROTOBUF_NONNULL other) {
if (other == this) return;
if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
InternalSwap(other);
} else {
::google::protobuf::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(OrderRequest* PROTOBUF_NONNULL other) {
if (other == this) return;
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
OrderRequest* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
return ::google::protobuf::Message::DefaultConstruct<OrderRequest>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const OrderRequest& from);
using ::google::protobuf::Message::MergeFrom;
void MergeFrom(const OrderRequest& from) { OrderRequest::MergeImpl(*this, from); }
private:
static void MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg);
public:
bool IsInitialized() const {
return true;
}
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
private:
static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
public:
::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
return _InternalSerialize(*this, target, stream);
}
#else // PROTOBUF_CUSTOM_VTABLE
::size_t ByteSizeLong() const final;
::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
#endif // PROTOBUF_CUSTOM_VTABLE
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
static void SharedDtor(MessageLite& self);
void InternalSwap(OrderRequest* PROTOBUF_NONNULL other);
private:
template <typename T>
friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
static ::absl::string_view FullMessageName() { return "trading.OrderRequest"; }
protected:
explicit OrderRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
OrderRequest(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const OrderRequest& from);
OrderRequest(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, OrderRequest&& from) noexcept
: OrderRequest(arena) {
*this = ::std::move(from);
}
const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
static void* PROTOBUF_NONNULL PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
static constexpr auto InternalNewImpl_();
public:
static constexpr auto InternalGenerateClassData_();
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kClientIdFieldNumber = 2,
kInstrumentIdFieldNumber = 10,
kOrderIdFieldNumber = 1,
kPriceFieldNumber = 4,
kSideFieldNumber = 3,
kOrderTypeFieldNumber = 6,
kQuantityFieldNumber = 5,
kStopPriceFieldNumber = 7,
kDisplayQuantityFieldNumber = 8,
kTimestampFieldNumber = 9,
};
// string client_id = 2;
void clear_client_id() ;
const ::std::string& client_id() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_client_id(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_client_id();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_client_id();
void set_allocated_client_id(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_client_id() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_client_id(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_client_id();
public:
// string instrument_id = 10;
void clear_instrument_id() ;
const ::std::string& instrument_id() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_instrument_id(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_instrument_id();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_instrument_id();
void set_allocated_instrument_id(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_instrument_id() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_instrument_id(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_instrument_id();
public:
// uint64 order_id = 1;
void clear_order_id() ;
::uint64_t order_id() const;
void set_order_id(::uint64_t value);
private:
::uint64_t _internal_order_id() const;
void _internal_set_order_id(::uint64_t value);
public:
// double price = 4;
void clear_price() ;
double price() const;
void set_price(double value);
private:
double _internal_price() const;
void _internal_set_price(double value);
public:
// .trading.Side side = 3;
void clear_side() ;
::trading::Side side() const;
void set_side(::trading::Side value);
private:
::trading::Side _internal_side() const;
void _internal_set_side(::trading::Side value);
public:
// .trading.OrderType order_type = 6;
void clear_order_type() ;
::trading::OrderType order_type() const;
void set_order_type(::trading::OrderType value);
private:
::trading::OrderType _internal_order_type() const;
void _internal_set_order_type(::trading::OrderType value);
public:
// int64 quantity = 5;
void clear_quantity() ;
::int64_t quantity() const;
void set_quantity(::int64_t value);
private:
::int64_t _internal_quantity() const;
void _internal_set_quantity(::int64_t value);
public:
// double stop_price = 7;
void clear_stop_price() ;
double stop_price() const;
void set_stop_price(double value);
private:
double _internal_stop_price() const;
void _internal_set_stop_price(double value);
public:
// int64 display_quantity = 8;
void clear_display_quantity() ;
::int64_t display_quantity() const;
void set_display_quantity(::int64_t value);
private: